08-16-2013, 03:36 PM
Macro My First Macro
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?
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?