Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
test macro file => compiled version .exe takes argument
#2
Your description is very clear.

The best way:
Macro Macro1794
Code:
Copy      Help
#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
Code:
Copy      Help
;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
Code:
Copy      Help
int k1 k2
k1=VK_LWIN
k2='R'

key (k1)(k2) ;;Win+R


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)