[GUIDE] How to Use Binds
#20
Okay, so I've spent some time messing around further with binds to bypass the limitations within Garry's Mod, especially macro keys which aren't recognized in Garry's Mod.
So far I've managed to get it working so that macro keys work within Garry's Mod and also multiple lines of text can be sent with one key press but there's a lot more that can be done.
To achieve this I use some software called 'AutoHotKey'.

Here's the code I use to post two lines of Miranda rights with one key-press:

Code:
#NoEnv

text1 =
(
You have the right to remain silent. Anything you say or do can and will be held against you in the court of law.
)
Send, y
sleep, 100
sendinput %text1%
sleep, 100
Send, {enter}

sleep, 600
text2 =
(
You have the right to an attorney. If you cannot afford an attorney, one will be appointed to you.
)
Send, y
sleep, 100
sendinput %text2%
Send, {enter}

ExitApp

More information: http://www.fearlessrp.net/showthread.php?tid=48263
The following 1 user Likes GRiiM's post:
  • ArcHammer


Messages In This Thread
[GUIDE] How to Use Binds - by ArcHammer - 04-24-2014, 01:29 PM
RE: [GUIDE] How to Use Binds - by Jan - 04-24-2014, 02:25 PM
RE: [GUIDE] How to Use Binds - by Floodify - 04-24-2014, 02:55 PM
RE: [GUIDE] How to Use Binds - by ArcHammer - 04-24-2014, 02:57 PM
RE: [GUIDE] How to Use Binds - by Pawsative - 04-25-2014, 12:04 AM
RE: [GUIDE] How to Use Binds - by GRiiM - 04-25-2014, 12:27 AM
RE: [GUIDE] How to Use Binds - by ArcHammer - 04-25-2014, 12:27 AM
RE: [GUIDE] How to Use Binds - by yarrrs - 04-24-2014, 02:58 PM
RE: [GUIDE] How to Use Binds - by Demonic - 04-24-2014, 06:11 PM
RE: [GUIDE] How to Use Binds - by TheSiphon - 04-24-2014, 06:12 PM
RE: [GUIDE] How to Use Binds - by Jono - 04-24-2014, 06:21 PM
RE: [GUIDE] How to Use Binds - by ArcHammer - 04-24-2014, 11:50 PM
RE: [GUIDE] How to Use Binds - by GRiiM - 04-25-2014, 12:39 AM
RE: [GUIDE] How to Use Binds - by ArcHammer - 04-25-2014, 12:42 AM
RE: [GUIDE] How to Use Binds - by Syntex - 04-25-2014, 10:38 AM
RE: [GUIDE] How to Use Binds - by Nyander - 04-25-2014, 06:58 PM
RE: [GUIDE] How to Use Binds - by Ex7reMeFx - 04-25-2014, 08:22 PM
RE: [GUIDE] How to Use Binds - by ArcHammer - 04-25-2014, 11:32 PM
RE: [GUIDE] How to Use Binds - by ArcHammer - 05-19-2014, 01:25 PM
RE: [GUIDE] How to Use Binds - by GRiiM - 06-21-2014, 04:05 AM
RE: [GUIDE] How to Use Binds - by RRK - 06-21-2014, 08:02 PM
RE: [GUIDE] How to Use Binds - by ArcHammer - 08-10-2014, 09:35 AM
RE: [GUIDE] How to Use Binds - by ArcHammer - 08-29-2014, 12:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)