Jump to content

See mouse activity


Erik.
 Share

Recommended Posts

Hello,

i want to know if there is some option to see the mouse activity

If the mouse was not moved for 2 minutes there must be opened a program to lock the pc.

i already have a program running that i made and i want to put this code to my program

Like an anty afk script

Is there some that can help me?

Edited by Erik.

I little problem, hard to find and fix

Link to comment
Share on other sites

Try it:

While 1
    $mousePos = MouseGetPos()
    Sleep(120000)
    $NewPos = MouseGetPos()
    If $NewPos[0] = $mousePos[0] And $NewPos[1] = $mousePos[1] Then
        MsgBox(64, "Test", "Lock machine")
    EndIf
WEnd
Edited by rasim
Link to comment
Share on other sites

Hu, wierd code?

It was think of wierd ocde i think a reload error

If i do not move the mouse for 5 seconds and then i move it i get the message

I want the message when the mouse is not mouved for 5 seconds..

Edited by Erik.

I little problem, hard to find and fix

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...