i setfocus> to the right window,
but how do i make sure that the window is still in focus when i send> characters?
I only want to send characters to a specific window. if that is not the open window set the focus again BEFORE typing further?
how can i be sure that the text i'm typing gets to the right
Moderators: Dorian (MJT support), JRL
What you are doing is correct. Just SetFocus before sending the text:
SetFocus>WindowTitle
Send>hello world
SetFocus>WindowTitle
Send>hello world
MJT Net Support
[email protected]
[email protected]
the focus might change after some typing
i have to sure that all the typing is done to the right window. is there a way to check if the typing went to the right window, or if i am still on the right window after the typing?
i also still am not getting emails when you replied.
i also still am not getting emails when you replied.
Well, you could use GetActiveWindow after sending the text to see if that window still has the focus. If not you know it must have failed:
SetFocus>windowtitle
Send>Hello World
GetActiveWindow>window,x,y
If>windowtitlewindow,dowhatever
SetFocus>windowtitle
Send>Hello World
GetActiveWindow>window,x,y
If>windowtitlewindow,dowhatever
MJT Net Support
[email protected]
[email protected]