Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with error message
#1
Hi;

Can someone tell me the meaning of this error message?

Error (RT) in SampleMacro:  the point is not in the window. 

I get these if I am working on the PC while the macro is running.  I understand this is probably because I move the mouse at the moment the macro starts.

But I also get them when my PC is running without me at the keyboard.  This is puzzling.  Any ideas on how to mitigate or debug this problem?

Thanks very much
#2
When runs code like this
Code:
Copy      Help
int w=win("Window")
lef 367 166 w 1

lef converts point 367 166 from window w client area coordinates to screen coordinates, moves the mouse pointer there, and clicks. But error if then at that point is another window, because it probably would click wrong window. Either that point is not in window w rectangle, or some other window is on top (maybe a temporary window), or part of window is not in screen and the point is there.

The easiest way to get rid of this error - add flag 2:
Code:
Copy      Help
int w=win("Window")
lef 367 166 w 1|2

or click in screen coordinates, like
Code:
Copy      Help
lef 967 566


Forum Jump:


Users browsing this thread: 1 Guest(s)