I need to know if the "SetFocus" function is supposed to bring the window being
called to the front of any/all open windows? I have a application that uses a print
preview app (DocWiz) to print all reports and forms.
I can't get it to be the front most window when I request a print job via a script.
I have tried using the following optons in the script.
WaitWindowOpen>"Windows Name"
SetFocus>"Windows Name"
I used the View System Windows tool to make sure I getting the correct window name.
and I also tried used the WIN_USEHANDLE variable
Part of the script that's using setfocus
Press Enter
Wait>1
SetFocus>CargoPoint Document Viewer
Wait>1
Press Tab * 6
Wait>1
Press Enter
Wait>5
Press Alt
Press F4
Release Alt
Wait>2
Press Alt
Send c
Release Alt
Thanks you help
Gilc
SetFocus Issue
Moderators: JRL, Dorian (MJT support)
-
- Pro Scripter
- Posts: 132
- Joined: Mon Dec 22, 2008 4:56 pm
- Location: St Augustine FL
-
- Pro Scripter
- Posts: 132
- Joined: Mon Dec 22, 2008 4:56 pm
- Location: St Augustine FL
SetFocus Issue
JRL,
Thanks the asterisk (*) did the trick.
Gilc
Thanks the asterisk (*) did the trick.
Gilc