swagfag wrote: ↑09 Apr 2019, 11:50
remap
LButton to
RButton if u want it to do the holding thing
Code: Select all
#If !mouseInRegion(719, 942, 995, 1008)
LButton::RButton
the rest i dont understand. its not clear what the end result should be after melding both scripts
Thank You
! Then why LButton::Send {RButton} inserted of just LButton::RButton? Sorry just want learn
For the second questions I just want this script
Code: Select all
CoordMode, Mouse, Screen
m::Suspend
#If !mouseInRegion(719, 942, 1317, 1075)
LButton::RButton
mouseInRegion(x1, y1, x2, y2) {
MouseGetPos x, y
return (x >= x1) && (x <= x2) && (y >= y1) && (y <= y2)
}
have function "when double click within x milliseconds press (g)" like this
Code: Select all
#NoEnv
#SingleInstance, force
SendMode, Input
#UseHook
LButton::
if (A_TickCount - RButton_Tick <= 350) AND (RButton_Tick >= 1)
Send {g}
else
{
Send {RButton down}
}
SetTimer, ClickBackUp, -1
RButton_Tick := A_TickCount
return
ClickBackUp:
if !(GetKeyState("RButton" , "P"))
Send {RButton up}
else
SetTimer, ClickBackUp, -1
return
9::Suspend
Thank You and sorry!