Autohotkey: Auto Inject Script

This is a discussion on Autohotkey: Auto Inject Script within the Starcraft 2 Hacks, bots and tools board part of the Starcraft 2 forum category; This is a simple auto inject script i made for autohotkey. Instructions. 1. Download Autohotkey 2. Run Autohotkey and load ...

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38
  1. #1
    GanjaRoach is offline Newbie
    Array
    Join Date
    Aug 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0

    Autohotkey: Auto Inject Script

    This is a simple auto inject script i made for autohotkey.

    Instructions.

    1. Download Autohotkey
    2. Run Autohotkey and load default Script when option is given.
    3. Right Click AH in taskbar. Click Edit
    4. Copy paste Below code into the notepad that opened
    5. Find this part in the script Sendinput (Insert Inject Hotkey Here) and Put your inject hotkey into the parenthesis


    How to Use

    1.Capslock is the key that activates the script
    2. Use numlock to suspend the script and restore normal function to Capslock
    3. Have your Queens sitting next to your Hatchery.

    Notes:

    Script was made with 1920/1080 resolution if the click drag isnt working This Link will tell you how to change the click drag variables for your screen https://autohotkey.com/docs/commands/MouseGetPos.htm

    If you only want it to inject once per hotkey press as opposed to the three per press that is currently coded the remove two of the



    *** Mouseclick, left, %hatchX%, %hatchY% *** that is in the script

    Script:

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


    Numlock::suspend


    Capslock::
    Send {backspace}
    MouseClickDrag, Left, 640, 200, 1347, 714, 0,
    Sendinput (Insert Inject Hotkey Here)
    Send {Shift down}
    Mouseclick, left, %hatchX%, %hatchY%
    Mouseclick, left, %hatchX%, %hatchY%
    Mouseclick, left, %hatchX%, %hatchY%
    Send {Shift up}
    return
    Last edited by GanjaRoach; 11-12-2016 at 01:34 AM.

  2. The Following User Says Thank You to GanjaRoach For This Useful Post:


  3. #2
    xraven511 is offline Newbie
    Array
    Join Date
    May 2015
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Great job and thank you for sharing!

  4. #3
    Anixie is offline Newbie
    Array
    Join Date
    Nov 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    4
    Reputation
    1
    i dont play zerg but I appreciate the contribution to the hacking community. big step forward bois

  5. #4
    Disturbance is offline Wannabe Member
    Array
    Join Date
    Feb 2016
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    2
    Reputation
    3
    Is this meant for multiplayer or is it just for single player?

  6. #5
    GanjaRoach is offline Newbie
    Array
    Join Date
    Aug 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Multiplayer there is no injecting in single player

  7. #6
    Disturbance is offline Wannabe Member
    Array
    Join Date
    Feb 2016
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    2
    Reputation
    3
    Wow, very nice! Are you working on a production and map hack or no? If not, its cool.

  8. #7
    Walker1's Avatar
    Walker1 is offline Newbie
    Array
    Join Date
    Nov 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Many thanks dude !!!! I went back to SC2 a few days ago and now that hacks are all down, I was hoping to find an auto inject script.
    And then you came with your Genius script !!

    Great job !

  9. #8
    GanjaRoach is offline Newbie
    Array
    Join Date
    Aug 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Quote Originally Posted by Disturbance View Post
    Wow, very nice! Are you working on a production and map hack or no? If not, its cool.
    I would love to if i ever had the time to sit down and learn it but ATM no plans for that. Mostly just scripts that i might find useful.

  10. #9
    TXKOKOKO is offline Banned User
    Array
    Join Date
    Aug 2016
    Posts
    50
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    1
    hatchX := ( A_ScreenWidth / 2 )
    hatchY := ( A_ScreenHeight / 2 ) - ( 0.00 * A_ScreenHeight )
    Numlock::suspend
    Capslock::
    Sendinput 6
    Sendinput v
    Send {space}
    Mouseclick, left, %hatchX%, %hatchY%
    return

  11. #10
    GanjaRoach is offline Newbie
    Array
    Join Date
    Aug 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    Quote Originally Posted by TXKOKOKO View Post
    hatchX := ( A_ScreenWidth / 2 )
    hatchY := ( A_ScreenHeight / 2 ) - ( 0.00 * A_ScreenHeight )
    Numlock::suspend
    Capslock::
    Sendinput 6
    Sendinput v
    Send {space}
    Mouseclick, left, %hatchX%, %hatchY%
    return
    That is the old version of my script and will cause your queens to wander the new version dosent rely on queens being hotkeyed. They just need to be near the Hatch.

Page 1 of 4 123 ... LastLast

Similar Threads

  1. [Help] Is there any AutoHotkey Last hit script for dota?
    By dsdsdsds in forum Warcraft 3 Hacks, bots and tools
    Replies: 3
    Last Post: 12-31-2014, 08:50 PM
  2. [Dota] Meepo AutoHotkey Script
    By Saiyan in forum Warcraft 3 Hacks, bots and tools
    Replies: 6
    Last Post: 11-28-2014, 11:29 AM
  3. CallofDuty 2 fastshoot script autohotkey
    By kudo96 in forum Call of Duty
    Replies: 0
    Last Post: 07-23-2010, 05:42 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
  •