Jump to content

lasting/permanent MouseTrap


 Share

Recommended Posts

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 by bambamfox
Link to comment
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")
       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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...