Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with ACT
#1
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:
Code:
Copy      Help
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?
#2
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
#3
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!


Forum Jump:


Users browsing this thread: 1 Guest(s)