Keybinds
[Creation/Usage]
________________________________________________________
Keybinders:
Keybinders are softwares that are used to make keybinds.
Keybind(s):
A keybind is a simple script that is used to shorten long sentences. These long sentences take much time to write. For example, in our case,
- /me extends her right arm, moves it towards her holster, grabs the gun and pulls it out - flicking the safety [OFF]
- /me extends her right arm, moves it towards her holster, grabs the gun and pulls it out - flicking the safety [OFF]
This sentence takes more than one minute to write. Suspects don't give even a single minute, so how can they give a minute. We are straight dead if we start to write this sentence. However, using a Keybinder, we can press a single button, for example I press HOME button, and this sentence is written automatically. Keybinds not only save time, they can also be used to give rest to our fingers.
Downloading:
You can use this keybinder to solve your problems.
Creation:
Creating an AutoHotKey script is as easy as playing SA-MP. You have to do following steps:
- Download AutoHotKey(Abbreviated as AHK).
- Install it.
- Right-Click the place where you want to create the AHK script.
- Press New AutoHotKey script.
- Right-Click the script after making and choose to edit it.
- Remove all text written in it.
- Copy and Paste this text given below.
- --------------------------------------------------------
- BUTTON::
Send TEXT{enter}
return - --------------------------------------------------------
- Replace "Button" with the button you want to press when you want the text to be written. For example, I want to use button Home, so I'll replace "BUTTON" with "Home".
- If you want the button to be "Ctrl+1", then you will have to add a " ^ " before the button. For example, ^1::
- Similarly, replace the TEXT with the text you want to be written. Like, If I want to unholster a gun, I will type:
" t/me extends her ................ " - Note that you will have to put a " t " before the text if you want to use it in SA-MP.
- After writing the text, put a {enter} to let the script automatically press Enter button.
- It is also noted that you will have to put a "return" at the last line of a script to prevent intermixing of scripts.
- If you want to write more than one lines by pressing a single button, just write the script between first line and return.
- If you want to put a SLEEP timer between two lines, put sleep [Time, milliseconds].
- Examples are given at the end. You are allowed to copy and paste them.
Examples:
BUTTON::
Send TEXT {enter}
return
In the following example, I have put a HIS representing You.
- Code:
Home::
Send t/me extends his right arm, moves it towards his shirt, pulls it up and grabs his 9mm - pulling it outwards. {enter}
return
For writing more than one lines.:
- Code:
Home::
Send tYou are not allowed to speak infront of the Police Officers and the Court.{enter}
Send tYou can only speak when you are given permission to speak.{enter}
Send t[Your Text]{enter}
return
Sleep 2000 means sleeping for 2 seconds.
For putting a sleep timer between two lines:
- Code:
Home::
Send tYou are not allowed to speak infront of the Police Officers and the Court.
Sleep 2000
Send tYou can only speak when you are given permission to speak.
Sleep 2000
Send t[Your Text] {enter}
return
At the end:
At the end, I would like to say that this tutorial might have helped you.