Disable Mouse ???

ALX

Well-known member
Joined
Nov 16, 2005
Messages
253
Location
Columbia, SC
Programming Experience
10+
'Calling all API gurus !!!
I am setting up an Introdution to my app that needs to take control of the mouse. Basically it moves the mouse around the form and clicks on various buttons, labels, etc. to lead the user through some techniques and point out different features of the application. I want to disable the mouse so that I can move the cursor to relevant points on the form and prevent the user from altering the cursor position with the mouse while the Intro is running. I'm currently hijacking the "MouseMove" event and restoring the cursor position with
VB.NET:
 Windows.Forms.Cursor.Current.Position = New System.Drawing.Point(CurPos.X, CurPos.Y)
so if the user tries to move the mouse cursor, it just moves back to where it was previously. I'm thinking that there must be a way to temporarily disable mouse input through a API call or something and avoid the thousands of loops that my current technique uses if the user can't keep his hands off of the mouse.
 
I am setting up an Introdution to my app that needs to take control of the mouse. Basically it moves the mouse around the form and clicks on various buttons, labels, etc. to lead the user through some techniques and point out different features of the application.

I think you are trying to demonstrate the techniques and features of your application to the user. If so, then why don't you make an introductory video demonstrating all this and run this video when the user runs the application for the first time or provide a helplink for this video.
 
I would make a video and include it in your app to show the user instead of taking over their mouse. If I installed software that took over my mouse just to show me a few features, I would be very unhappy about that intrusion.
 
The user has only to press the Escape key to close the Intro & return to normal mouse function, so I didn't feel like it was too much of an inconvenience... however, I like the idea of using a video for this, and that was my plan originally. I opted for the current method as I didn't have a clue about how to create a video for such a purpose. 'Any guidance on that???
 
Last edited:
Back
Top