473,503 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable User Input

Hi

How can I disable all user input? I would like to fully ignore all keyboard
and mousevents.

Is their a disabletaskwindows available or something likewise?

kind regards

Alexander
Nov 16 '05 #1
4 3533
Well - you should be able to do a system-level hook - but doing this from
..NET may involve some nasty P-Invoking

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"Alexander Muylaert" <Re********@pandora.be> wrote in message
news:OL**************@TK2MSFTNGP14.phx.gbl...
Hi

How can I disable all user input? I would like to fully ignore all
keyboard and mousevents.

Is their a disabletaskwindows available or something likewise?

kind regards

Alexander

Nov 16 '05 #2
Sriram Krishnan wrote:
Well - you should be able to do a system-level hook - but doing this from
.NET may involve some nasty P-Invoking


Why would you want to do this ? Why do you want to lock up windows
completely apart from your application ?

Would you like to buy an application which locks up your windows desktop
whilst it did something ? Probably not.

Please explain further.

Darwen.
Nov 16 '05 #3
No man

I don't to disable Windows, I wan't to disable user input in my app for a
while.

I would lke to write a loop like

while MsgWaitForMultipleObjects(yaya, QS_ALLINPUT) {
while peek {
if (Msg != Keyboard) and (Msg != Mouse) then Dispatch.
}
}

I know the WaitHandle.WaitAny allows a message to fall through, but I'm not
sure if it blocks input messages.

I would like to be able to handle all timer, messages while waiting for an
event.

kind regards
Nov 16 '05 #4
No - not lock up Windows completely. With system level hooking you can
choose which messages get through and which dont - so the original poster
can disable user input like he wants to

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"David McClarnon" <dm********@ntlworld.com> wrote in message
news:Vh***************@newsfe1-gui.ntli.net...
Sriram Krishnan wrote:
Well - you should be able to do a system-level hook - but doing this from
.NET may involve some nasty P-Invoking


Why would you want to do this ? Why do you want to lock up windows
completely apart from your application ?

Would you like to buy an application which locks up your windows desktop
whilst it did something ? Probably not.

Please explain further.

Darwen.

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2217
by: jwsacksteder | last post by:
I want to have a check box that can optionally disable a text input field in the same dialog. I am asking the user to input the start and end of a range and there needs to be a check box to select...
2
9723
by: HolaGoogle | last post by:
Hi all, Can you please tell me what's wrong with my code??? i do have this database in wich i have to field.One is a "yes/no" field and another one is "number" field. To display the yes/no field...
2
6416
by: HolaGoogle | last post by:
Can you please tell me the right way to do this?? it's realy important! thanks in advance... Hi all, Can you please tell me what's wrong with my code??? i do have this database in wich i have...
1
5555
by: Lisa | last post by:
I need to apply the HTML formatting tags and the French accented characters in a XML document. The XML is generated from a database that has HTML tags and French accented characters in the records....
4
56644
by: KS | last post by:
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once. Sometimes it takes a while before the next page loads so some user will try...
12
8856
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
0
1107
by: dotnetkumar | last post by:
hi everybody, i am currently working with multipage and tabstrip controls. i want to disable the multipage and the controls inside it unless the user wants it to enable it. multipage.enable...
2
5603
by: khng | last post by:
How to disable the copy/drag event for some selected textfield as I want the user to key in instead of copy or drag the required information. For IE, I done it with the onPaste and onDragEnter...
9
10269
by: surf_doggie | last post by:
Im not sure if this is the group to post in, if anyone knows a more appropriate one please let me know. Please consider the following example of a feature most all browsers have that I would...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.