I have set a time-out on WaitWindowOpen and subsequently want to GetActiveWindow when the timeout occurs. I check the WW_RESULT system variable and it is correctly set to FALSE. Then on my GAW, (even though I have WF_TYPE=2 for visible only windows) the variable is storing "Shift + Esc to Stop", which is a system window of MacroScheduler and NOT visible.
???
SkunkWorks
GetActiveWindow problems
Moderators: Dorian (MJT support), JRL
Based on what you're saying, I created the following code:
------------------------------------
let>WW_TIMEOUT=3
LET>WF_TYPE=2
Press ctrl
send>c
release ctrl
WWO>TESTING
If>WW_RESULT=FALSE,NOWINDOW
SET>TESTING
Goto>Endit
LABEL>NOWINDOW
GAW>TITLE,X,Y
MSG>TITLE
LABEL>ENDIT
----------------------------
Of course, CTRL-C does not open any window, so it fails to NOWINDOW - and I get whatever active window exists... I do not get "Shift + Esc to Stop".
If this doesn't help you see where the problem is, post your code so we can look at it.
Good luck, ~Marvin~
------------------------------------
let>WW_TIMEOUT=3
LET>WF_TYPE=2
Press ctrl
send>c
release ctrl
WWO>TESTING
If>WW_RESULT=FALSE,NOWINDOW
SET>TESTING
Goto>Endit
LABEL>NOWINDOW
GAW>TITLE,X,Y
MSG>TITLE
LABEL>ENDIT
----------------------------
Of course, CTRL-C does not open any window, so it fails to NOWINDOW - and I get whatever active window exists... I do not get "Shift + Esc to Stop".
If this doesn't help you see where the problem is, post your code so we can look at it.
Good luck, ~Marvin~
I think what I am experiencing is a function of the application I am trying to run. when I use a simple example, the GAW works fine with a wwo and ww_timeout.
I did have to restart MacroSched to get rid of the "Shift + Esc to Stop",....which was very strange.
Also, I am doing some work on a server of a client and on that server WW_TIMEOUT always evaluates to .....WW_TIMEOUT....literally. never a numeric value.
I did have to restart MacroSched to get rid of the "Shift + Esc to Stop",....which was very strange.
Also, I am doing some work on a server of a client and on that server WW_TIMEOUT always evaluates to .....WW_TIMEOUT....literally. never a numeric value.
"WW_TIMEOUT always evaluates to .....WW_TIMEOUT....literally. never a numeric value."
Set this early in your macro: Let>VAREXPLICIT=1
Then set all variables with % % on each side, like this:
%WW_TIMEOUT%.
Again, post any code that doesn't seem to be working & I'll try to look it over... g/l ~Marvin~
Set this early in your macro: Let>VAREXPLICIT=1
Then set all variables with % % on each side, like this:
%WW_TIMEOUT%.
Again, post any code that doesn't seem to be working & I'll try to look it over... g/l ~Marvin~
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact: