Combine 2 Scripts

Ask gaming related questions (AHK v1.1 and older)
MorallyBankrupt
Posts: 1
Joined: 12 Mar 2018, 19:06

Combine 2 Scripts

12 Mar 2018, 19:14

I am new to AHK and I was wondering if someone could combine these scripts for me:


CapsLock::Suspend
LButton::
Loop
{
SetMouseDelay 20
Click
If (GetKeyState("LButton","P")=0)
Break
}

and

#NoEnv
SendMode Input
CapsLock::Suspend
~End::ExitApp


~*$LButton::
Loop
{
GetKeyState, state, Lbutton, P
if state=u
break


sleep 1
mouseXY(0,10)
sleep 1
mouseXY(15,0)
sleep 3
mouseXY(-15,-10)


sleep 1
mouseXY(0,10)
sleep 1

mouseXY(-15,-10)
sleep 1

mouseXY(15,0)



}

return



mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}

I would like the these 2 scripts to be one. Also if possible can they both be toggled with the same hotkey CapsLock

====

Will send $5 paypal. Thank you in advance.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 32 guests