Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inhibiting keypress
#1
Macro My First Macro
Code:
Copy      Help
rep
,
,ifk(F12) ret ;;exit if F12 is pressed
,ifk(Wn)
,,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

Here is my first, test macros, I am trying to supress the "n" from being passed to the focused application. I verified that the "Eat" was checked in the item properties, but the "n" is still being passed through. Ideas?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)