Click here to Skip to main content
15,905,563 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending non-keyboard chars Pin
Abin27-Jul-03 15:11
Abin27-Jul-03 15:11 
GeneralRe: Sending non-keyboard chars Pin
phlipping27-Jul-03 15:25
phlipping27-Jul-03 15:25 
GeneralRe: Sending non-keyboard chars Pin
Beer2627-Jul-03 15:51
Beer2627-Jul-03 15:51 
GeneralRe: Sending non-keyboard chars Pin
phlipping27-Jul-03 16:48
phlipping27-Jul-03 16:48 
GeneralRe: Sending non-keyboard chars Pin
Abin27-Jul-03 17:33
Abin27-Jul-03 17:33 
GeneralRe: Sending non-keyboard chars Pin
phlipping27-Jul-03 18:04
phlipping27-Jul-03 18:04 
GeneralRe: Sending non-keyboard chars Pin
Beer2627-Jul-03 18:20
Beer2627-Jul-03 18:20 
GeneralRe: Sending non-keyboard chars Pin
phlipping27-Jul-03 18:32
phlipping27-Jul-03 18:32 
What I'm trying to make is an automatic typer thingy for chat programs - just click a button and it types a bunch of stuff for you.

I could write the typing bit easily in VB - there's a function called "SendKeys" which does exactly that. But I didn't know of the AddressOf operator at that stage, so I though I'd have to use C++ to use EnumWindows because you have to pass a function pointer to it.

I then figured out how to use SendInput and made a function that turned a string into an array of INPUTs that would type that string (complete with things like '{' -> {SHIFT DOWN}'['{SHIFT UP}) but I ran into trouble if i wanted to include characters that weren't directly typable on the keyboard.

But now I've learned the AddressOf operator in VB so I have no problems programming it there.
If I know how to do it in VB, but don't in C, why bother trying to do it in C?

I would have preferred to do it in C, for obvious reasons (VB is, well, VB after all, for crissake), but the right tool for the right project and all that...

=====
Phlip

Always proofread carefully to see if you any words out
GeneralMDI window title when created Pin
michael_cowan27-Jul-03 13:35
michael_cowan27-Jul-03 13:35 
GeneralRe: MDI window title when created Pin
Beer2627-Jul-03 14:26
Beer2627-Jul-03 14:26 
GeneralWin98 DDK -->XP Pin
Kuniva27-Jul-03 10:48
Kuniva27-Jul-03 10:48 
GeneralRe: Win98 DDK -->XP Pin
J. Dunlap27-Jul-03 10:50
J. Dunlap27-Jul-03 10:50 
GeneralRe: Win98 DDK -->XP Pin
Kuniva27-Jul-03 10:58
Kuniva27-Jul-03 10:58 
GeneralRe: Win98 DDK -->XP Pin
Kuniva27-Jul-03 12:14
Kuniva27-Jul-03 12:14 
GeneralRe: Win98 DDK -->XP Pin
Beer2627-Jul-03 12:16
Beer2627-Jul-03 12:16 
GeneralRe: Win98 DDK -->XP Pin
Alexander M.,27-Jul-03 12:59
Alexander M.,27-Jul-03 12:59 
GeneralRe: Win98 DDK -->XP Pin
Kuniva27-Jul-03 23:22
Kuniva27-Jul-03 23:22 
QuestionHow to access a local variable from a different Dialog box Pin
Deepak Samuel27-Jul-03 10:30
Deepak Samuel27-Jul-03 10:30 
AnswerRe: How to access a local variable from a different Dialog box Pin
Joe Woodbury27-Jul-03 10:43
professionalJoe Woodbury27-Jul-03 10:43 
Generalcreating virtual directory in vc++ Pin
NewSilence27-Jul-03 10:08
NewSilence27-Jul-03 10:08 
QuestionFormView and MDI ????? Pin
_skidrow_vn_27-Jul-03 8:24
_skidrow_vn_27-Jul-03 8:24 
GeneralError on OLECHAR FAR* Pin
Small Rat27-Jul-03 5:49
Small Rat27-Jul-03 5:49 
GeneralRe: Error on OLECHAR FAR* Pin
Beer2627-Jul-03 6:01
Beer2627-Jul-03 6:01 
GeneralRe: Error on OLECHAR FAR* Pin
Small Rat27-Jul-03 6:15
Small Rat27-Jul-03 6:15 
GeneralRe: Error on OLECHAR FAR* Pin
Beer2627-Jul-03 6:23
Beer2627-Jul-03 6:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.