Code: Select all
SendMode Input
1::a
2::d
direction := true
Rcount := 0
Lcount := 0
Dcount := 0
c::
Loop
{
if direction
{
direction = false
Loop
{
Lcount = Lcount - 1
MouseMove, %Lcount%, 0, 0, R
Sleep, 25
} Until Lcount = -150
Dcount = Dcount + 1
}
else if (direction = false)
{
direction = true
Loop
{
Rcount = Rcount + 1
MouseMove, %Rcount%, 0, 0, R
Sleep, 25
} Until Rcount = 150
Dcount = Dcount + 1
}
} until Dcount = 7
return