Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27512

VS 2010 Disable Mouse Input

$
0
0
Dear Programmers,

I need your help for a complete code that will disable only my mouse input completely. This means I can move or click the mouse buttons and nothing should happen on the computer.

I'm still a child in VB.net and doing practice everyday. I tried searching the net but only Both Keyboard and Mouse are disabled. I need only the Mouse disabled and keyboard running all the time. I've tried days for MouseHook and API, but not much examples on the net. :(

I'm need this code for my simple logic game where I need to click some blocks and based on that the computer will also click his block and I will see the Computer's moves and actions moving the mouse and doing his clicks.

I always need to restart the game sometimes when I move the mouse by accident or mistake.

P.S.
Please don't answer me with another question or disable this button or that or why do this. I just need a simple code to disable mouse inputs. As simple as possible.

requirements:
1 form
1 button
1 label
1 timer

Button1 clicked = Timer1 ON/ Mouse Disabled/ Label1.text="Mouse Disabled"

if Timer1.stop = Mouse Enabled/ Label1.text="Mouse Enabled"

thank you.

Viewing all articles
Browse latest Browse all 27512

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>