Sign in to follow this  
Followers 0
WolfWorld

Mouse stuff

1 post in this topic

JUST FOR FUN PRESS F11 To stop it

just run it muttley and you will know what is it

HotKeySet('{f11}', 'yyy')
func yyy()
    Exit
EndFunc

$pos_o = MouseGetPos()
While 1
    $pos_n = MouseGetPos()
    iF $pos_n[0] = 0 OR $pos_n[1] = 0 OR $pos_n[0] = @DesktopWidth-1 OR $pos_n[1] = @DesktopHeight-1 Then
     if $pos_n[0] = 0 then $posx = 3
         if $pos_n[0] = @DesktopWidth-1 then $posx = @DesktopWidth - 3
              if $pos_n[1] = 0 then $posy = 3
         if $pos_n[1] = @DesktopHeight-1 then $posy = @DesktopHeight- 3
             MouseMove($posx,$posy,0)
        $pos_o = MouseGetPos()
        $pos_n = MouseGetPos()
     EndIf
     
    If $pos_n[0] <> $pos_o[0] or $pos_n[1] <> $pos_o[1] Then
        $posx = $pos_n[0]
        $posy = $pos_n[1]
        if $pos_n[0] > $pos_o[0] Then
            $posx = $pos_n[0] - $pos_o[0]
            $posx = $pos_n[0] - $posx * 2
        ElseIf $pos_n[0] < $pos_o[0] Then
            $posx = $pos_o[0] - $pos_n[0]
            $posx = $pos_n[0] + $posx * 2
        EndIf
        if $pos_n[1] > $pos_o[1] Then
            $posY = $pos_n[1] - $pos_o[1]
            $posY = $pos_n[1] - $posY * 2
        ElseIf $pos_n[1] < $pos_o[1] Then
            $posY = $pos_o[1] - $pos_n[1]
            $posY = $pos_n[1] + $posY * 2
        EndIf
        MouseMove($posx,$posy,0)
        $pos_o = MouseGetPos()
        $posx = $pos_o[0]
        $posy = $pos_o[1]
        endif
    WEnd

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0