Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; poe-numpad_trick.ahk
- ; list of keys https://www.autohotkey.com/docs/KeyList.htm
- ; Most common path of exile window names
- GroupAdd, poe_window, ahk_exe PathOfExile.exe
- GroupAdd, poe_window, ahk_exe PathOfExileSteam.exe
- GroupAdd, poe_window, ahk_exe PathOfExile_x64.exe
- GroupAdd, poe_window, ahk_exe PathOfExile_x64Steam.exe
- #IfWinActive ahk_group poe_window ; only activate when poe is detected
- #SingleInstance force ; only 1 script
- #warn ; debugging
- #NoEnv
- SetKeyDelay,0
- SetBatchlines,-1
- ; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- StartStop = F12 ; see top of script for keys
- spam_key = ; You can use any number of buttons here
- (
- Numpad1
- Numpad2
- Numpad3
- )
- loop, parse, spam_key, % "`n" ; loop through spam_key var
- Send, {%spam_key% up} ; clears any key on script start
- toggleStatus := 0 ; 0 off 1 on ; clears vars on script start
- hotkey, %StartStop%, ToggleKey, on ; toggles keyspam
- ToggleKey:
- If( toggleStatus = 1 ){
- loop, parse, spam_key, % "`n" ; loop through spam_key var
- Send, {%A_LoopField% down} ; hold down each key in loop
- toggleStatus = 0
- } Else If ( toggleStatus = 0){
- Send, {%A_LoopField% up} ; release each key in loop
- loop, parse, spam_key, % "`n" ; loop through spam_key var
- toggleStatus = 1
- }
- Return
- ; Ctrl+Alt+A -- check if script recognizes game window
- ^!a::
- WinGetTitle, titlevar, A
- ToolTip, active window is %titlevar%`n`nHotkeys defined:`n%spam_key%
- SetTimer, removetooltip, -2000
- return
- removetooltip:
- Tooltip
- return
Add Comment
Please, Sign In to add comment