StarCraft II: Auto-Queen AutoHotkey

This is a discussion on StarCraft II: Auto-Queen AutoHotkey within the Starcraft 2 Hacks, bots and tools board part of the Starcraft 2 forum category; Originally Posted by gunblademoon can you get banned for Autohotkey using ? Technically, you could. But so far so good ...

Page 7 of 7 FirstFirst ... 567
Results 61 to 69 of 69
  1. #61
    lightdreamer is offline Member
    Array
    Join Date
    Apr 2017
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    3
    Reputation
    3
    Quote Originally Posted by gunblademoon View Post
    can you get banned for Autohotkey using ?
    Technically, you could. But so far so good for me.

  2. #62
    Deviously is offline Newbie
    Array
    Join Date
    Oct 2010
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Right - so after a few hours of messing with the script I believe I have made it near perfect.

    I have made it so that the boxing seems much more human like, by randomizing the locations of where the box starts and finishes. And I have also changed the speed at which it opens the box, and finds the hatchery to inject.

    I have also changed the the last hotkey from selecting your army, to hitting stop. Which will prevent any wandering queens.

    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}
       }
    Sleep, 45
    SendInput, {s}
    return
    Let me know what you think
    Last edited by Deviously; 12-21-2017 at 03:32 AM.

  3. #63
    Darious4's Avatar
    Darious4 is offline Hacker
    Array
    Join Date
    Dec 2016
    Location
    San Francisco, CA
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    4
    Reputation
    187
    Quote Originally Posted by Deviously View Post
    Right - so after a few hours of messing with the script I believe I have made it near perfect.

    I have made it so that the boxing seems much more human like, by randomizing the locations of where the box starts and finishes. And I have also changed the speed at which it opens the box, and finds the hatchery to inject.

    I have also changed the the last hotkey from selecting your army, to hitting stop. Which will prevent any wandering queens.

    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}
       }
    Sleep, 45
    SendInput, {s}
    return
    Let me know what you think
    That's a good approach to the problem. What I found that works for me is "GetMousePos" so that the script's box will be so fast that in replays in appears "regular." The boxing will always land on the hatchery but, will return to your previous cursor position or basically wherever your cursor is hovering which makes it really smooth. For some reason, this rids the instance of wandering queens. The problem with wandering queens and the cause, is this, "SetKeyDelay." This alters the speed at which keys are sent. In my script is at the fastest possible setting, "-1". This requires some in-game testing to make sure that your script overall is compatible with sending keys at that speed. Also, keep in mind that Sc2 can be pretty slow when updating keystates.

    Code:
    #NoEnv  
    SendMode Input  
    SetWorkingDir %A_ScriptDir%  
    
    
    
    
    
    
    hatchX := ( A_ScreenWidth / 2 ) 
    hatchY := ( A_ScreenHeight / 2 ) - ( 0.04 * A_ScreenHeight )
    SetDefaultMouseSpeed, 0
    SetKeyDelay, -1
    
    
    global injectTime := 0
    
    
    
    
    
    
    Numlock::suspend  
    
    
    
    
    
    $Capslock::
    SetBatchLines, -1
    SetDefaultMouseSpeed, 0
    SetMouseDelay -1
    SetKeyDelay -1
    Sleep, -1
    
     {
    
    
    
    MouseGetPos CurX, CurY
    Send {backspace}
    ControlSend, , {space},StarCraft II
    MouseClickDrag, Left, 640, 200, 1347, 714, 0,
       }
    
    {
    
    
    SendInput, {x}
    SetBatchLines, -1
    SetKeyDelay, -1
    Send {Shift down}
    Mouseclick, left, %hatchX%, %hatchY%
    MouseClick, Left, %CurX%, %CurY%, 1, 0
    Send {Shift up}
    
    
    
       }
    
    
    Sleep, 45
    SendInput, {1}
    Sleep, -1
    SendInput, {q}
    
    Return
    Last edited by Darious4; 12-21-2017 at 09:31 PM.
    "You can't change the past but you can still fuck up your future"

  4. #64
    dezeadmf is offline Wannabe Member
    Array
    Join Date
    Feb 2018
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    2
    Reputation
    1
    Can you make the script to work on 1024x768 resolution or 1152x864 ? This script is working very well on 1600x1050 but i have very low fps

  5. #65
    andySouer is offline Newbie
    Array
    Join Date
    Nov 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Something goes wrong; I use that script

    Code:
    #NoEnv  
    SendMode Input  
    SetWorkingDir %A_ScriptDir%  
    
    
    
    
    
    
    
    
    
    
    
    
    hatchX := 960
    hatchY := 500
    SetDefaultMouseSpeed, 0
    SetKeyDelay, -1
    
    
    
    
    global injectTime := 0
    
    
    
    
    
    
    
    
    
    
    
    
    Numlock::suspend  
    
    
    
    
    
    
    
    
    
    
    $Space::
    SetBatchLines, -1
    SetDefaultMouseSpeed, 0
    SetMouseDelay -1
    SetKeyDelay -1
    Sleep, -1
    
    
     {
    
    
    
    
    
    
    MouseGetPos CurX, CurY
    Send {backspace}
    ControlSend, , {backspace},StarCraft II
    MouseClickDrag, Left,  340, 200, 1647, 914, 0,
       }
    
    
    {
    
    
    
    
    SendInput, {p}
    SetBatchLines, -1
    SetKeyDelay, -1
    Send {Shift down}
    Mouseclick, left, %hatchX%, %hatchY%
    MouseClick, Left, %CurX%, %CurY%, 1, 0
    Send {Shift up}
    
    
    
    
    
    
       }
    
    
    
    
    Sleep, 45
    SendInput, {1}
    Sleep, -1
    
    
    
    
    Return
    And the injection is not done in all the hatchery. At the beginning of the game the camera moves only to one hatchery, when there are 2 of them, then when the hatcheries are 3, then everything looks ok,but then again when there are many hatcheries, the injection is done in 2 or 3 hatcheries, although near each of the 5-6 hatcheries there are queens.
    Prompt please that not so in the code and that it is possible to change.?
    I'm playing on 1920x1080

  6. #66
    gtr428 is offline Addict
    Array
    Join Date
    Feb 2016
    Posts
    58
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    4
    Reputation
    6
    Does it still work?

  7. #67
    skysurferdude12 is offline Member
    Array
    Join Date
    May 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    14
    Is there a updated version of this?
    Doesn't work anymore.

    Or how can I update it to work? Is there a guide to writing scripts?
    Getting back into to sc and I used to love this!
    Attitude is a little thing that makes a big difference. ~Winston Churchill

  8. #68
    Darious4's Avatar
    Darious4 is offline Hacker
    Array
    Join Date
    Dec 2016
    Location
    San Francisco, CA
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    4
    Reputation
    187
    Hey all, coming back into the scene! The script has continued to work for me as well as many others, autohotkey is still viable in this game. What is the script doing, what's your resolutions? You can edit it to your liking and the ahk community's website has numerious guides on the topic of games and automation which is useful.
    "You can't change the past but you can still fuck up your future"

  9. #69
    mfedorov is offline Addict
    Array
    Join Date
    Jun 2014
    Location
    Russia
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    7
    Nice to see you again Darious4

Page 7 of 7 FirstFirst ... 567

Similar Threads

  1. Autohotkey: Auto Inject Script
    By GanjaRoach in forum Starcraft 2 Hacks, bots and tools
    Replies: 37
    Last Post: 01-30-2017, 01:34 PM
  2. [FREE SC2] AutoHotkey/ auto worker script for terran and protoss
    By Darious4 in forum Request a Hack
    Replies: 0
    Last Post: 01-03-2017, 02:58 AM
  3. [Release] Auto Queen Larva Spawn
    By darklordabc123 in forum Starcraft 2 Hacks, bots and tools
    Replies: 22
    Last Post: 10-28-2015, 03:33 PM
  4. Any maphacks out that can auto larva for zerg with the queen? That isnt $60.
    By deberry in forum Starcraft 2 Hacks, bots and tools
    Replies: 7
    Last Post: 10-21-2012, 10:26 PM
  5. Replies: 8
    Last Post: 06-18-2010, 06:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •