I have taken the script originally posted by Darious4, posted here.
And modified it so that it works a lot more human like. I was not a fan of having AHK use the same spot, same speed, every single time.
It now will go from base to base and the size and speed of the box that goes over the hatchery will change randomly. Lastly, the mouse movement back to the hatchery is closer to what most normal players would use, as it sitting at 0 was simply too fast.
So depending on the map, I had to change the 'stop' command, as drones are being stopped from mining. So that still hasn't been fixed. But the rest is okay.
Code:
#NoEnv
zoneX := ( A_ScreenWidth / 2 )
zoneY := ( A_ScreenHeight / 2 ) - ( 0.04 * A_ScreenHeight )
SetDefaultMouseSpeed, 0
SetKeyDelay, -1
Numlock::suspend
Insert::
Send {backspace}
{
ControlSend, , {backspace}
Sleep, 50
}
{
SetBatchLines, -1
SetKeyDelay, -1
SetMouseDelay, 1
SetDefaultMouseSpeed, 8
Random, x1, 650, 800
Random, y1, 100, 250
Random, x2, 1350, 1950
Random, y2, 650, 850
Random, s, 18, 28
MouseClickDrag, Left, x1, y1, x2, y2, s
sendinput, {q}
}
{
SetBatchLines, -1
SetKeyDelay, -1
ControlSend, , {q}, StarCraft II
Send {Shift down}
Mouseclick, left, %zoneX%, %zoneY%
Send {Shift up}
}
return