Sign in to follow this  
Followers 0
Erik.

See mouse activity

6 posts in this topic

#1 ·  Posted (edited)

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



#2 ·  Posted (edited)

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

#3 ·  Posted (edited)

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. Sorry, i edit code, try it now. :)

Share this post


Link to post
Share on other sites

That works fine,

Thanks allot


I little problem, hard to find and fix

Share this post


Link to post
Share on other sites

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  
Followers 0