Erik. Posted September 23, 2007 Share Posted September 23, 2007 (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 September 23, 2007 by Erik. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
rasim Posted September 23, 2007 Share Posted September 23, 2007 (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 September 23, 2007 by rasim Link to comment Share on other sites More sharing options...
Erik. Posted September 23, 2007 Author Share Posted September 23, 2007 (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 September 23, 2007 by Erik. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
rasim Posted September 23, 2007 Share Posted September 23, 2007 Erik. Sorry, i edit code, try it now. Link to comment Share on other sites More sharing options...
Erik. Posted September 23, 2007 Author Share Posted September 23, 2007 That works fine, Thanks allot I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
qazwsx Posted September 23, 2007 Share Posted September 23, 2007 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now