Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set a macro to run whenever a particular window is activated
#5
I Cant get this to work.

the code is -

Code:
Copy      Help
Function auto_caps_lock

int hwnd=val(_command)
ifk-(K 1) key K
wait 0 -WA hwnd
ifk(K 1) key K

with trigger - !a"metapad" "ahk_class metapad"

error is coming - Error in Function3: expected 2 arguments, not 1.


NOTE - I have made this macro as by creating a new function and not a tsmenu.


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)