PDA

View Full Version : [Guide] Legal and illegal AHK binds



Jack Francis
31st January 2011, 04:31 AM
[[ More will be written later when I can be bothered. If you want you can write in binds of your own below and I may add them in.
If you can think of an illegal bind feel free to post it below and I'll add that too. ]]

This guide will be kept simple and short. Binds that are legal will be lime, while illegal binds will be red. I will also include some useful binds that can help shorten the time spent with certain actions. All binds are merely a guide and you don't need to use them or can edit them as you wish.

List of contents:
1. Mechanic Binds
2. Arms Dealer Binds
3. Weapon Binds
4. Advertisement Binds
5. Description Binds
6. Faction Binds
7. Spam Binds
8. Miscellaneous Binds
9. Bodyguard Binds
10. Pickpocket Binds





Mechanic Binds
There are not many binds for the Mechanic job as it is a pretty basic job, mostly used for LEO's only.


KEY::
SendInput t/hyd{Enter}
Return
KEY::
SendInput t/refill{Space}
Return
KEY::
SendInput t/repair{Enter}
Return


KEY::
SendInput t/me opens the car hood.{Enter}
SendInput t/me checks on the engine for the cause of the issue.{Enter}
SendInput t/me locates some loose bolts and pulls out his spanner.{Enter}
Return





Arms Dealer
The Arms Dealer job has only 2 commands, however binds for it are the most useful as it saves time while running materials.


KEY::
SendInput t/getmats{Enter}
SendInput t/me reaches into the garbage and takes out some packages.{Enter}
Return
KEY::
SendInput t/sellgun{Space}
Binds to quickly level up by selling Colt45's to yourself are the most useful for leveling up.


KEY::
SendInput t/sellgun . colt45{left 6}
Return
Remove the . from the Hotkey, it's just a placeholder to allow both spaces to show on vBulletin.

Looping the bind so it will automatically sell you the gun every 10 seconds is illegal.





Weapon Binds
While roleplaying taking out a weapon or putting one away is not required on SARP, people will usually complain "gun out of ass" it can be useful to have a bind for it, just so they won't cry. You can have one for taking out a weapon, or have seperate ones for each gun or each gun type (small, large).


KEY::
SendInput t/me (un)holsters his firearm.{Enter}
Return
KEY::
SendInput t/me (un)straps his firearm.{Enter}
Return
KEY::
SendInput t/me withdraws/conceals his weapon.{Enter}
Return





Advertisement Binds
Since people like to spam their Advertisements constantly it can be hard to get your Advertisement in (especially while their is 100 people online). It is also good to setup different Advertisements for the same type of thing instead of just the same one. I will include my bind for F-Mart here.


F2::
Random, Mart, 1, 9
if (Mart = 1) {
SendInput t/ad F-Mart™ is open. Dumpcake® now for just $69,000{!} Located in Unity Station{Enter}
}
if (Mart = 2) {
SendInput t/ad F-Mart™ is open. Pissh® now for just $15,000{!} Located in Unity Station{Enter}
}
if (Mart = 3) {
SendInput t/ad F-Mart™ is open. Briquettes® now for just $50,000{!} Located in Unity Station{Enter}
}
if (Mart = 4) {
SendInput t/ad F-Mart™ is open. Fishy Finger® now for just $500{!} Located in Unity Station{Enter}
}
if (Mart = 5) {
SendInput t/ad F-Mart™ is open. Monkey Juice® now for just $30,000{!} Located in Unity Station{Enter}
}
if (Mart = 6) {
SendInput t/ad F-Mart™ is open. Slick-o-Grease® now for just $63,000{!} Located in Unity Station{Enter}
}
if (Mart = 7) {
SendInput t/ad F-Mart™ is open. Bitch'n'® now for just $2,800{!} Located in Unity Station{Enter}
}
if (Mart = 8) {
SendInput t/ad F-Mart™ is open. Rasberry Ripples® now for just $6,000{!} Located in Unity Station{Enter}
}
if (Mart = 9) {
SendInput t/ad F-Mart™ is open. Chocolate Chunks® now for just $2,000{!} Located in Unity Station{Enter}
}
Return





Description Binds
These are binds that you can use to add emotion or description to your RP so you don't have to type them. They can look nice, but overuse would be annoying.


KEY::
SendInput t/me taps his foot quickly.{Enter}
Return
KEY::
SendInput t/me puts his hands together and cracks his knuckles.{Enter} t/do Crack crack.{Enter}
Return
KEY::
SendInput t/me raises his hand to his head and scratches his forehead.{Enter}
Return





Faction Binds
These binds are used within factions to simplify actions so that they can do their job more effectively. Each faction will have it's own set of binds and I will not include them here.


KEY::
Sleep 3000
SendInput t/me takes out their ticketing book.{Enter}
Sleep 3000
SendInput t/me writes up a ticket.{Enter}
Sleep 3000
SendInput t/me rips out the ticket.{Enter}
SendInput t/ticket{Space}
Return





Spam Binds
Spam binds are not permitted here as they are just a massive pain in the ass. While a lot of people on WT7 have them (including me) you can get in trouble for it. Most people will have a bind for /o as well, but a proper spam bind will loop and have multiple messages sent every second. Any bind that has 4 or more lines is illegal as well, as it will spam the chat and distract from a proper situation, if you have a bind with more than 4 lines it should have Sleep on it so that it doesn't all appear at once (Use Send to type and Sleep 3000)





Miscellaneous Binds
These are binds that usually won't affect an RP situation at all, there are many kinds of binds that don't really fit under other sections. These are also binds that remap a key (press F1 and it will press LButton instead for example).


MButton::
IfWinNotActive, GTA:SA:MP, , Send {w up}
if Toggle = 0
Send {w up}
else
Send {w down}
Toggle := Toggle<1 ? 1 : 0
Return

~z & x::
SendInput t/enter{Enter}
Return

~x & c::
SendInput t/exit{Enter}
Return
; Press the two keys at the same time and the bind will activate. Will also activate if you press it within a small amount of time (about 1 second).





Bodyguard Binds
This job is very popular and most people will hang out at the Gym basically spam offering anybody they see, even if they have armour. You can use this bind to save you from having to type the /sellvest and 2000 and just their name or ID.


KEY::
SendInput t/sellvest . 2000{left 5}
Return
Remove the . in the bind, it's just a placeholder so the double spacing works on vBulletin.

A bind that will give them an offer and then, after a time, send another offer with a higher price.





Pickpocket Binds
This command, probably one of the most hated on SARP, is actually really good. The only issue with it is that people abuse it by being Non-RP, mostly using it on AFK / Alt-Tabbed people, or by just doing it without any RP involved.


; Just press the two buttons and the same time and it will go off.
; 7000 = 7 seconds, enough time to type their ID and for the menu to show.
; Increase the time if needed.

~1 & q::
SendInput t/pickpocket{Space}
Sleep 7000
SendInput {Enter}
Return
; Cash

~2 & q::
SendInput t/pickpocket{Space}
Sleep 7000
SendInput {down 1}
SendInput {Enter}
Return
; Crack

~3 & q::
SendInput t/pickpocket{Space}
Sleep 7000
SendInput {down 2}
SendInput {Enter}
Return
; Pot

~4 & q::
SendInput t/pickpocket{Space}
Sleep 7000
SendInput {down 3}
SendInput {Enter}
Return
; Materials

Basically any bind that will do the RP for you is bad news.


Written by Jack Francis.

Please note that I haven't tested all of the binds that I wrote up in this thread. I usually format my binds to make it organized, but these aren't.

Jack Francis
31st January 2011, 04:45 AM
Updates

3rd February 2011
- Added in 10. Pickpocket Binds.
- Added in 4 binds under Pickpocket.
- Reformatted all of the binds so they're organized.
- Removed or remade some binds.
- Put all binds inside [QUOTE][SIZE=1] BBCode and removed anything with [CODE].

2nd February 2011
- Added in 9. Bodyguard Binds.
- Added 1 bind under Bodyguard.

1st February 2011
- Added in a bind under Arms Dealer.

31st January 2011
- Thread created.
- Thread written and formatted.
- Created binds quickly and included several of my own binds (within [CODE] boxes).

Jack
31st January 2011, 06:08 AM
Nice guide

Melfer
31st January 2011, 08:58 AM
Nice guide.. Helpfu'

Salvatore
31st January 2011, 11:37 AM
Updates

31st January 2011
- Thread created.
- Thread written and formatted.
- Created binds quickly and included several of my own binds (within [CODE] boxes).

fucking nice guide Francis, but can yo teach me something?
if i want to create a /sellvest bind i will do it like this
F1::
SendInput t/sellvest [I WANT THE CURSOR HERE] 2000
but.. how can i place the cursor somewere, if i try it IG it just says: /sellvest 2000 [ WITH THE CURSOR HERE ]

how can i put it at the ''IWANTTHECURSORHERE'' place,
thanks !

Bert VanReeth
31st January 2011, 12:18 PM
Very helpfull, thank you for posting.

Jack Francis
31st January 2011, 12:47 PM
fucking nice guide Francis, but can yo teach me something?
if i want to create a /sellvest bind i will do it like this
F1::
SendInput t/sellvest [I WANT THE CURSOR HERE] 2000
but.. how can i place the cursor somewere, if i try it IG it just says: /sellvest 2000 [ WITH THE CURSOR HERE ]

how can i put it at the ''IWANTTHECURSORHERE'' place,
thanks !

Making it set your mouse there would be annoying and unnecessary. Try this out (tested)

KEY:: SendInput t/sellvest 2000{left 5}

(You need to add a space between the t and 2, vBulletin won't allow the 2nd space to show.)

Olivo_Wizzle
31st January 2011, 01:14 PM
Damned Usefull thanks Bro

Jay Brookside
31st January 2011, 02:05 PM
Nice man, god work.

Kevin Cardenas
31st January 2011, 09:16 PM
Making it set your mouse there would be annoying and unnecessary. Try this out (tested)

KEY:: SendInput t/sellvest 2000{left}{left}{left}{left}{left}

(You need to add a space between the t and 2, vBulletin won't allow the 2nd space to show.)

Even easier than that /sellvest 2000{left 5} (add two spaces)

Krayzie Bone
31st January 2011, 09:24 PM
Sexy guide ..

Mr.Banker
31st January 2011, 09:35 PM
guide Guide nice nice.

Chow.
3rd February 2011, 04:49 AM
Nice Guide

Sindre
3rd February 2011, 05:20 AM
Nice guide!

10/10

Travis Jenkins
3rd February 2011, 09:02 AM
Nicee Good job Francis

John Sargo
9th February 2011, 10:56 PM
lol I remember doing this

Numpad1::SendInput t/guard(now /sellvest) |two spaces| 2000{left}{left}{left}{left}{left}

I had that bind for AGESSSSSSSSSS

SaBer_Max
2nd April 2011, 02:07 AM
nice guide keep goin'

Laura Pianta
5th April 2011, 04:37 PM
Guys,
I have written a wrong code and now I can't run the program because of this wrong code. When I double-click it, it says that:
http://img23.resimup.net/di/R9GD.jpg
And when I press "OK", the program closes down. Can you help me?

Gal Lamovsek
6th April 2011, 08:14 AM
Laura, PM me whole bind of this and I will fix it for you. You might forgot 'Return', bind key, or something else.

PM me and I'll fix it.

David™
31st July 2011, 06:51 AM
Good Work.

Divad
29th October 2011, 07:02 AM
Nice guide.

Kev
18th November 2011, 08:56 AM
.Amazing,good job.Its helpful for the ones who are new to AHK (not me).

SliceNDice
30th October 2012, 03:51 AM
What is "{left}" for?

Cartorious.
30th October 2012, 03:54 AM
Very nice and helpfull guide , thank you,

Austin.
30th October 2012, 10:08 AM
ahk = confusing as fuck

Sinny
30th October 2012, 03:22 PM
ahk = confusing as fuck

Agreed

JohnO
30th October 2012, 04:34 PM
can you make a keybind that does mat running for you please thanks

Tom
31st October 2012, 09:40 AM
They are very helpful, Cheers

Joshy
31st October 2012, 09:41 AM
Nice, Sure to help out noobs

Ethan
31st October 2012, 10:01 AM
wawwwwwwww nice great cool amazing!

Ofir
31st October 2012, 02:08 PM
Thank you very much, Great guide!
I made a random bind for RP


F2::
Random, Mart, 1, 7
if (Mart = 1) {
SendInput t/me Coughs{Enter}
}
if (Mart = 2) {
SendInput t/me Reaches his head and Scratching it a bit{ENTER}
}
if (Mart = 3) {
SendInput t/me Reaches his hand to his balls,Scratching it a bit{ENTER}
}
if (Mart = 4) {
SendInput t/me Reaches his hand to his neck, Scratching it a bit{ENTER}
}
if (Mart = 5) {
SendInput t/me Reaches his hand to his ass, Scratching it a bit{ENTER}
}
if (Mart = 6) {
SendInput t/me Farts{ENTER}
}
if (Mart = 7) {
SendInput t/me Looks around{ENTER}
}
Return



Is someone have more ideas?

Chris_King
31st October 2012, 02:33 PM
:wotwot:nice & great!

Todd Stark
12th November 2012, 07:02 PM
Great guide.

Cameron
12th November 2012, 07:13 PM
Good guide, helpful to people new to AHK.

Mausi Homeland
15th November 2012, 07:41 AM
would be funny when you enters some ones computer which uses bind for sarp, then replace the weapon bind for > SendInput t/kill {enter}
Return <

gues that person would rage the fuck out

Todd Stark
15th November 2012, 08:38 AM
would be funny when you enters some ones computer which uses bind for sarp, then replace the weapon bind for > SendInput t/kill {enter}
Return <

gues that person would rage the fuck out
Haha, right.

Koji_Takamato
15th November 2012, 11:50 AM
Nice guide, i like it.

Hassan Ashas
4th January 2014, 01:36 PM
Thanks for this nice guide

Max
4th January 2014, 01:47 PM
Very helpfull

Cane Black
4th January 2014, 08:41 PM
lol, I bet over half the people who post here don't even knwo who Francis was! :P

Aquarius
4th January 2014, 08:44 PM
Cool guide.