getting out of AppActivate
I'm experimenting with a program 'proj' which has some buttons on it as well as a textbox and a submit button. I want to automate all mousemovements/clicks and entering/submitting text.
First I do some mousemovements and clicks in the program (proj) which works fine Then I need to fill in some text in the textbox.. therefor I tried using
Quote:
SendKeys.Send("test")
but only that line didn't work.
When I used:
Quote:
AppActivate("proj")
SendKeys.Send("test")
it worked, but I need to do some mousemovements after that coding and the mousemovements/clicks don't work anymore and the focus still lays at the textbox. I don't know how to get the control over the mouse back again.
I've looked at sendmessage as well, but I didn't understand that very well.
Can somebody tell me how to alter my coding or show me an example (as short as possible) how to this with sendmessage? Thanks
Re: getting out of AppActivate
to use sendmessage, you first have to get the handle to the textbox/edit field you want to insert text in. if you want to change the focus back to your program, you could use appactivate again