If I use the following syntax:
FindWindowWithText>SomeApp,1,Result
shouldn't the Window containing the text "SomeApp" act as if I have used Setfocus on the same window?
I have two instances of the same app running and want to toggle between them based on some text I have placed on the respective windows. Setting the 'setfocus_flag' to 1 doesn't seem to work.
thanks,
SkunkWorks
FindWindowWithText
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I am curious about
There is a SetFocus> command. It takes the name of the Window that you want to move the focus to.
Like this:
You are not providing sample of the code so it is hard to determine why you cannot set focus on the correct window. May not be needed now though since it sounds like you have a work-around.
There is no "flag" for set focus. You cannot do Let>setfocus_flag=1.Setting the 'setfocus_flag' to 1 doesn't seem to work.
There is a SetFocus> command. It takes the name of the Window that you want to move the focus to.
Like this:
Code: Select all
SetFocus>Notepad*
Last edited by Bob Hansen on Tue May 17, 2005 10:03 pm, edited 1 time in total.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Look at the sample syntax for FindWindowWithText>
that is where you will find the 'setfocus_flag' that I am writing about. it is one of the settings for the command.
either way, I have a good, reliable workaround, but am curious why the command seems to show that it will find the window AND set focus to the window, but won't.
thanks
that is where you will find the 'setfocus_flag' that I am writing about. it is one of the settings for the command.
either way, I have a good, reliable workaround, but am curious why the command seems to show that it will find the window AND set focus to the window, but won't.
thanks
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact: