Author Topic: [TUT]How to make binds  (Read 4237 times)

0 Members and 1 Guest are viewing this topic.

JamesT85

  • Management
  • Member
  • ******
  • Posts: 1276
  • Happy Days
[TUT]How to make binds
« on: May 05, 2014, 10:06:26 PM »
Ok so to make binds you’re going to need to download a program called "Auto hot key"
https://ahkscript.org/download/
Once you have downloaded and installed the program go to desktop and right click any were and go to new auto hot key script. Should look a bit like this:

Now you have done that rename the document to what you want. In my case example:

Ok now we are ready to start. Next Right click the document then go down to edit.

When you open the document there will be a load of text this is not needed and so select it and press delete.

Next copy the text I have put bellow:
#IfWinActive, GTA:SA:MP
This will mean the binds will only work when playing samp.
Next we want to add a bind and so it’s very simple. Just type the key you want
e.g. Numpad0::
Then you need to tell it what to do and so we right some thing like:
SendInput t/[COMAND HERE] {enter}
This can be dune multiple times such as this from my own binds
SendInput t/drop{enter}
SendInput t/hidename{enter}
SendInput t/hidemap{enter}
Then to finish the code/bind just put a the bottom return.
This is so it knows when to stop.
Also if you don’t have numpad then you can do what I have for some of my keys
“!” which stands for alt  then a letter or number e.g. !r::



Well if you still don’t understand then here is my template just add the commands.
#IfWinActive, GTA:SA:MP

!t::
SendInput t/drop{enter}
SendInput t/hidename{enter}
SendInput t/hidemap{enter}
return

!1::
SendInput t/vipsettime 12 00 {enter}
return

!h::
SendInput t/hidemap {enter}
SendInput t/hidename {enter}
return

Numpad7::
SendInput t/[Command here]
Return

Should end up like this if you did it right

Remember if you want it to press enter at the end of the command put {enter} if you don't it will just type it in chat.

Hope you learnt some thing new by reading this.
Signed J Porker  :)
« Last Edit: May 06, 2014, 11:34:48 AM by Dimitri »
Carona virus
I will be IG all the time jk.
https;//www.youtube.com/jamest85gaming99

Kamikaze

  • Peacekeeper
  • Member
  • **
  • Posts: 334
  • Guess I won't becoming to church on sunday...
Re: How to make binds
« Reply #1 on: May 06, 2014, 12:20:56 AM »
thanks man <3
Busy with life stuff

Pirate

  • Donator
  • Member
  • *
  • Posts: 1580
Re: How to make binds
« Reply #2 on: May 06, 2014, 12:59:50 AM »
hmm
the question this allow ?
this gives excessive force.

Gravity

  • Member
  • *
  • Posts: 984
  • GODLIKE
Re: How to make binds
« Reply #3 on: May 06, 2014, 01:32:17 AM »
Ok so to make binds you’re going to need to download a program called "Auto hot key"
https://ahkscript.org/download/
Once you have downloaded and installed the program go to desktop and right click any were and go to new auto hot key script. Should look a bit like this:

Now you have done that rename the document to what you want. In my case example:

Ok now we are ready to start. Next Right click the document then go down to edit.

When you open the document there will be a load of text this is not needed and so select it and press delete.

Next copy the text I have put bellow:
#IfWinActive, GTA:SA:MP
This will mean the binds will only work when playing samp.
Next we want to add a bind and so it’s very simple. Just type the key you want
e.g. Numpad0::
Then you need to tell it what to do and so we right some thing like:
SendInput t/[COMAND HERE] {enter}
This can be dune multiple times such as this from my own binds
SendInput t/drop{enter}
SendInput t/hidename{enter}
SendInput t/hidemap{enter}
Then to finish the code/bind just put a the bottom return.
This is so it knows when to stop.
Also if you don’t have numpad then you can do what I have for some of my keys
“!” which stands for alt  then a letter or number e.g. !r::



