• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[Guide] How to Make Key Binds with Auto Hot Key.

Status
Not open for further replies.

Daoud

Bronze Member
Joined
Jan 15, 2010
Messages
443
Likes
0
IG Name
David Sogoba
#1
There is a list of Auto Hot Key Buttons on the Bottom.
Example
Numpad1::
NumpadEnd::
{
SetKeyDelay, -1
send t/me pulls out a gun from his bag.{ENTER}
}
return

First Left Click Some where and Move your Cursor to Highlight New. Then you will see AutoHotkey script. Click it.

Next You name the File what you want or leave it as it is.

Then Left click on the script and Scroll down to Edit script.

You will get this. This s where you will edit your script, add binds Etc.

Then left Click on it and Select run script or Compile it then run it.


Once you save them. To use the script Left click on it then click Run script. (only if you haven't compiled it yet.)

Example script
Code:
script Starts Here.
; SAMPLE HOTKEYS: Below are two sample hotkeys.  The first is Win+Z and it
; launches a web site in the default browser.  The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one).  To
; try out these hotkeys, run AutoHotkey again, which will load this file.

#z::Run [url=http://www.autohotkey.com]www.autohotkey.com[/url]

^!n::
IfWinExist Untitled - Notepad
   WinActivate
else
   Run Notepad
return


; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded.  So feel free to customize it to suit your needs.

; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks.  It also explains more about hotkeys.


Numpad1::
NumpadEnd::
{
SetKeyDelay, -1
send {ENTER}
}
return


Numpad2::
NumpadDown::
{
SetKeyDelay, -1
send {ENTER}
}
return


Numpad3::
NumpadPgDn::
{
SetKeyDelay, -1
send {ENTER}
}
return

Numpad4::
NumpadLeft::
{
SetKeyDelay, -1
send {ENTER}
}
return



Numpad5::
NumpadClear::
{
SetKeyDelay, -1
send {ENTER}
}
return

Numpad6::
NumpadRight::
{
SetKeyDelay, -1
send {ENTER}
}
return



Numpad7::
NumpadHome::
{
SetKeyDelay, -1
send {ENTER}
}
return

Numpad8::
NumpadUp::
{
SetKeyDelay, -1
send ENTER}
}
return

Numpad9::
NumpadPgUp::
{
SetKeyDelay, -1
send {ENTER}
}
return

Numpad0::
NumpadIns::
{
SetKeyDelay, -1
send ENTER}
}
return


NumpadEnter::
{
SetKeyDelay, -1
send {ENTER}


}
return

NumpadDot::
NumpadDel::
{
SetKeyDelay, -1
send t{ENTER}
}
return
Heres a list of hotkey Buttons that you can use to make the bind. Theres more then Sa-mp Key Binder


Mouse (mouse hotkeys require Windows NT/2000/XP or later)
LButton - the left mouse button
RButton - the right mouse button
MButton - the middle or wheel mouse button

WheelDown - this is equivalent to rotating the mouse wheel down (toward you)
WheelUp - the opposite of the above
WheelLeft and WheelRight [v1.0.48+] - these two require a mouse with left/right scrolling capability, but they have no effect on operating systems older than Windows Vista.
(See mouse wheel hotkeys to detect how far the wheel has been turned.)

Supported only in Windows 2000/XP or later:
XButton1 - a button that appears only on certain mice
XButton2 - a button that appears only on certain mice

Keyboard
Note: The names of the letter and number keys are the same as that single letter or digit. For example: b is the "b" key and 5 is the "5" key.

Space - the spacebar
Tab
Enter (or Return)
Escape (or Esc)
Backspace (or BS)

Delete (or Del)
Insert (or Ins)
Home
End
PgUp
PgDn
Up
Down
Left
Right

ScrollLock
CapsLock
NumLock

Numlock ON Numlock OFF
Numpad0 NumpadIns
Numpad1 NumpadEnd
Numpad2 NumpadDown
Numpad3 NumpadPgDn
Numpad4 NumpadLeft
Numpad5 NumpadClear
Numpad6 NumpadRight
Numpad7 NumpadHome
Numpad8 NumpadUp
Numpad9 NumpadPgUp
NumpadDot (.) NumpadDel
NumpadDiv (/) NumpadDiv (/)
NumpadMult (*) NumpadMult (*)
NumpadAdd (+) NumpadAdd (+)
NumpadSub (-) NumpadSub (-)
NumpadEnter NumpadEnter


F1 through F24 - The 12 or more function keys at the top of most keyboards.

AppsKey - this is the key that invokes the right-click context menu.

LWin - the left Windows logo key
RWin - the right Windows logo key. Note: unlike Control/Alt/Shift, there is no generic/neutral "Win" key because the OS does not support it.
Control (or Ctrl)
Alt
Shift
Note: The hotkeys Shift::, Alt::, and Control:: fire upon release of the key unless they have the tilde prefix such as ~Alt::. By contrast, a specific left or right hotkey such as LAlt:: fires when it is pressed down.

Note: For the most part, these next 6 keys are not supported by Windows 95/98/Me. Use the above instead:
LControl (or LCtrl) - the left control key
RControl (or RCtrl) - the right control key
LShift - the left shift key
RShift - the right shift key
LAlt - the left Alt key
RAlt - Note: If your keyboard layout has AltGr instead of RAlt, you can probably use it as a hotkey prefix via <^>! as described here. In addition, "LControl & RAlt::" would make AltGr itself into a hotkey.

PrintScreen
 

2Fabulous

Retired Admin
Joined
Jan 30, 2010
Messages
6,634
Likes
308
IG Name
Edmond Bazarro
#4
Aleksei said:
Charcer said:
... Or instead you could just use this.

ChaosAD Keybinder 2.2
Does it work outside GTA SA? No, I thought so. AHK win.
ChaosAD Keybinder is forr GTA use only,while AHK is for general use.I'm using Chaos,because it's more simple,and still you can add multiple actions in 1 line-like you can do in AHK.
 
Joined
Mar 6, 2010
Messages
1,078
Likes
0
IG Faction
Civilian
#5
Geronimo said:
Aleksei said:
Charcer said:
... Or instead you could just use this.

ChaosAD Keybinder 2.2
Does it work outside GTA SA? No, I thought so. AHK win.
ChaosAD Keybinder is forr GTA use only,while AHK is for general use.I'm using Chaos,because it's more simple,and still you can add multiple actions in 1 line-like you can do in AHK.
SAMP keybinds can have multiple lines aswell.
 
Joined
Sep 2, 2010
Messages
2,321
Likes
10
IG Name
Tony Mendez
IG Faction
La Onda
#7
More easy with the program.But i guess is more complex the way you do it.Good job anyway!
 
Status
Not open for further replies.