Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a code that blocks mouse input from the user by hooking mouse events, but I want to be able to move the mouse programmatically, eg. using:
VB
Cursor.Position = New Point(500,500)

The mouse won't move because that event is being hooked. Would I have to disable the mouse itself?
If so, how would I do this?

-Rixterz
Posted
Comments
CHill60 16-Mar-14 16:42pm    
Might sound a bit simplistic but couldn't you just unhook while you're doing that?
[no name] 16-Mar-14 16:52pm    
no. basically, I want to make a trolling program that moves the mouse and scares a person (who I know; no laws broken).
if the person moves the mouse, it's stupid. i'd have to unhook and rehook every millisecond or so if that was the case.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900