Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set a macro to run whenever a particular window is activated
#11
Which line ?

My macro is this (A FUNCTION) -

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


I have tried both triggers -
!a"metapad" "metapad"
and
Also this previous trigger - !a"new file - metapad" "metapad"


But both give the same error -
ERROR CODE - Error in Function5: expected 2 arguments, not 1.

I think this error would be easy to sort out as it must be a coomon error known to u.


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)