06-11-2015, 10:36 AM
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.
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.