Code: Select all
.Bind
Code: Select all
.Bind
Code: Select all
KeyWait (variable1==False) ; KeyWait "Numpad2"
Code: Select all
SendEvent (On ? "" : %aktSlot%"{NumpadAdd}")
Code: Select all
^ESC::
ExitApp
OnExit("KeysReset")
KeysReset()
{
Loop, 0xFF ;this will release of all pressed keys
IF GetKeyState(Key:=Format("VK{:X}",A_Index))
SendInput, {%Key% up}
ExitApp
}
return
Code: Select all
% SubStr(variable, 2)
Code: Select all
SendEvent % on ? "%SubStr(variable, 2)" : ""
Code: Select all
#Persistent
#NoEnv
SendMode Input
SetKeyDelay, 5
a::
variable := A_ThisHotkey
tooltip % variable
SendEvent {%variable%}
Return
^ESC::ExitApp
Return