I'm using sendkey to send keystrokes to other applications.
i use several command buttons for this which are located on form1.
When i click on any command button it activates the application by
AppActivate AppName, True
and then send keystrokes by sendkey.
This works fine but everytime i click a command button on my form, my form get focus and then other applicatin get i tback. (My form is topmost).
Because of this, every time i click a command button, windows seems to be flashing.
To prevent this i want to learn how can i prevent my form getting focus.
is it possible???
and another question...
how can i get all aplications' name that are running? in to an array or listbox etc?.
Thanks a lot
i use several command buttons for this which are located on form1.
When i click on any command button it activates the application by
AppActivate AppName, True
and then send keystrokes by sendkey.
This works fine but everytime i click a command button on my form, my form get focus and then other applicatin get i tback. (My form is topmost).
Because of this, every time i click a command button, windows seems to be flashing.
To prevent this i want to learn how can i prevent my form getting focus.
is it possible???
and another question...
how can i get all aplications' name that are running? in to an array or listbox etc?.
Thanks a lot