1111111111111111111111
lianyu = 3
sjs = 0
yc1 = 0
yc2 = 0
yc3 = 0
yc4 = 0
kaiguan = false
EnablePrimaryMouseButtonEvents(true)
function OnEvent(event, arg)
if (event == "MOUSE_BUTTON_PRESSED" and arg == lianyu) then
kaiguan = not kaiguan
if(kaiguan)then
OutputLogMessage(" on \n")
else
OutputLogMessage(" off \n")
end
end
if(kaiguan)then
Sleep(10)
if IsMouseButtonPressed(1) then
yc1 = math.random(150,160)
yc2 = yc1 + 7
yc3 = math.random(10,15)
yc4 = yc3 + 3
repeat
sjs = math.random(1,10)
if sjs < 9 then
PressKey("o")
Sleep(math.random(yc1,yc2))
ReleaseKey("o")
Sleep(math.random(yc3,yc4))
else
PressKey("o")
Sleep(math.random(100,180))
ReleaseKey("o")
Sleep(math.random(10,29))
end
until not IsMouseButtonPressed(1)
end
end
end