SpecialAttack.net
https://forum.specialattack.net/

[Guide] AutoHotkey (automate commonly used commands)
https://forum.specialattack.net/viewtopic.php?t=10161
Page 1 of 1

Author:  Fumino [ 05 Apr 2011, 08:38 ]
Post subject:  [Guide] AutoHotkey (automate commonly used commands)

AutoHotkey Macro Script
AutoHotkey is useful in Minecraft for automating commonly used commands, and I felt that Stop_Sign's original post could use an update.

AutoHotkey Download Link
http://www.autohotkey.com/download/

Once downloaded and installed, right click on the AHk icon and select, "Edit This Script."
Delete everything and copy/paste the below script.
After you paste it, be sure to save it, then close it out, right click on the AHk icon and select, "Reload This Script."
Code:
^v::
SendInput t
Sleep 200
SendInput /paste{Return}
return
^z::
SendInput t
Sleep 200
SendInput /undo{Return}
return
^c::
SendInput t
Sleep 200
SendInput /copy{Return}
return
^x::
SendInput t
Sleep 200
SendInput /cut{Return}
return
^b::
SendInput t
Sleep 200
SendInput /measure{Return}
return
^f::
SendInput t
Sleep 200
SendInput /c{Return}
return
^g::
SendInput t
Sleep 200
SendInput /mark{Return}
return
^t::
SendInput t
Sleep 200
SendInput /c air{Return}
return
^p::
SendInput t
Sleep 200
SendInput /patrol{Return}
Sleep 500
SendInput {Shift down}
SendInput {q down}
Sleep 500
SendInput {q up}
SendInput {Shift up}
MouseMove <X>, <Y+400>, 5
return
To use the auto-patrol (the code that starts with ^p::), it takes a bit of preparation. Right click on the AHk icon, select window spy, go to your minecraft window and control your character. In the window spy, it'll tell you a mouse position (In Active Window: X, Y). Replace the <X> and <Y> with those numbers (Y add 400). For example, I see in Active Window: 511, 338, so I'd type
MouseMove 511, 700, 5 on that line.

Now you have a command that patrols, flies up and then looks straight down.

Commands for the above script
  • CTRL+V to paste
    CTRL+Z to undo
    CTRL+C to copy
    CTRL+X to cut
    CTRL+B to measure
    CTRL+F to do a cuboid
    CTRL+G to mark
    CTRL+T to make a cuboid of air
    CTRL+P to patrol
For Supop rank or higher, I have created a script to automate wiping the main map. See the below link for the script. (must be rank Supop or higher to see)
http://forum.specialattack.net/viewtopi ... 05&t=10160

Author:  Fumino [ 05 Apr 2011, 08:43 ]
Post subject:  Re: [Guide] AutoHotkey (automate commonly used commands)

Crap, I just noticed I wasn't in the Minecraft sub-forum, so could someone please move this to the General Discussions section over there for me? :mrgreen:

-Thank you Cardboard

Author:  [SpA]cardboard [ 05 Apr 2011, 08:46 ]
Post subject:  Re: [Guide] AutoHotkey (automate commonly used commands)

Done.

Author:  SnowfireX [ 05 Apr 2011, 13:03 ]
Post subject:  Re: [Guide] AutoHotkey (automate commonly used commands)

Wow TY Fumino so much, I've been wondering how to get macro's but couldn't be stuffed, and this really helped dummies like me :)

Author:  Scrathy [ 05 Apr 2011, 15:02 ]
Post subject:  Re: [Guide] AutoHotkey (automate commonly used commands)

It is very important that you enter the sleep 200 or some sort of delay. The new .6 wom's broke macros so a delay is required now.

Author:  [SpA]mbl111 [ 06 Apr 2011, 09:40 ]
Post subject:  Re: [Guide] AutoHotkey (automate commonly used commands)

so that explains why my macros were being stupid

Page 1 of 1 All times are UTC+02:00

Powered by phpBB® Forum Software © phpBB Limited