![]() |
[Guide] Advanced Binds/Macros Using AutoHotKey Software - Printable Version +- Fearless Forums (https://fearlessrp.net) +-- Forum: Community & Server Information (https://fearlessrp.net/forumdisplay.php?fid=1) +--- Forum: Help & Support (https://fearlessrp.net/forumdisplay.php?fid=3) +---- Forum: Support Archive (https://fearlessrp.net/forumdisplay.php?fid=158) +---- Thread: [Guide] Advanced Binds/Macros Using AutoHotKey Software (/showthread.php?tid=48263) Pages:
1
2
|
[Guide] Advanced Binds/Macros Using AutoHotKey Software - GRiiM - 06-21-2014 Advanced Binds/Macros Using AutoHotKey Summary I am going to show you a way to get around the limitations which the Garry's Mod binds currently have, using my methods you'll be able to do the following:
So how is this achieved? Using the software, you'll be able to create macros which are basically pipelines of code. Similar to how the default GMod binds are created, but much more advanced. These lines of code can be activated by various ways, most commonly (for me at least) by pressing a key which will run a .exe of the code or by entering a '/' command in the console. Where can I get the software What you'll need to do this is the AutoHotKey software which you can get from HERE. How to add the code
In-Game Demonstration Example Commands I encourage people who use this software to create their own commands to share some of their code to benefit everyone. ![]() Miranda Rights Uses numpad 1 key but that can be easily configured. Spoiler :
Miranda Rights - Macro Keyboard Needs to be compiled to .exe, This code was written for a macro key on the keyboard that was set the .exe Spoiler :
Show ID Command (Ran using the commands /id and /idt in console. /idt requires Gmod in windowed / windowed borderless mode because of input boxes) Spoiler :
Fine Command (Ran using the commands /fine in console. Gmod needs to be in windowed / windowed borderless because of input boxes) Spoiler :
Cash Register Command (Ran using the command /register in console.) Spoiler :
Impound Vehicle (Ran using the command /impound in console.) Spoiler :
Unlock Car (Automatic when you press shift and right click) Spoiler :
To Do
NOTE: To run Garry's Mod in Windowed Borderless mode, right click the game in your library - Go to properties - Set launch options - And type in -windowed -noborder Then run Garry's Mod and make sure it's at the same resolution as your desktop. RE: [Guide/Resources] Advanced Binds/Macros Using AutoHotKey Software - Rylund - 06-22-2014 This is a nice addition instead of the old console binds. :p I would like to point out to people with windows 8.0, you can't run the show ID /idt command. RE: [Guide/Resources] Advanced Binds/Macros Using AutoHotKey Software - GRiiM - 06-22-2014 (06-22-2014, 08:58 AM)SnowredWolf Wrote: This is a nice addition instead of the old console binds. :p If it is that, could be something else. Would be nice to have other people try it out and report back. Edit: Snowredwolf has confirmed that it now works properly with Windows 8.1 instead of 8.0 ![]() RE: [Guide/Resources] Advanced Binds/Macros Using AutoHotKey Software - Remen3 - 06-22-2014 Adjusted these binds to Garry's Mod from GTA:SAMP, just paste them right into the file by itself, save it then right click AHK and reload the script. Here's the list of keys you could use instead of the numpad keys if you wish to change them http://www.autohotkey.com/docs/KeyList.htm Mostly for Police, edit it to your likings. Spoiler :
RE: [Guide/Resources] Advanced Binds/Macros Using AutoHotKey Software - RRK - 06-28-2014 Nice Guide! Is there a way to make an AHK script that automatically runs console commands, just like normal console binds? Instead of the chatbox opening, pasting and sending chat messages automatically(that's what Remen's code looks like). If there is none, I would do it like that: Spoiler :
RE: [Guide/Resources] Advanced Binds/Macros Using AutoHotKey Software - Jan - 06-28-2014 Great job on making this guide! RE: [Guide] Advanced Binds/Macros Using AutoHotKey Software - GRiiM - 06-28-2014 (06-28-2014, 03:00 PM)Pawenstedt Wrote: Nice Guide! Is there a way to make an AHK script that automatically runs console commands, just like normal console binds? Instead of the chatbox opening, pasting and sending chat messages automatically(that's what Remen's code looks like). If there is none, I would do it like that: I don't believe that there is a way for it to write commands straight into the console without opening it. RE: [Guide] Advanced Binds/Macros Using AutoHotKey Software - RRK - 06-28-2014 (06-28-2014, 04:53 PM)GRiiM Wrote:Well, okay then. Is the code for the chatbox method I have written okay?(06-28-2014, 03:00 PM)Pawenstedt Wrote: Nice Guide! Is there a way to make an AHK script that automatically runs console commands, just like normal console binds? Instead of the chatbox opening, pasting and sending chat messages automatically(that's what Remen's code looks like). If there is none, I would do it like that: RE: [Guide] Advanced Binds/Macros Using AutoHotKey Software - GRiiM - 08-18-2014 Added a fine command which looks like - * GRiiM takes out their pen from their jacket pocket and begins to write a ticket up. * GRiiM writes up a fine addressed to [CRIMINAL NAME] for the cost of [FINE AMOUNT] to be paid immediately. * GRiiM hands the ticket over to [CRIMINAL NAME] Also added a cash register command which looks like - * GRiiM counts the money, quietly muttering whilst doing so. * GRiiM presses a combination of buttons which opens up the cash register. * GRiiM places the money neatly inside the register's money tray and then closes it. ** The register makes a loud *CLICK* as it shuts tight ** I've also added a quick in-game demonstration video. Added a /impound command inspired by Georgetheboy's suggestion - http://www.fearlessrp.net/showthread.php?tid=50827 Added a car unlock /me action. RE: [Guide] Advanced Binds/Macros Using AutoHotKey Software - GeorgeTheBoy - 09-07-2014 Great work! Moved to useful docs. |