Page 1 of 1

Simple script, for n00bie :(

Posted: 14 Jun 2018, 23:05
by Rythmicone
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!!

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

Posted: 15 Jun 2018, 09:44
by Rohwedder
Hallo,
try:

Code: Select all

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

#If Toggle
*LButton::Send, {Blind}{RButton Up}
*LButton Up::Send, {Blind}{RButton DownR}
#If

Re: Simple script, for n00bie :(

Posted: 15 Jun 2018, 21:53
by Rythmicone
Thank you so much!
Ill give it a try later tonight!

Re: Simple script, for n00bie :(

Posted: 15 Jun 2018, 22:00
by Rythmicone
Tested, perfect! DM me your addy, ill paypal you a few bucks for your effort, thnx!