The Best Generation Roleplay
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Check for our page at Facebook - The Best Generation Rolelay
 
HomeLatest imagesSearchRegisterLog in

 

 AutoHotkey Binds

Go down 
2 posters
AuthorMessage
Adrian
Excecutive Admin
Excecutive Admin
Adrian


Posts : 37
Join date : 2012-01-28
Age : 26
Location : Macedonia

AutoHotkey Binds Empty
PostSubject: If you need help...   AutoHotkey Binds Icon_minitimeThu Feb 02, 2012 1:35 am

Hey Swagger, if you need any help about this, post about it ......

AutoHotkey Binds Mine13
Back to top Go down
https://bg-gaming.darkbb.com
Swagger

Swagger


Posts : 1
Join date : 2012-02-01
Location : Denmark

AutoHotkey Binds Empty
PostSubject: Re: AutoHotkey Binds   AutoHotkey Binds Icon_minitimeWed Feb 01, 2012 5:03 am

...
Back to top Go down
Adrian
Excecutive Admin
Excecutive Admin
Adrian


Posts : 37
Join date : 2012-01-28
Age : 26
Location : Macedonia

AutoHotkey Binds Empty
PostSubject: AutoHotkey Binds   AutoHotkey Binds Icon_minitimeSun Jan 29, 2012 11:55 am

Before starting i want to tell you the this guide tells how to use AutoHotkey for SAMP, AHK can be used for other stuff except for SAMP.



1.1 Introduction.
1.2 Where to get AutoHotkey?
1.3 Important commands/things in AutoHotkey.
1.4 How to make a Autohotkey script?
1.5 Some scripts i have made.

1.1 Introduction.





AutoHotkey scripts can be used to launch programs, open documents, send keystrokes and send mouse clicks and movements.[2] AutoHotkey scripts can also assign, retrieve, and manipulate variables, run loops and manipulate windows, files, and folders. These commands can be triggered by a hotkey, such as a script that would open an internet browser whenever the user presses Ctrl+Alt+i on the keyboard. Keyboard keys can also be remapped or disabled, such that pressing the letter q, for example, might result in the computer receiving a letter r, or nothing at all.[3] AutoHotkey also allows for 'hotstrings' that will automatically replace certain text as it is typed; the most typical use for hotstrings is expanding abbreviations, such as assigning the string "btw" to send the text "by the way" when typed.[4]
More complex tasks can be achieved with custom data entry forms (GUI windows), working with the system registry, or using a window's own API by manipulating certain DLLs. The scripts can be compiled into an executable file that can be run on other computers that do not have AutoHotkey installed. The source code is in C++ and can be compiled with Visual Studio Express.

1.2 Where to get AutoHotkey?


http://www.autohotkey.net/~Lexikos/A..._L_Install.exe

1.3 Important commands/things in AutoHotKey.



Well there are many important commands/things in AHK, but these are the most important ones! and these are “ { “ and “ } ”.

Why are they important?
Because you need them to make an autohotkey script + you really need them to input signs like "!", "@"...etc What kind of commands can theses make?

