Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Binds the Numlock key to a calculator.
- ; Double tap to launch or close.
- ; Single tap to focus or minimize.
- ; Place in start folder to automatically run.
- #NoEnv
- SendMode Input
- SetWorkingDir %A_ScriptDir%
- SetNumLockState AlwaysOn
- NumLock::Handler(250)
- Handler(Time)
- {
- ; DOUBLE TAP
- If (A_ThisHotkey==A_PriorHotkey && A_TimeSincePriorHotkey < Time) {
- IfWinExist, SpeedCrunch
- WinClose
- else
- Run, "C:\Program Files (x86)\SpeedCrunch\SpeedCrunch.exe", max
- }
- ; SINGLE TAP
- else {
- IfWinExist, SpeedCrunch
- IfWinActive
- WinMinimize
- else
- WinActivate
- }
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement