Jump to content

Countdown Start after mouse moving


Recommended Posts

Hello! I'd like to extend my Script, at the end it examine whether the mouse yet not bein g moved. The "Countdown" starty only when the mouse begins moving and stop it.

Here is my script:

; ----------------------------------------------------------------------------
Opt("TrayIconHide", 1)  

While 1
$pos = MouseGetPos()

    $newpos = MouseGetPos()
    
    if $pos[0] = $newpos[0] or $pos[1] = $newpos[1] Then

      sleep(30000)
      sleep(30000)

      sleep(30000)
      sleep(30000)

      sleep(30000)
      sleep(30000)

    EndIf
    $apos = MouseGetPos()
    
    if $pos[0] = $apos[0] or $pos[1] = $apos[1] Then
        
      ProcessClose ( "IEXPLORE.exe" )
      
      ProcessClose ( "Acrord32.exe" )

      RunWait ( "ie.bat" )
    EndIf

WEnd
Edited by Wanzler
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...