Jump to content
Sign in to follow this  
Erik.

See mouse activity

Recommended Posts

Erik.

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

Share this post


Link to post
Share on other sites
rasim

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

Share this post


Link to post
Share on other sites
Erik.

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

Share this post


Link to post
Share on other sites
Erik.

That works fine,

Thanks allot


I little problem, hard to find and fix

Share this post


Link to post
Share on other sites
qazwsx

with that script there is a chance that it could close even if there is a user there. Is this just for your computer or for widespread use?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.