Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inhibiting keypress
#4
Why not use normal trigger Win+N, like this?

Macro Macro2123
Trigger Wn     Help - how to add the trigger to the macro
Code:
Copy      Help
int w1=win(" - Notepad" "Notepad") ;;get window handle
if w1=0
,OnScreenDisplay "Launching Notepad" 1 0 0 0 0 0 2
,run "notepad.exe"
else
,OnScreenDisplay "Already Running Notepad" 1 0 0 0 0 0 2
,act w1

In AHK you run a script containing triggers.
In QM you assign trigger in Properties dialog, and the script runs when you press eg Win+N.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)