Page 1 of 1

Diablo 3 very simple script

Posted: 15 Jul 2017, 21:54
by kkmarcelokk
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! :)

Re: Diablo 3 very simple script

Posted: 21 Jul 2017, 06:00
by mast4rwang
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