Vinewood Entertainment Company
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to use Auto Hot Key

2 posters

Go down

How to use Auto Hot Key Empty How to use Auto Hot Key

Post  Frank Wed May 26, 2010 7:21 pm

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.


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.
Frank
Frank
Admin

Posts : 11
Join date : 2010-05-26
Location : Illinois, USA

https://www.youtube.com/offtrackproductions

Back to top Go down

How to use Auto Hot Key Empty Re: How to use Auto Hot Key

Post  VictorVamos Wed Jun 02, 2010 2:02 pm

where doyou put that text file?

VictorVamos

Posts : 1
Join date : 2010-06-01

Back to top Go down

How to use Auto Hot Key Empty Re: How to use Auto Hot Key

Post  Frank Wed Jun 02, 2010 3:34 pm

VictorVamos wrote:where doyou put that text file?
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.
Frank
Frank
Admin

Posts : 11
Join date : 2010-05-26
Location : Illinois, USA

https://www.youtube.com/offtrackproductions

Back to top Go down

How to use Auto Hot Key Empty Re: How to use Auto Hot Key

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum