Simple script, for n00bie :( Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Rythmicone
Posts: 6
Joined: 01 Jul 2016, 16:14

Simple script, for n00bie :(

14 Jun 2018, 23:05

Hi!
If I wanted a script to toggle on and off with the f12 key, and perform the following simple function :

- Right mouse button is always held down while script is on except when left mouse button is clicked and/or held. As soon as left is released, right would be on again.

I have no idea how to write simple AHK anymore, I used to make a few simple scripts before but the commands changed. Thank you in advance!!
Rohwedder
Posts: 1009
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Simple script, for n00bie :(  Topic is solved

15 Jun 2018, 09:44

Hallo,
try:

Code: [Select all] [Download] GeSHi © Codebox Plus

F12::
If Toggle := !Toggle
Send, {Blind}{RButton DownR}
Else
Send, {Blind}{RButton Up}
Return
#If Toggle
~*LButton::Send, {Blind}{RButton Up}
~*LButton Up::Send, {Blind}{RButton DownR}
#If
If you do not want your game to notice the LButtons, remove the tildes "~".

Code: [Select all] [Download] GeSHi © Codebox Plus

#If Toggle
*LButton::Send, {Blind}{RButton Up}
*LButton Up::Send, {Blind}{RButton DownR}
#If
Rythmicone
Posts: 6
Joined: 01 Jul 2016, 16:14

Re: Simple script, for n00bie :(

15 Jun 2018, 21:53

Thank you so much!
Ill give it a try later tonight!
Rythmicone
Posts: 6
Joined: 01 Jul 2016, 16:14

Re: Simple script, for n00bie :(

15 Jun 2018, 22:00

Tested, perfect! DM me your addy, ill paypal you a few bucks for your effort, thnx!

Return to “Ask For Help”

Who is online

Users browsing this forum: imustbeamoron, Kingpin, Sparkon and 27 guests