ALX
Well-known member
'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
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 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)