Sign in to follow this  
Followers 0
Wanzler

Countdown Start after mouse moving

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



oke i have found a way to do it. but now anothter question:

Is it possible that a function repeat again and again?

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