Need help with Switching to Toggle. Topic is solved

Ask gaming related questions (AHK v1.1 and older)
jpnzpr0digy

Need help with Switching to Toggle.  Topic is solved

09 Jul 2018, 01:42

#ifWinActive World of Warcraft ; Only run if window 'World of Warcraft' is active
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1


{
; The following script is run when the user presses the '1' key
; and will loop until the 1 key is no longer pressed, sending
; 1 over and over every delay miliseconds. To use a different
; key, replace all three 1s with the key you want repeated.

delay:=95

$1::
Loop
{
if not GetKeyState("1", "P")
break
Send 1
Sleep delay
}



Could u make that into a Toggle instead of hold down spam.
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: Need help with Switching to Toggle.

09 Jul 2018, 09:02

jpnzpr0digy wrote:#ifWinActive World of Warcraft ; Only run if window 'World of Warcraft' is active
#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
ListLines Off
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1


{
; The following script is run when the user presses the '1' key
; and will loop until the 1 key is no longer pressed, sending
; 1 over and over every delay miliseconds. To use a different
; key, replace all three 1s with the key you want repeated.

delay:=95

$1::
Loop
{
if not GetKeyState("1", "P")
break
Send 1
Sleep delay
}



Could u make that into a Toggle instead of hold down spam.
If you didnt see it https://autohotkey.com/boards/viewtopic ... 18&t=51729

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 52 guests