This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Usage example: | |
/* | |
#NoEnv | |
#SingleInstance force | |
#Warn | |
#Persistent | |
ControlGet, hEdit1, Hwnd,, Edit1, ahk_class Notepad | |
if not (hEdit1) | |
ExitApp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#SingleInstance force | |
#Warn | |
Menu, Tray, Tip, % A_AhkVersion | |
for direction, params in ({"Left": [ "x", -1 ], "Up": [ "y", -1 ], "Right": [ "x", 1 ], "Down": [ "y", 1 ]}) | |
{ | |
fn1 := Func("f").bind(params[1] . "1", params[2]), fn2 := Func("f").bind(params[1] . "2", params[2]) | |
Hotkey % "#Numpad" . direction, % fn1, On |