When I got SendKeys function on VB6, can I put it send the keys if the window isn't open, like I watch someone else sites while my macro says something on other site? If yes can you send the function code?
Ghost keys
Collapse
X
-
Originally posted by überWhen I got SendKeys function on VB6, can I put it send the keys if the window isn't open, like I watch someone else sites while my macro says something on other site? If yes can you send the function code?
Can I SendKeys to a form while the form does not have focus? If yes, can you show me an code example?
or,
Can I sendkeys while I am doing something else?Comment
-
Originally posted by VBPhillyTranslation attempt
Can I SendKeys to a form while the form does not have focus? If yes, can you show me an code example?
or,
Can I sendkeys while I am doing something else?
Anyway, if it's the former question, then I would say "no". SendKeys does not send them to anywhere in particular. It simply says to Windows "this key was pressed". What happens then is effectively what would have happened if you did actually press the key. In other words, whoever has the focus will receive it.
To send things to a particular application/window, I think you need to use the Windows SendMessage API functions.Comment
Comment