Script to hold down Left and Right mouse button at the same time. toggle
Script to hold down Left and Right mouse button at the same time. toggle
I am very bad at scripting in AHK. I'm wondering if someone can help me with a script so that when I press F4, it holds down the left mouse button and right mouse button at the same time until I press F4 again. Please and thank you
Re: Script to hold down Left and Right mouse button at the same time. toggle
Here you go.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey 2
Toggle = 0
F4::
Toggle := !Toggle
If Toggle
Send, {LButton Down}{RButton Down}
else
Send, {LButton Up}{RButton Up}
return
esc:: ExitApp ; esc, exits the script
I am your average ahk newbie. Just.. a tat more cute.
Re: Script to hold down Left and Right mouse button at the same time. toggle
thank you! i'm defiently not late lol
Who is online
Users browsing this forum: No registered users and 55 guests