Re: [Guide] Key Binder - How to
Posted: May 17th, 2015, 7:41 pm
What's wrong with using a keybinder meant specifically for samp?
Home of the Italy Mafia Roleplay Community
https://forum.sa-mp.im/
Actually, no.Vic wrote:If you've got the latest AutoHotKey 1.1 installed the "SendInput" has been replaced by "Send, ..."
For example:
Numpad0::
Send, t/engine
Return
Suppose if you have multiple commands under one key and you need some time for each command to be typed, you can use Sleep command.
Syntax:Sleep, (Milliseconds)So, here, first /me Attempts to frisk the person will be typed and two seconds later /do Would you by any chance resist me? will be typed.
- Example:
For that, use the Sleep command in the following manner:
- If you're going to frisk someone, first you'll type:
/me attempts to frisk the person
And after two seconds you want the following to be typed:
/do would you resist by any chance?
- Numpad5::
SendInput t/me Attempts to frisk the person{Enter}
Sleep, 2000
SendInput t/do Would you by any chance resist me?
return,
In the above example, Sleep 2000 means there will be 2 second delay.
If you want the delay to be 5 seconds, type Sleep 5000
Well, you get the idea now.
You can use Send instead of SendInput in new version 1.1
The difference will be:
If you use Send, the text will be typed manually with some delay.
If you use SendInput, the text will be typed instantly.