07-25-2012, 04:52 AM
Your description is very clear.
The best way:
Macro Macro1794
---------------
How to use variable keys with key:
Macro Macro1795
other example
Macro Macro1796
The best way:
Macro Macro1794
#if EXE
;...actions using the predifined "_command" variable
#else
;...actions using the "test_command" variable
#endif
---------------
How to use variable keys with key:
Macro Macro1795
;For text, use string variable in ().
;For other keys, use virtual-key code of the key in (). Look for the table in QM help.
;Cannot use variable QM key codes in exe, unless the macro converts each QM key code to virtual-key code using function QmKeyCodeToVK.
str s="text" ;;text
int vk=VK_RETURN ;;Enter
key (s)
key (vk)
other example
Macro Macro1796