Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange RT window not found error - how possible?
#1
I am using QM version 2.4.3.0

I got the following error when running a macro which called a function named "checkcolour"

"Error (RT) in checkcolour: window not found."

The error line it linked to in function "checkcolour" was

scan("color:0x0" win r2 0x1000)


Note r2.left=5; r2.top=922; r2.right=1195; r2.bottom=923

How can I get a "window not found" error when the window referred to is "win" - the current window - surely the current window can always be found? This code has run before and worked ok.

Also the code just before this:

lef

did not work and click the left mouse button which I think is connected to this problem as there was no active window to click in although a few lines earlier QM had detected and output the current active window number with the instruction:

out win

My only guess is that the current window "win" had just been closed by the java application it was running under as it had gone to sleep due to a period of inactivity and was waiting for a mouse over movement to wake it up. This is just a guess and is doubtful.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)