Jump to content
Sign in to follow this  

lasting/permanent MouseTrap

Recommended Posts



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> 

does anyone have an idea? a link to an existing solution/explanation would be great too!

thx ;)

Edited by bambamfox

Share this post

Link to post
Share on other sites

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")
       Infinity +=1

Func _Deploy mouse weapon($time)
   Piss user off


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post

Link to post
Share on other sites

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

Share this post

Link to post
Share on other sites

oh thank you !!!! it's working - it cannot be tabbed out now!

(ps: it's a program for university - no bad intentions ;) )

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.