02-27-2018, 04:27 PM
Hi,
my macro find a window, activates it and then executes some keyboard and mouse activities on its controls.
It works fine when run in QM, or when the exe is run in QM from the output window right after making it, but it fails when it's run by double clicking the executable from its folder. In the output window I can see the message:
"Error (RT) in arruola: window not found (the handle is 0)."
the macro code is:
Could you give me a hint on what's going wrong?
Many thanks
my macro find a window, activates it and then executes some keyboard and mouse activities on its controls.
It works fine when run in QM, or when the exe is run in QM from the output window right after making it, but it fails when it's run by double clicking the executable from its folder. In the output window I can see the message:
"Error (RT) in arruola: window not found (the handle is 0)."
the macro code is:
int w=win("[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]" "FNWND3115" "millewin" 0x200)
act w
0.2
key SF4 ;; MAIUSC+F4
0.2
key v70.5 ;; V 7 0 . 5
key Y ;; INVIO
/etc...
Could you give me a hint on what's going wrong?
Many thanks