Hi, there!
I would like to have a script that everytime I hold "Q", AHK would press "Q" several times.
That's what I have so far:
--------------------------------------------------
#IfWinActive, Diablo III
While GetKeyState("q")
{
Send, q
Sleep, 500 ; every 500 miliseconds
}
Return
--------------------------------------------------
So far I have two issues:
1. My "W" (wich is a very important button in the game) is not working when the AHK scritp is on.
2. When I hold left click to walk in the game, the script just stops working. A
Any solutions? Thanks in advance!
Diablo 3 very simple script
-
- Posts: 4
- Joined: 15 Jul 2017, 21:46
-
- Posts: 141
- Joined: 19 Jul 2017, 09:59
Re: Diablo 3 very simple script
I used to do such scripts all the time in Diablo2 and Divine Divinity. Capslock to activate/pause
Code: Select all
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#MaxThreadsperHotkey 1
Suspend
*q:: ;* before letter means it will work even if you press other keys.
BreakLoop = 0
Loop,
{
if (BreakLoop = 1)
break
Send,{q Down}
Sleep,30
Send,{q Up}
Sleep,100
}
*q Up::
BreakLoop =1
Return
~*CapsLock::
Suspend
Return
Who is online
Users browsing this forum: No registered users and 60 guests