Forums Forums WoW how do i make AHK keymoard Reply To: how do i make AHK keymoard

Jimmy Boy Albrecht
Stone Guard
Post count: 421

Hello Samuel

I am using this script:

#SingleInstance Force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

$numpad4:: ;$ prevents the hotkey from triggering itself by Send {a} below in the loop
freq:=30 ;delay between key presses
ifWinActive World of Warcraft ;Check if scrolllock is toggled on, if it is then do the keyspam loop
if getkeystate(“numpad4″,”P”)=0 ;Check if {numpad1} is pressed, if not then break loop
Send {numpad4} ;key1
Sleep %freq% ;delay

else ;if isnt toggled on, button to have its native function
Send {numpad4}