Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

sorry my English is not so good. I am a hobby programmer and am writing a program that puts an in-game overlay on a game.

About my problem. I would like in the NVidia IN Game Overlay, prevent mouse input for the game as long as the overlay is active in an Fullscreen Game. But I don't know how I can do it. I use VB.Net or C Sharp. There is definitely an API that can be used to switch the mouse input for a process on and off.

Can anyone help me further?


What I have tried:

Ich habe Versucht 

Bockinput
Handling Windows Messages 
Global Mouse Hooks
Posted
Updated 20-Jan-20 10:12am
Comments
Rick York 21-Jan-20 10:50am    
Have a look at my revised solution.

1 solution

It involves "capturing" the mouse so the API function is SetCapture. Have a look at this for more information: Mouse Movement - Win32 apps | Microsoft Docs[^]

I see you have edited your question. I recommend that you search for the things you "have tried." If capturing the mouse is not what you want then try a global hook for mouse input. There are lots of articles on the topic here and you can type that into the search box as easily as I can.
 
Share this answer
 
v2
Comments
Member 14380227 20-Jan-20 16:31pm    
Thanks you, i think have descibes it wrog

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