Post Your Zerg AutoHotKey Scripts Here Please

verbz00

Member
Sorry I hadn't been on this site in about 6 months, came back and noticed alot of things were lost. Was looking forward to checking some of my old post and new ones in all the Script threads we had. Would appreciate it if we could share what we had.
 

gtr428

Member
something like that, but u must edit for you. It works for me prettty well.


#NoEnv
hatchX := ( A_ScreenWidth / 2 )
hatchY := ( A_ScreenHeight / 2 ) - ( 0.04 * A_ScreenHeight )
SetDefaultMouseSpeed, 0
SetKeyDelay, -1

Numlock::suspend ; Edit hotkey for pause/resume auto-injecting

Capslock:: ; Edit hotkey for auto-injecting

Send {backspace}
{
ControlSend, , {F1,F2,F3,F4,F5,F6,F7},StarCraft II

Sleep, 50
}
{
SetBatchLines, -1
SetKeyDelay, -1
SetMouseDelay, 1
SetDefaultMouseSpeed, 0

MouseClickDrag, Left, 640, 200, 1347, 714, 0,
sendinput, {v}


}
{
SetBatchLines, -1
SetKeyDelay, -1
ControlSend, , {v}, StarCraft II
Send {Shift down}
Mouseclick, left, %hatchX%, %hatchY%

Send {Shift up}
}
Sleep, 45
SendInput, {1}
return
 

Darious4

Member
Hey nice to see this site breathing some life again!

Here was my script that I posted on the old forum, still use it, I'll post some more ahk scripts this week hopefully. If anyone has a Logitech mouse, I made a LUA script that's really efficient in game as well

Code:
hatchX := ( A_ScreenWidth / 2 )
hatchY := ( A_ScreenHeight / 2 ) - ( 0.04 * A_ScreenHeight )


; Queen Injector


#NoEnv
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, 1
SetDefaultMouseSpeed, 0

Numlock::suspend


Capslock::

Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, 1
SetDefaultMouseSpeed, 0




CoordMode, Mouse, Screen



MouseGetPos, x1, y1

Sendinput {backspace}
{
SendInput, {Tab}

}
   {

SetBatchLines, -1

MouseClickDrag, Left, 640, 200, 1347, 714, 0,
ControlClick , x500 y900 StarCraft II,, LEFT,, NA,

}

{
SetKeyDelay, -1


Sendinput, {x}

Sendinput {Shift down}
Mouseclick, left, %hatchX%, %hatchY%
Sendinput {Shift up}
MouseClick, left, %x1%,%y1%


Sleep, -1
Sendinput, {1}
Sendinput, {q}
   }
return
 

verbz00

Member
Wow thx for the replays, some good stuff. Was wondering if anyone figured out a good Creep Spread script or an Add Larva to Control Group script? I remember reading something a while back about how you could center the mouse over the first larva when making a round of units (roaches for example) that would shift click and add them to any control group. Not sure if it was ever made though. I spent weeks trying to get mine working to no avail.
 
#NoEnv
hatchX: = (A_ScreenWidth / 2)
hatchY: = (A_ScreenHeight / 2) - (0.04 * A_ScreenHeight)
SetDefaultMouseSpeed, 0
SetKeyDelay, -1

Numlock :: suspender; Editar teclas de acceso rápido para pausar / reanudar la autoinyección

Bloq Mayús:: ; Editar teclas de acceso rápido para autoinyección

Enviar {retroceso}
{
ControlSend,, {F1, F2, F3, F4, F5, F6, F7}, StarCraft II

Dormir, 50
}
{
SetBatchLines, -1
SetKeyDelay, -1
SetMouseDelay, 1
SetDefaultMouseSpeed, 0

MouseClickDrag, izquierda, 640, 200, 1347, 714, 0,
sendinput, {v}


}
{
SetBatchLines, -1
SetKeyDelay, -1
ControlSend,, {v}, StarCraft II
Enviar {Shift down}
Clic del mouse, izquierda,% hatchX%,% hatchY%

Enviar {Shift up}
}
Dormir, 45
SendInput, {1}
regreso
algo así, pero debes editarlo por ti. A mí me funciona bastante bien.

UNAGO BUENAS NOCHES ME PUEDES AYUDAR A CONFIGURARLO YA QUE ME MANDA ERROR NO SE MUCHO DEL TEMA PERO TENGO CONOCIMIENTO DE PROGRAMADOR PERO ANDO ALGO PERDIDO ME AYUDAS POR FAVOR.[/QUOTE]
 

Kspade

Global Moderator
Hola buenas noches no se mucho del tema pero me ayudan de como puedo ejecutar el scrip
algo así, pero debes editarlo por ti. A mí me funciona bastante bien.

UNAGO BUENAS NOCHES ME PUEDES AYUDAR A CONFIGURARLO YA QUE ME MANDA ERROR NO SE MUCHO DEL TEMA PERO TENGO CONOCIMIENTO DE PROGRAMADOR PERO ANDO ALGO PERDIDO ME AYUDAS POR FAVOR.
For the future, please use Google Translate.
 

verbz00

Member
Been having trouble getting this script to work if anyone has some advice. I guess it makes a overlord if you get supply blocked? Someone had it on the old D2scene and I wanted to get it working, but it doesn't seem to doing anything except add my current target to a temporary control group.

;Hotkey variables

global SC2_Army1 := 6
global SC2_Hotkey_Patrol := "p"
global SC2_Hotkey_Attack := "a"
global SC2_Hotkey_Move := "m"
global SC2DelayTIME := 8
global SC2_Hotkey_Hatchery := 2
global SC2_Hotkey_Select_Larva := "s"
global SC2_Hotkey_Build_Drone := "d"
global SC2_Hotkey_Build_Overlord = "t"
global SC2_Hotkey_Build_Zergling:= "z"
global SC2_Hotkey_Build_Roach := "r"
global SC2_Hotkey_Build_Hydra := "h"
global SC2_Hotkey_TempUnitGroup := 9
global SC2_Hotkey_Drone_Autobatching := `
global SC2_Hotkey_Zergling_Autobatching := F2
global SC2_Hotkey_Roach_Autobatching := F3
global SC2_Hotkey_Hydra_Autobatching := F4
global SC2_Unit_Composition1 := SC2_Unit_Composition1
CoordMode, Pixel, Window







F7::
Build_Overlord()
Build_SupplyBlock()

Return

Build_Overlord()
{
Send {Ctrl down}%SC2_Hotkey_TempUnitGroup%{Ctrl up}
Sleep, -1
Send %SC2_Hotkey_Hatchery%
Sleep, -1
Send %SC2_Hotkey_Select_Larva%
Send %SC2_Hotkey_Overlord%
Sleep, 1
Send %SC2_Hotkey_TempUnitGroup%
Sleep, 1
SetTimer, F7, 410000
}
Return





Build_SupplyBlock()
{
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 1735, -1040, 1919, -967, 0xFF0000, 0, Fast RGB
If ErrorLevel = 0
{
Send {Ctrl down}%SC2_Hotkey_TempUnitGroup%{Ctrl up}
Sleep, -1
Send %SC2_Hotkey_Hatchery%
Sleep, -1
Send %SC2_Hotkey_Select_Larva%
Send %SC2_Hotkey_Overlord%
Send %SC2_Hotkey_Overlord%
Sleep, 1
Send %SC2_Hotkey_TempUnitGroup%
Send %SC2_Hotkey_TempUnitGroup%
Sleep, 1

}
}
Return
 
Top