Quote:
{ENTER}= It hits enter for you.
{Space}= it press SPACE button after the txt, ex /signcheck{Space}.
{?}= You may need it for some chat things or /advertise.
{!}= You may need it for some chat things or /advertise.
{@}= You may need it for some chat things or /advertise.
{+}= Same.
{=}= Same.
{-}= Same.
{`}= Same.
{~}= Same.
…etc


What other commands are there?
Well there is also “SendInput” and “Sleep 1000” the “1000” is the time you want it to stop and precede with the other txt, also I think it is on mili sec.

1.4 How to make a autohotkey script?


You just need to follows these easy steps, make sure you follow them step by step!

Step #1:
First you need the “::” ex (take what key you need to be the shortkey/hotkey)

Numpad0::
Numpad1::
Numpad2::
Numpad3::
Numpad4::
Numpad5::
Numpad6::
Numpad7::
Numpad8::
Numpad9::
NumpadEnter::
NumpadDot::
NumpadAdd::
F1::
F2::
F3::
F4::
F5::
F6::
F7::
F8::
F9::
F10::
F11::
F12::
Insert::
Home::
Pageup:: (You can do this but it will disable the Pageup key's function, which is it makes the chatbox go up.)
Delete::
End::
Pagedown:: (You can do this but it will disable the Pagedown key's function, which is it makes the chatbox go down.)

these that you see above ^ are the ones that i know for Autohotkey for SAMP.
What do i do if i want the hotkeys to be numbers, but my computer is Laptop..it dose not have NumPad!?
Well who said Autohotkey does not work in Laptops? Haha...there are also cmds! Okay you know how to type number with those keyboards with out Numpad right? Yes you are correct it is the Numeric pad, which is found above the typing pad!, then that is what you use in Laptop.
Really thanks, but HOW?

0::
1::
2::
3::
4::
5::
6::
7::
8::
9::
Also you can use function keys, if you got them.
F1::
F2::
F3::
F4::
F5::
F6::
F7::
F8::
F9::
F10::
F11::
F12::
Insert::
Home::
Pageup:: (You can do this but it will disable the Pageup key's function, which is it makes the chatbox go up.)
Delete::
End::
Pagedown:: (You can do this but it will disable the Pagedown key's function, which is it makes the chatbox go down.)

Well these are the ones i know for Laptops. Now follow the steps below.(even if you got a Laptop computer!)


Step #2:
After that you need the Command “SendInput”
Numpad2::
SendInput



Step #3:
Then you type what kind of text you want, for example

Numpad2::
SendInput t/me Takes off his Eye-Glasses, Swipes some dirt and Puts it back in.



Step #4:
After that you need the Commands, for example I will take the {Enter}

umpad2::
SendInput t/me Takes off his Eye-Glasses, Swipes some dirt and Puts it back in.{Enter}



Step #5:

And finally you need “return”, what this helps is it stops the command at a certain point, if you don’t put the “return” there will be problem, that is if you have many autohotkey lets say Numpad1 & Numpad2...then if you don't put return at the end of Numpad1 then it will not stop, it will activate the autohotkey of Numpad2!(if you don't get it, just try it )

Numpad2::
SendInput t/me Takes off his Eye-Glasses, Swipes some dirt and Puts it back in.{Enter}
Return


Step #6:

So you just got a full command now.

Numpad2::
SendInput t/me Takes off his Eye-Glasses,Swipes some dirt and Puts it back in.{Enter}
Return



Additional Step:

And if you want a command a long command, for example to take out your gun...

Numpad1::
SendInput t/do Have a Holster attached to his Belt{ENTER}
Sleep 100
SendInput t/me Lifts his Shirt and UnHolsters a Weapon from His Holster{ENTER}
Sleep 100
SendInput t/do Holding a Weapon.{ENTER}
SendInput t/bomb{Enter}
Return


f you have notice i have use "Sleep 100", it does not mean you can't make long text with out "Sleep [Number]", what this "Sleep [Number]" simply does it that it takes a rest and proceed to the other one. plus you can adjust how much time it should rest by just changing the number. like...

Sleep 5000
Sleep 1
Sleep 100000000
...etc



1.5 Some scripts i have made.


LSPD Binds
I knew that you will ask this question, ok just delete the "Numpad" on the script...Example


NUMPAD0::
SendInput t/You have the right to remain silent.{Enter}
Sleep 100
SendInput t/Anything you do or say can and will be used against you in the court of law.{Enter}
Sleep 100
SendInput t/You have the right to an attorney after initial processing has been completed.{Enter}
Sleep 100
SendInput t/Do you understand these rights as I have said them?{Enter}
return

NumPad1::
SendInput t/L.S.P.D Freeze{!}, Put you hands up where i can see them, NOW{!}((/handsup)) {Enter}
Sleep 500
SendInput t/If you do not comply I will be forced to use Force. {Enter}
Return

NUMPAD2::
SendInput t/me withdraws a pair of latex gloves from his pocket and slaps them on. {Enter}
Sleep 300
SendInput t/me quickly lubricates the gloves with saliva. {Enter}
Sleep 300
SendInput t/me proceeds to pat the suspect up and down. {Enter}
Sleep 300
SendInput t/me looks for any illegal items as he pats them down. {Enter}
Sleep 300
SendInput t/do S/F{?}, If "F" than tell a reason.{Enter}
Sleep 300
SendInput t/frisk
Return

NUMPAD3::
SendInput t/me withdraws his red ticket book and flicks it open. {Enter}
Sleep 1000
SendInput t/me uses his pen and scribbles down some words. {Enter}
Sleep 1000
SendInput t/me rips it off and hands it to the person. {Enter}
Sleep 1000
SendInput t/ticket
Return


NUMPAD5::
SendInput t/me grabs the suspect by his cuffs. {Enter}
Sleep 1000
SendInput t/me lifts the suspect up, then moves him to the door of the vehicle. {Enter}
Sleep 1000
SendInput t/do Suspect is moved to the side doors of the vehicle. {Enter}
Sleep 1000
SendInput t/me opens the vehicle door, shoves the suspect into the vehicle, then closes the door. {Enter}
Sleep 1000
SendInput t/do Suspect is detained. {Enter}
Sleep 1000
SendInput t/detain
Return

NUMPAD6::
SendInput t/m This is the Los Santos Police Department (L.S.P.D.). {Enter}
Sleep 100
SendInput t/m I order you to stop the vehicle immediately. {Enter}
Return

NUMPAD7::
SendInput t/m Deadly force is authorized to disable your vehicle. {Enter}
Sleep 100
SendInput t/m I ask that you please comply, this will be your only warning. {Enter}
Return


NUMPAD8::
SendInput t/m Step out of the vehicle slowly. {Enter} t/m And slowly place your hands above your head. ((/handsup)) {Enter}
Return


NUMPAD9::
SendInput t/me removes a pair of handcuffs from his belt.{Enter}
SendInput t/me grabs the suspect's hands places them behind their back.{Enter}
SendInput t/cuff{Space}
return

Numpadadd::
SendInput t/do Have a Holster attached to his Belt{ENTER}
Sleep 100
SendInput t/me Lifts his Shirt and UnHolsters a Weapon from His Holster{ENTER}
Sleep 100
SendInput t/do Holding a Weapon.{ENTER}
return


Numpadenter::
SendInput t/do Have a Holster attached to his Belt{ENTER}
Sleep 100
SendInput t/me Lifts his Shirt and Holsters a Weapon to His Holster{ENTER}
Sleep 100
SendInput t/do Weapon in his Holster.{ENTER}
return


Home::
SendInput t/me aims his tazer at the suspect and fires. {Enter}
return


End::
SendInput t/m Move the car bud, this 'aint a parking lot. {Enter}
Return


F11:: SendInput t/lspd{enter}
Return


Insert::
SendInput t/Me Opens the Buildings Door Genteelly, Then Enters and closes the Door Behind{Enter} t/Enter{Enter}
return

Delete::
SendInput t/Me Opens the Buildings Door Genteelly, Then Gets out and closes the Door Behind{Enter} t/Exit{Enter}
return


By,
Adrian
____________

Server & Forum Owner
Back to top Go down
https://bg-gaming.darkbb.com
Sponsored content





AutoHotkey Binds Empty
PostSubject: Re: AutoHotkey Binds   AutoHotkey Binds Icon_minitime

Back to top Go down
 
AutoHotkey Binds
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Best Generation Roleplay  :: The Best Generation Roleplay :: Community Help Desk-
Jump to: