Posts: 129
Threads: 38
Joined: May 2006
Hello Gintaras:
For some reason, I am having problems fiding windows after I have resize them and I am even using window handles not the window name.
I use:
out _s.format("%s[]in line:%s" _error.description _error.line)
to trap the errors and I am getting "window not found . . . " but the window is there.
Should I get the window handle after its been resized? Will that work better?
Posts: 12,072
Threads: 140
Joined: Dec 2002
Of course it is possible that when a window is resized, it destroys itself and creates new window, although I have never seen this. Then better use window name, not handle.
Some info about _error variable. It contains valid information only after an error occurs and err is used, like this:
act "window that does not exist"
err
,out _error.description
In the following situation, _error will contain outdated information, ie information from last error, not from last command:
act "window that does not exist"
err
act "window that exists"
out _error.description
Posts: 129
Threads: 38
Joined: May 2006
I have also tried using the Window Names . . . .
I will reassign the variable after the window resizes and see if it makes any difference.
Another problems I am having is on trigger functions. I have 2 functions, both are set to "Created and Visible" and *Use is not checked. The window name is:
PersonalData
I have another window named:
PersonalData:
and the function is also closing the window PersonalData: and it's not suppose to, only the one with the : at the end
Thanks so much!