* Really fast commands (such as copy/paste)
* Fast patrolling
* Easy speeches
* Useful real world applications
* Fun trolling friends
So now that you realize that you can't live without it, how do you get it? Simple!
Go to this link and click the installer for autohotkey_L. It'll download fast, and just run the installer. After you run the installer, load up the program from your start menu. You should see a green box next in your toolbar next to your block with an H on it. That means the script is currently running.
It should also prompt you with a "Do you want to create an example script". Say yes. It'll load notepad. This is where you can put the code for the actual script. If you don't get that, then right click on the green box and press "Edit" and it'll give you a notepad file as well.
Depending on how much of a programmer you are, you can use this program for anything from simple tasks to extremely powerful and important tools to ruthlessly trolling your friends. I'll start you off with a demo program. You should delete everything in the text file it auto-created for you, and put this in (I'll explain it too):
Code: Select all
^p::
IfWinActive, Minecraft
{
SendEvent t
sleep, 50
SendEvent /pat{Enter}
}
return
It will only run this if the window title says minecraft as well, so no messing with hotkeys elsewhere! (thanks to Hafnium)
It will then send the t letter, to open your chat log, and then wait a bit for the client to catch up (50 milliseconds). After that, it'll use the open text box to type /pat and then press the enter key.
The purpose of this macro is to make patrolling easier. Rather than type t/pat yourself, all you have to do is press ctrl-p. You can change the ctrl-p to anything you want. I also use the grave key (the ` key) to patrol. If you wanted to do that, your code would instead look like this:
Code: Select all
`::
IfWinActive, Minecraft
{
SendEvent t
sleep, 50
SendEvent /pat{Enter}
}
return
So how do you run this program? After you've pasted it in the notepad, save the document and then right click your green button in the toolbar. Click the "Reload the script" option and your script will be running. After that, you can press ctrl-p to patrol any time! You can also pause the script by right clicking and choosing the "suspend hotkeys" option.
"OK, that is too simple. Where is all of the rest of the things you promised me?" You ask.
Well, here are some other useful commands of mine, which you can just plop into the text file:
Code: Select all
^c::
IfWinActive, Minecraft
{
SendEvent t
Sleep, 50
SendEvent /copy{Enter}
}
return
^z::
IfWinActive, Minecraft
{
SendEvent t
sleep, 50
SendEvent /undo{Enter}
}
return
^v::
IfWinActive, Minecraft
{
SendEvent t
sleep, 50
SendEvent /paste{Enter}
}
return
^t::
IfWinActive, Minecraft
{
SendEvent t
sleep, 50
SendEvent /c air{Enter}
}
return
^b::
IfWinActive, Minecraft
{
SendEvent t
sleep, 50
SendEvent /measure{Enter}
}
return
^i::
IfWinActive, Minecraft
{
SendEvent t
sleep, 100
SendEvent If I see see you spleefing or griefing /{Enter}
sleep, 100
SendEvent tor tunneling, /{Enter}
sleep, 100
SendEvent t I will kick you from the server.{Enter}
}
return
^o::
IfWinActive, Minecraft
{
SendEvent t
sleep, 100
SendEvent If you are being griefed, get the name /{Enter}
sleep, 100
SendEvent tof your griefer and say it in the chat /{Enter}
sleep, 100
SendEvent tand we will attend to you as soon /{Enter}
sleep, 100
SendEvent tas we can.{Enter}
}
return
XButton2::
IfWinActive, Minecraft
{
Loop, 20
SendEvent {Click}
}
return
This isn't laziness, its efficiency. You should learn how to do this as well!