free

News

collapse

User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

NOTICE OF PARKING ENFORCEMENT CHANGES by Huntsman
[June 19, 2025, 05:22:50 pm]


Re: Stopping by by Sinister
[June 08, 2025, 01:58:04 pm]


Re: Stopping by by Ehks
[June 04, 2025, 12:25:17 am]


Re: Rest in peace by Stefanrsb
[June 02, 2025, 03:38:02 am]


Re: [SA:MP]House of Sforza | The Elite Power | Estd. 2006 | LS - LV by Stefanrsb
[June 02, 2025, 03:09:22 am]


Re: The Soprano Family | Royal Loyalty by Stefanrsb
[June 02, 2025, 03:00:31 am]


Re: The Gvardia Family || San Fierro's Main Power || Best criminal group of 09/10/11 by Stefanrsb
[June 02, 2025, 02:47:01 am]


Re: BALLAS | In memory of INFERNO 9 and NBA by Stefanrsb
[June 02, 2025, 02:31:29 am]


Re: Count to 1,000,000. by Stefanrsb
[June 02, 2025, 02:15:04 am]


Re: Stopping by by Traser
[June 01, 2025, 10:23:13 pm]


Re: Stopping by by Old Catzu
[May 18, 2025, 07:27:06 pm]


Re: Stopping by by TheRock
[May 18, 2025, 06:44:49 am]

* Who's Online

  • Dot Guests: 443
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Birthday Calender

June 2025
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 [26] 27 28
29 30

[Guide] AutoHotKey Script Guide

Vaeldious · 3047

0 Members and 1 Guest are viewing this topic.

Offline VaeldiousTopic starter

  • Prophet of Sauron
  • Veteran
  • ***
    • Posts: 777
  • the Beacon in the Dark
  • With us since: 08/03/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
    • Nomads of Carson (Group Page)
on: September 04, 2017, 03:04:48 pm

AutoHotKey Script Guide

Hey there! I get asked this question quite a bit, so thought I'd share with everyone how to set up some magical keybinds!

First, the rules.

Rules:
- You must be present when keybinds are running.
- You cannot create keybinds which run for more than 30 seconds per activation.


Basically, don't bot or be an asshole. Pretty simple.

You can get AutoHotKey from here. Download the Zip for portable, installer for non-portable version. Once installed, it'll pop open the helpfile. This can be extremely useful for reference.

Now, we're gonna create a new script. Go ahead and create a new notepad document, and import the following into the text file:
Code: [Select]
NUMPAD0::
Send t/paytoll{enter}
Return

NUMPAD1::
Send t/engine{enter}
Return

NUMPAD2::
Send t/fillup{enter}
Return

NUMPAD3::
Send t/repairvehicle{enter}
Return

Next, hit File > Save As... and save the new file as Argonath.ahk (instead of .txt). Now, when double clicking the script, it will automatically launch!

Useful Combos:
Code: [Select]
# Win (Windows logo key).
! Alt
^ Control
+ Shift
< Use the left key of the pair. e.g. <!a is the same as !a except that only the left Alt key will trigger it.
> Use the right key of the pair.

For example, !NUMPAD0:: is Alt + Numpad 0, <!NUMPAD0:: is only left Alt + Numpad 0.

In some games/instances, you have to simulate both keypress and keyrelease (otherwise they are not detected). A 1/10th of a second (100ms) delay is sufficient for most games.

Code: [Select]
    Send {Enter down}
    Sleep 100
    Send {Enter up}

Here's an example of scripting vehicle repair for the server.

Code: [Select]
NUMPAD3::
Send t/engine{enter}
Sleep 100
Send t/repairvehicle{enter}
Sleep 4000
Send t/engine{enter}
Return
Turns the engine off, sends the command to repair, waits 4 seconds, turns the engine back on.

EZ-PZ!

You can edit a live script by right clicking the icon in the taskbar. Once you save it, be sure to right click the icon again and reload the script so the changes can be updated!
Reference: Keylist
Reference: Hotkeys and Modifiers

Hope this helps!


Guess who's back?


Offline Cyd Parker

  • Just a rascal, goofing around.
  • Regular
  • **
    • Posts: 841
  • "Everything is better with some wine in the belly"
  • With us since: 18/07/2015
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
  • SA:MP: Quan_Zheng
  • VC:MP: Albert.O'Reily
  • Discord: Half Sack#6316
Reply #1 on: September 04, 2017, 04:05:16 pm
This is bannable to use for cooking meth if I'm not wrong, right?
But anyways, The guide was helpful.

"Ride Hard or Stay Home"


Offline VaeldiousTopic starter

  • Prophet of Sauron
  • Veteran
  • ***
    • Posts: 777
  • the Beacon in the Dark
  • With us since: 08/03/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
    • Nomads of Carson (Group Page)
Reply #2 on: September 04, 2017, 04:17:47 pm
This is bannable to use for cooking meth if I'm not wrong, right?

You'd be wrong. It is not bannable, provided you follow the Rules.

Originally, Meth was not randomly timed and had a very predictable window between each phase (stage 2 started around 1 min 25 sec in, for example). One player automated and looped it, and went afk for the rest of the night while his meth cooked. He was caught by not responding to RP. As a result, the timer between meth stages is now a wide random window (requiring you to be present to see the smoke and respond), and Teddy posted those rules I referenced.

As long as each keypress results in an action that takes less than 30 seconds (like simply adding an ingredient to meth) it is fine. TBH, Argo would actually be really difficult to automate any of the jobs anymore.


Guess who's back?


 


free
free
SimplePortal 2.3.7 © 2008-2025, SimplePortal