Keybinds [Creation/Usage]

Share
avatar
Amanda Roselin
Newbie
Newbie

Posts : 4
Join date : 2015-07-23
Age : 20

Keybinds [Creation/Usage]

Post by Amanda Roselin on Sun Aug 16, 2015 12:18 am

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]


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:

  1. Download AutoHotKey(Abbreviated as AHK).
  2. Install it.
  3. Right-Click the place where you want to create the AHK script.
  4. Press New AutoHotKey script.
  5. Right-Click the script after making and choose to edit it.
  6. Remove all text written in it.
  7. Copy and Paste this text given below.
  8. --------------------------------------------------------
  9. BUTTON::
    Send TEXT{enter}
    return

  10. --------------------------------------------------------
  11. 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".
  12. If you want the button to be "Ctrl+1", then you will have to add a " ^ " before the button. For example, ^1::
  13. 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 ................ "

  14. Note that you will have to put a " t " before the text if you want to use it in SA-MP.
  15. After writing the text, put a {enter} to let the script automatically press Enter button.
  16. It is also noted that you will have to put a "return" at the last line of a script to prevent intermixing of scripts.
  17. If you want to write more than one lines by pressing a single button, just write the script between first line and return.
  18. If you want to put a SLEEP timer between two lines, put sleep [Time, milliseconds].
  19. 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. 
avatar
Miraculous
Young Blood
Young Blood

Posts : 91
Join date : 2015-08-13
Age : 17

Re: Keybinds [Creation/Usage]

Post by Miraculous on Sun Aug 16, 2015 3:39 am

Omg. I really needed this. Can you send me some.binds that you have got for me to use? I don't know what to bind and currently I've only got /m binds.


_________________
Police Officer III Daniel Silver
Part of the LSPD Recruitment Division
Helper R2/General Helper
avatar
Ticks
Newbie
Newbie

Posts : 31
Join date : 2015-07-28
Location : Highway To Hell!

Re: Keybinds [Creation/Usage]

Post by Ticks on Sun Aug 16, 2015 6:20 am

I needed that, my current keybinder is suck and buggy lol.

Matheson
Newbie
Newbie

Posts : 22
Join date : 2015-08-04

Re: Keybinds [Creation/Usage]

Post by Matheson on Sun Aug 16, 2015 9:48 am

I'd suggest some edits:

1) Include more info on other button combinations. For example, instead of ctrl + button, I typically use alt + button. i.g: !G::

2) Change Send to SendInput. To my knowledge, I was previously instructed and learned that Send is less reliable, especially in a game like SA-MP. Since with keybinds you want reliability, you'd want to switch it to SendInput. I also believe this prevents people from typing something during the bind, as it prevents keys being pressed during it. This is especially useful when driving and pressing a button, for example, as the accelerating key (w) will not show up in the keybind accidentally.

Anyways, lovely guide, I probably would of done something similar if I remembered to make a guide on this. Excellent.

EDIT: Here's an example of my current keybind if you want to see anything:

Code:

!NumPad5::
SendInput t/me motions his hand towards his back, reaching underneath his shirt while gripping his Desert...{Enter}
SendInput t/do ...- Eagle. He shifts the safety off.{Enter}
Return

!NumPad6::
SendInput t/me turns the safety of his Desert Eagle on, sliding it back into his pants before covering it...{Enter}
SendInput t/do ...- with his shirt.{Enter}
Return

I use Numpad because I bound my Razer Naga side-buttons to Alt and Numpad, so I can't accidentally press them when holding alt and pressing a key.

You might want to include a side-note as-well, stating that some people might need to run the program as administrator. For some odd reason, it doesn't work for me in SA-MP unless I run it in administrator.

Damage
Newbie
Newbie

Posts : 12
Join date : 2015-08-05

Re: Keybinds [Creation/Usage]

Post by Damage on Sun Aug 16, 2015 5:07 pm

Useless.

Just download SAMP Ultimate Keybinder, or Chaos Keybinder if it is too much work for yall to set it up.
avatar
Leblanc
$30 Donator
$30 Donator

Posts : 40
Join date : 2015-07-29

Re: Keybinds [Creation/Usage]

Post by Leblanc on Mon Aug 17, 2015 7:00 pm

Damage wrote:Useless.

Just download SAMP Ultimate Keybinder, or Chaos Keybinder if it is too much work for yall to set it up.
Ultimate SAMP Keybinder is great.

Nice effort on the guide mate.
avatar
Miraculous
Young Blood
Young Blood

Posts : 91
Join date : 2015-08-13
Age : 17

Re: Keybinds [Creation/Usage]

Post by Miraculous on Tue Aug 18, 2015 4:36 pm

These are my current/new binds that I created. Not sure if they are okay but feel free to use them.

Code:
NumPad0::
     Send, t/me grabs hold of the Megaphone, speaking through it.{enter}
     Send, t/m This is the LSPD. Pull over to the side of the road.{enter}
Return
      

NumPad1::
     Send, t/me grabs hold of the Megaphone, speaking through it.{enter}
     Send, t/m Pull over to the side of the road and turn your engine off.{enter}
Return


NumPad2::
     Send, t/me grabs hold of the Megaphone, speaking through it.{enter}
     Send, t/m Pull over to the right side of the road immediately.{enter}
Return


NumPad3::
     Send, t/me grabs hold of the Megaphone, speaking through it.{enter}
     send, t/m This is the LSPD. Pull over to the side with your engine off.{enter}
Return

NumPad4::
     Send, t/me pulls his Desert Eagle from his Holster, gripping it tightly... {enter}
     Send, t/me ...while flicking the safety OFF. {enter}
Return


NumPad5::
     send, t/me loosens his grip on the Desert Eagle, flicking the safety ON... {enter}
     Send, t/me ...and sliding it back into his Holster. {enter}
Return


NumPad6::
     Send, t/me grabs hold of the Megaphone, speaking through it.{enter}
     Send, t/m This is the LSPD. Make way immediately.{enter}
Return


NumPad7::
     Send, t/me grabs hold of the Megaphone, speaking through it.{enter}
     Send t/m Emergency. Make way please.{enter}
Return


NumPad8::
     Send, t/me grabs his radio off of his Utility Belt, lifting it to his...{enter}
     Send, t/me ...mouth, pressing the 'TALK' button and speaking into it.{enter}
     Send, t/r Officer Silver, requesting backup immediatley{enter}
     Send, t/requestbackup{enter}
     Send, t/me let's go of the 'TALK' button, lowering the radio down to...{enter}
     Send, t/me ...his waist, clipping it back onto his Utility Belt.{enter}
Return


_________________
Police Officer III Daniel Silver
Part of the LSPD Recruitment Division
Helper R2/General Helper

Sponsored content

Re: Keybinds [Creation/Usage]

Post by Sponsored content


    Current date/time is Mon Dec 10, 2018 10:09 pm