How to use Auto Hot Key
2 posters
Page 1 of 1
How to use Auto Hot Key
Frank's Guide to AutoHotKey
I hope this guide can help use AutoHotKey(AHK).
Download and Install
Ok, the first think you need to do is download the free AutoHotKey program if you haven't already.
Go to http://www.autohotkey.com/download/AutoHotkeyInstall.exe
Click "Run" and then install it.
Example Script and How to Save Scripts
Ok, now open up notepad and paste the code below into it.
To save an AHK script in the correct way is easy. Just click "save as" and give it a name such as this:
myscript.ahk
Type: "All Files"
It MUST have .ahk on the end of the name to work properly.
Avoid doing this: myscript.txt.ahk
Save and close.
Running and Using a Script
To use the commands it's simple. Double click your "myscript" file and you will see an AutoHotKey icon in your notification area. Enter SARP and press one of these key combinations to use a command:
Alt+y = Join and accept a new job.
Alt+u = Get weapons materials when on a point.
Alt+i = Enter a building
Alt+o = Exit a building
Alt+p = Get a drug crate when on the drug pont.
This guide is not quite done, but you know the basics now and you should be able to figure out how to make new commands and edit them just by looking the last part of the example script. Any questions are comments please reply.
I hope this guide can help use AutoHotKey(AHK).
Download and Install
Ok, the first think you need to do is download the free AutoHotKey program if you haven't already.
Go to http://www.autohotkey.com/download/AutoHotkeyInstall.exe
Click "Run" and then install it.
Example Script and How to Save Scripts
Ok, now open up notepad and paste the code below into it.
- Code:
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; ^ is Ctrl
; ! is Alt
; # is Windows key
; + is Shift
!y::SendInput t/join{enter}t/accept job{enter}t/me gets a new job.{enter}
!u::SendInput t/getmats{enter}t/me gets some mats.{enter}
!i::SendInput t/enter{enter}t/me Enters the building.{enter}
!o::SendInput t/exit{enter}t/me exits the building.{enter}
!p::SendInput t/getcrate{enter} t/me gets a crate.{enter}
To save an AHK script in the correct way is easy. Just click "save as" and give it a name such as this:
myscript.ahk
Type: "All Files"
It MUST have .ahk on the end of the name to work properly.
Avoid doing this: myscript.txt.ahk
Save and close.
Running and Using a Script
To use the commands it's simple. Double click your "myscript" file and you will see an AutoHotKey icon in your notification area. Enter SARP and press one of these key combinations to use a command:
Alt+y = Join and accept a new job.
Alt+u = Get weapons materials when on a point.
Alt+i = Enter a building
Alt+o = Exit a building
Alt+p = Get a drug crate when on the drug pont.
This guide is not quite done, but you know the basics now and you should be able to figure out how to make new commands and edit them just by looking the last part of the example script. Any questions are comments please reply.
Re: How to use Auto Hot Key
where doyou put that text file?
VictorVamos- Posts : 1
Join date : 2010-06-01
Re: How to use Auto Hot Key
You can put it anywhere. When you save it as a .ahk file, it automatically recognizes it. To run the script just double click on the file you made.VictorVamos wrote:where doyou put that text file?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum