How can i combine these 2 scripts?

Ask gaming related questions (AHK v1.1 and older)
CallmeCity
Posts: 9
Joined: 06 Mar 2017, 19:22

How can i combine these 2 scripts?

02 May 2017, 10:50

I am trying to merge these 2 scripts into 1, but i keep getting errors. Separately, these 2 scripts work great on their own, but i would like to use them at the same time...The first script makes it so that the mouse will automatically "pull down" for me while im holding left control and left mouse click. The 2nd script makes it "auto-click" the left mouse button for me. How can i combine them into 1 script?

The first script is -

Code: Select all

#NoEnv
SendMode Input

~F6::Suspend
~End::ExitApp
~F5::Reload

LCtrl & ~LButton::
Loop
If GetKeyState("LButton", "LCtrl") {
Sleep, 6
moveAmount := (moveAmount = 2) ? 1 : 0
mouseXY(moveAmount,7.5)

}
else
break

Return



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

The 2nd script is -

Code: Select all

f2::Suspend
;Script

~$*LButton::
{
Loop
{
SetMouseDelay 69
MouseClick, Left
If (GetKeyState("LButton","P")=0)
{
Break
Return
}
}
}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Google [Bot], yuu453 and 73 guests