bambamfox Posted December 18, 2009 Share Posted December 18, 2009 (edited) hi, sorry - I don't get an answer when I post my question in an existing thread: my MouseTrap function needs to be permanently active - the mouse is being unblocked, when I change the active window (alt+tab) (while the script is still running in the background) sth like that: #include <Misc.au3> _MouseTrap(0,0,0,0) sleep(5000) does anyone have an idea? a link to an existing solution/explanation would be great too! thx Edited December 18, 2009 by bambamfox Link to comment Share on other sites More sharing options...
JohnOne Posted December 18, 2009 Share Posted December 18, 2009 If I'm honest, that sort of thing sounds more like a nasty weapon than a nice tool. Try this While 1 _Deploy mouse weapon(forever) For $i = 1 To infinity If user is pissed off Then MsgBox(0,"Ha Ha", "lol") EndIf Infinity +=1 Next Wend Func _Deploy mouse weapon($time) Piss user off EndFunc AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 18, 2009 Share Posted December 18, 2009 Just doing MouseMove(0, 0, 0) in a loop would achieve the same thing. That's too simplistic to consider much of a threat, but what's the point? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
bambamfox Posted December 19, 2009 Author Share Posted December 19, 2009 oh thank you !!!! it's working - it cannot be tabbed out now! (ps: it's a program for university - no bad intentions ) 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