[GUIDE] Autohotkey easy for everyone

Find all sorts of guides created by our community here. Includes guides such as drug use, roleplaying different types of characters, weapons etc.
Forum rules
The guides you see here have been unofficially created by the players, for the players. LSRP cannot be held responsible for the accuracy of any of the content you see here.
User avatar
Airwalk
Game Administrator
Posts: 7143
Joined: Wed May 30, 2012 5:52 am

Re: [GUIDE] Autohotkey easy for everyone

Post by Airwalk » Mon May 09, 2016 4:21 pm

You do realize that he sent a script and didn't ask for help, yeah? So far, I helped out everyone who sent me PMs.
NOT ENOUGH

User avatar
Blue Ranger
bellomo.cs
bellomo.cs
Posts: 1191
Joined: Tue Jul 09, 2013 8:50 pm
Ingame name: Frank Caci
Location: Tunisia

Re: [GUIDE] Autohotkey easy for everyone

Post by Blue Ranger » Wed Mar 29, 2017 8:13 am

Sorry to bump but I'm encountering a problem with AHK when I'm trying to write something over chat they binds would just work as soon as I hit a binded key. Is there any solution for this so it would only work when the text cursor isn't appearing?
Current character: Frank Caci
Past characters: Paul Franzese

User avatar
Airwalk
Game Administrator
Posts: 7143
Joined: Wed May 30, 2012 5:52 am

Re: [GUIDE] Autohotkey easy for everyone

Post by Airwalk » Wed Mar 29, 2017 10:00 am

Code: Select all

#IfWinActive, GTA:SA:MP
Put that on the top of your script.
NOT ENOUGH

User avatar
Blue Ranger
bellomo.cs
bellomo.cs
Posts: 1191
Joined: Tue Jul 09, 2013 8:50 pm
Ingame name: Frank Caci
Location: Tunisia

Re: [GUIDE] Autohotkey easy for everyone

Post by Blue Ranger » Wed Mar 29, 2017 4:16 pm

Airwalk wrote:

Code: Select all

#IfWinActive, GTA:SA:MP
Put that on the top of your script.
I do have that on top of mt script already. And I believe it only makes binds work on SAMP alone. But you misunderstood me I guess because i was referring to when I'm writing something over /f for example and when I hit key that is binded, its respective command would be submitted.
Current character: Frank Caci
Past characters: Paul Franzese

User avatar
Airwalk
Game Administrator
Posts: 7143
Joined: Wed May 30, 2012 5:52 am

Re: [GUIDE] Autohotkey easy for everyone

Post by Airwalk » Wed Mar 29, 2017 7:56 pm

Code: Select all

#IfWinActive, GTA:SA:MP

~+T::
~t::
Label_T:
Suspend, On
Hotkey, Enter, On
Hotkey, NumPadEnter, On
Hotkey, Escape, On
Hotkey, t, Off
Hotkey, +T, Off
return

~NumpadEnter::
~Enter::
~Escape::
Label_Enter:
Suspend, Permit
Suspend, Off
Hotkey, t, On
Hotkey, +T, On
Hotkey, Enter, Off
Hotkey, NumPadEnter, Off
Hotkey, Escape, Off
return
Try that, then.
NOT ENOUGH

User avatar
_WolfGang_
Wannabe Mafia
Wannabe Mafia
Posts: 151
Joined: Fri Mar 03, 2017 3:58 pm
Ingame name: Fuzz
Location: Iran, Tehran

Re: [GUIDE] Autohotkey easy for everyone

Post by _WolfGang_ » Wed Mar 29, 2017 8:08 pm

Thanks a lot bro. helpful for newbies. :D
I need some Blood...

User avatar
Blue Ranger
bellomo.cs
bellomo.cs
Posts: 1191
Joined: Tue Jul 09, 2013 8:50 pm
Ingame name: Frank Caci
Location: Tunisia

Re: [GUIDE] Autohotkey easy for everyone

Post by Blue Ranger » Thu Mar 30, 2017 12:49 am

Airwalk wrote:

Code: Select all

#IfWinActive, GTA:SA:MP

~+T::
~t::
Label_T:
Suspend, On
Hotkey, Enter, On
Hotkey, NumPadEnter, On
Hotkey, Escape, On
Hotkey, t, Off
Hotkey, +T, Off
return

~NumpadEnter::
~Enter::
~Escape::
Label_Enter:
Suspend, Permit
Suspend, Off
Hotkey, t, On
Hotkey, +T, On
Hotkey, Enter, Off
Hotkey, NumPadEnter, Off
Hotkey, Escape, Off
return
I'm new to AHK scripting tbh. What am I supposed to do with that and what does it do? :p


EDIT: I copied this into my script and I no longer have that issue. You're my savior, friend. Thank you!


Just another question. Is it possible to make a hotkey that would enable/disable the script? If yes can you please share it with me? Of course for the exception of that exact key. Otherwise when I suspend the script I won't be able to turn it back on.
Current character: Frank Caci
Past characters: Paul Franzese

User avatar
Airwalk
Game Administrator
Posts: 7143
Joined: Wed May 30, 2012 5:52 am

Re: [GUIDE] Autohotkey easy for everyone

Post by Airwalk » Sun Apr 02, 2017 11:40 pm

Didn't see the edit until now.

Code: Select all

SETYOURKEY::
Suspend
return
And the previous script that I sent only triggers the binds when GTA is running and the chatbox is closed, unless you use strings (/ binds).
NOT ENOUGH

User avatar
LeddeR
Gangster
Gangster
Posts: 121
Joined: Wed Jan 11, 2017 7:03 pm

Re: [GUIDE] Autohotkey easy for everyone

Post by LeddeR » Fri Apr 07, 2017 10:23 pm

Nice
"My mama always used to tell me: 'If you can't find somethin' to live for, you best find somethin' to die for.'"-Tupac Shakur

User avatar
percentage.
Gold Donator
Gold Donator
Posts: 251
Joined: Sat Oct 08, 2016 5:45 pm
Ingame name: Booker
Location: Beehives
Contact:

Re: [GUIDE] Autohotkey easy for everyone

Post by percentage. » Sun Dec 10, 2017 6:23 am

How would you say for example have /takegun 1 and it doing an /ame at the same time?
Beehives DTO
will be on partial absence from the 16th onward due to new league season

User avatar
Airwalk
Game Administrator
Posts: 7143
Joined: Wed May 30, 2012 5:52 am

Re: [GUIDE] Autohotkey easy for everyone

Post by Airwalk » Sun Dec 10, 2017 9:10 am

By just adding a second line.

KEY::
Sendinput t/takegun 1{enter}
sleep 250
Sendinput t/ame whateveryouwanttoputhere{enter}
return
NOT ENOUGH

Post Reply

Return to “Player-Created Guides”

Who is online

Users browsing this forum: Dmitry_Klokov and 4 guests