Well if you still don’t understand then here is my template just add the commands.
#IfWinActive, GTA:SA:MP

!t::
SendInput t/drop{enter}
SendInput t/hidename{enter}
SendInput t/hidemap{enter}
return

!1::
SendInput t/vipsettime 12 00 {enter}
return

!h::
SendInput t/hidemap {enter}
SendInput t/hidename {enter}
return

Numpad7::
SendInput t/[Command here]
Return

Should end up like this if you did it right

Remember if you want it to press enter at the end of the command put {enter} if you don't it will just type it in chat.

Hope you learnt some thing new by reading this.
Signed J Porker  :)

Seriously dude... SERIOUSLY.

Why you trying to look that making binds is so hard? you don't need to do all that scripting!

Google up SA-MP keybinder, download it, write your binds and set up bind's buttons and boom. finished.
« Last Edit: May 06, 2014, 01:35:51 AM by Chaos »

Jaguar

  • Member
  • *
  • Posts: 523
Re: How to make binds
« Reply #4 on: May 06, 2014, 04:00:27 AM »
Chaos is right,
there are many scripted keybinders in google especially for sa-mp. Authotkey is a little difficult, but it is helpful in other games.
RIP Aziz Shavershian

JamesT85

  • Management
  • Member
  • ******
  • Posts: 1276
  • Happy Days
Re: How to make binds
« Reply #5 on: May 06, 2014, 07:38:16 AM »

Seriously dude... SERIOUSLY.

Why you trying to look that making binds is so hard? you don't need to do all that scripting!

Google up SA-MP keybinder, download it, write your binds and set up bind's buttons and boom. finished.

I read this on my phone this morning as i got out of bed. Anyhow that's not the point I have and did Google samp key binder and yes its a lot more simple how ever you are unable to do the things i can do. Such as one button dose lots of things. Also there was no sleep command so you cant have it so on the push of a button it dose the command then it waits two seconds then it dose the next one. And finally there is no option to hold down a button. I did not show these in the tutorial as it would be too long.
Carona virus
I will be IG all the time jk.
https;//www.youtube.com/jamest85gaming99

Nature42O

  • Donator
  • Member
  • *
  • Posts: 1058
  • Retired Management
Re: How to make binds
« Reply #6 on: May 06, 2014, 08:00:52 AM »
Nice work - but I use Chaos AD keybinder.
Former Senior Administrator | [AVT] Management | Head of [AVT] Tags & Members

Dimitri

  • Server Administrator
  • Member
  • ****
  • Posts: 5584
Re: How to make binds
« Reply #7 on: May 06, 2014, 11:35:03 AM »
Nice work - but I use Chaos AD keybinder.

Same here

Gravity

  • Member
  • *
  • Posts: 984
  • GODLIKE
Re: How to make binds
« Reply #8 on: May 06, 2014, 08:25:20 PM »

Seriously dude... SERIOUSLY.

Why you trying to look that making binds is so hard? you don't need to do all that scripting!

Google up SA-MP keybinder, download it, write your binds and set up bind's buttons and boom. finished.

I read this on my phone this morning as i got out of bed. Anyhow that's not the point I have and did Google samp key binder and yes its a lot more simple how ever you are unable to do the things i can do. Such as one button dose lots of things. Also there was no sleep command so you cant have it so on the push of a button it dose the command then it waits two seconds then it dose the next one. And finally there is no option to hold down a button. I did not show these in the tutorial as it would be too long.
And what if I tell you can do even 10 commands or more in a keybinder and also it waits two seconds only if you using this for roleplaying because people often use it to write /me's and /do's which doens't really short, so it takes a second or two to write it but for simple commands? it's fast as hell.

The other things is useless really.

Jasper

  • Donator
  • Member
  • *
  • Posts: 246
Re: [TUT]How to make binds
« Reply #9 on: July 16, 2014, 11:05:39 AM »
Thanks for the tutorial, I love the fact that you can use 3 commands with just 1 key!

My script:

Code: [Select]
#IfWinActive, GTA:SA:MP

!1::
SendInput t/hdm {enter}
SendInput t/hdn {enter}
SendInput t/vipsettime 12 00 {enter}
return

!2::
SendInput t/unhidemap {enter}
SendInput t/showname {enter}
return

!8::
SendInput t/nitro {enter}
return

!9::
SendInput t/lock {enter}
return

!0::
SendInput t/unlock {enter}
return

Numpad9::
SendInput t/medkit {enter}
return

Numpad7::
SendInput t/vipshop {enter}
return

!Numpad8::
SendInput t/givekeys
return

JamesT85

  • Management
  • Member
  • ******
  • Posts: 1276
  • Happy Days
Re: [TUT]How to make binds
« Reply #10 on: August 01, 2014, 06:30:41 PM »
Thanks for the tutorial, I love the fact that you can use 3 commands with just 1 key!

My script:

Code: [Select]
#IfWinActive, GTA:SA:MP

!1::
SendInput t/hdm {enter}
SendInput t/hdn {enter}
SendInput t/vipsettime 12 00 {enter}
return

!2::
SendInput t/unhidemap {enter}
SendInput t/showname {enter}
return

!8::
SendInput t/nitro {enter}
return

!9::
SendInput t/lock {enter}
return

!0::
SendInput t/unlock {enter}
return

Numpad9::
SendInput t/medkit {enter}
return

Numpad7::
SendInput t/vipshop {enter}
return

!Numpad8::
SendInput t/givekeys
return

Nice of you to shear your binds, I tend to use less and also different buttons. I'm glad you understand the point of auto hotkey after all. Its basic scripting, However if you do not like how its so complex then I would recommend a key binder the only down side is that you are restricted to one command per button, Were as with auto Hotkey you are not.

Here is mine.
Code: [Select]
#IfWinActive, GTA:SA:MP

NumPad0::
SendInput t/stopani {Enter}
SendInput t/w Don't Car ram {enter}
return

~r & space::
setkeydelay, 60
loop
{
send {space down}{space up}
if getkeystate("lshift","p")
send {shift down}{shift up}
if !getkeystate("r","p")
break
}
return

Numpad1::
SendInput t/w Gates have been opened they will close in 4 seconds {enter}
SendInput t/aso{enter}
Sleep 4000
SendInput t/asc{enter}
SendInput t/w Gates Are closing {enter}
Return

!t::
SendInput t/drop{enter}
SendInput t/hidename{enter}
SendInput t/hidemap{enter}
return

!r::
SendInput t/sc
return

!1::
SendInput t/vipsettime 12 00 {enter}
return

!h::
SendInput t/hidemap {enter}
SendInput t/hidename {enter}
return

Numpad7::
SendInput t/report
Return

!l::
SendInput t/bush {enter}
sleep 250
SendInput t/bushoff {enter}
sleep 250
SendInput t/cactus {enter}
sleep 250
SendInput t/cactusoff {enter}
sleep 250
Sendinput t/cactus2 {enter}
sleep 250
SendInput t/cactusoff {enter}
sleep 250
SendInput t/bush {enter}
sleep 250
SendInput t/bushoff {enter}
sleep 250
SendInput t/cactus {enter}
sleep 250
SendInput t/cactusoff {enter}
sleep 250
Sendinput t/cactus2 {enter}
sleep 250
SendInput t/cactusoff {enter}
sleep 250
return

!f::
SendInput t/ac
return

!m::
SendInput t/medkit {enter}
return

!p::
SendInput t/w Army Vs Terrorist police pull over! {enter}
return

!2::
SendInput t/w
return
Carona virus
I will be IG all the time jk.
https;//www.youtube.com/jamest85gaming99

Archer

  • Management
  • Member
  • ******
  • Posts: 2110
Re: [TUT]How to make binds
« Reply #11 on: August 01, 2014, 08:35:59 PM »
So nice!

 

SimplePortal 2.3.7 © 2008-2020, SimplePortal