[AutoHotkey] Security - Automation - Combat
AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText
After searching the forums I realized there aren't any real guides here on how to use AutoHotkey effectively.
AutoHotkey is a macro-making utility for Windows that can automate almost anything by sending keystrokes and mouse clicks.
The macro-making is very straight forward and doesn't require any special programming skills.
Besides the obvious time-saving that can be made for windows applications there are also uses for this in World of Warcraft.
I have written some codes that I think are very handy for World of Warcraft
[Security]
Everyone fears keyloggers. So do I. In order to prevent your account/password to be logged you can automate the login task.
This code however doesn't save you from all keyloggers!
However, SOME protection is better then none and I am going to assume to download a complex keylogger that can log this correctly you've done something really wrong.
This script will execute as soon as you run it.
Code:
run H:\Program Files\Blizzard\World of Warcraft\Wow.exe ; Fill in your World of Warcraft Launcher.exe
Sleep 5000 ; It waits for 5 seconds to allow the login screen to be displayed. Edit this number depending on speed
WinActivate World of Warcraft ; Makes sure the World of Warcraft window is open
clipboard = Username ; This is your ACCOUNT NAME
Send ^v
Send {tab} ; Presses the Tab button.
clipboard = Password ; This is your PASSWORD
Send ^v
Send {Enter}
return
ExitApp ; Closes the script
[Automation]
Also this script can automate any task by sending keystroke. You can make a macro that automatically walks you out of the AV cave and into a tower in AV for example but I leave it to your scripting abilities and imagination to make something.
It can be used to make a easy text graphic or advertising your goods. For this example I'll make a simple text-graphic but you can also put your jewelcraft/enchanting info here.
Code:
#IfWinActive, World of Warcraft ; Makes sure the script only works when the World of Warcraft window is open
v:: ; v is the key that activates the macro. This can be any key or a key combination like ctrl-v. Input as you wish
Clipboard = ____________
Send {Enter}
Send ^v
Send {Enter}
Sleep 100
Clipboard = | |
Send {Enter}
Send ^v
Send {Enter}
Sleep 100
Clipboard = | @(+_+)@ |
Send {Enter}
Send ^v
Send {Enter}
Sleep 100
Clipboard = |___________|
Send {Enter}
Send ^v
Send {Enter}
Sleep 100
Return
Yes I know it's pretty silly but use it's just a example how can you print messages without the clipboard method.
[Combat]
Ever felt like..damn I have to press this button so much all the time...isn't there some way to automate this? The macro's ingame can only do so much.
I have here a few examples of how you can automate your combat using yet again, some new scripting techniques!
Here you will only need to have a button pressed.
Code:
[Hunter]
$Numpadsub:: ; This is the Numpad - symbol
Loop
{
Loop
{
Getkeystate, state, Numpadsub, P
if state = D ; Checks to see if it's pressed. If pressed it will run the loop
Break
}
Send . ;Insert your own key here. For example: The key that activates Rapid Fire
Sleep 50
Send y ;Insert your own key here. For example: The key that activates your trinkets
Sleep 50
Send q ;Insert your own key here. For example: The key that activates multishot
Sleep 50
Send 3 ;Insert your own key here. For example: The key that activates arcane shot
Sleep 50
Send q ;Insert your own key here. For example: The key that activates multishot
Sleep 50
Send 3 ;Insert your own key here. For example: The key that activates arcane shot
Sleep 50
Send 1 ;Insert your own key here. For example: The key that activates steady shot (having this only once and the other twice ensures it will press those buttons more often giving them more priority..I don't know just works better for me
Sleep 50
return
}
All you have to press is the Numpad - button and he will go all out. Maybe not the perfect shotrotation but it's usually better then manually pressing and easier. The hunter "IWIN" Button!
I am sure every class has his own buttons you have to press repeatedly which can be automated. I advice you to find out what works for you.
I advice everyone however to only use Autohotkey to automate these kind of scripts as it's not intented to be used for automated play.
Hopefully you can make your own macro's that work for you.