
누군가 나를 도와줄 수 있나요? 이 2개의 스크립트를 하나로 병합하려고 하는데 계속 오류가 발생합니다. 나는 그것들을 결합하는 것만으로도 효과가 있을 것이라고 생각했지만 슬프게도 그렇지 않았습니다. 2개의 스크립트는 아래와 같습니다.
#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)
}
두 번째 스크립트는 이것입니다 -
f2::Suspend
;Script
~$*LButton::
{
Loop
{
SetMouseDelay 69
MouseClick, Left
If (GetKeyState("LButton","P")=0)
{
Break
Return
}
}
}
답변1
이렇게 하면 트릭을 수행할 수 있습니다.
#NoEnv
SendMode Input
~F6::Suspend
~F5::Reload
~End::ExitApp
LCtrl & ~LButton::
SetTimer, pulldown, 6
SetTimer, click, 69
Return
$LButton::
SetTimer, click, 69
return
pulldown:
If (GetKeyState("LButton", "P") && GetKeyState("LCtrl","P"))
{
mouseXY(0,7.5)
} else {
SetTimer, pulldown, Off
}
return
click:
SetMouseDelay 69
MouseClick, Left
If (!GetKeyState("LButton","P"))
{
SetTimer, click, off
}
return
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}