473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

cancelling a specific keypress

HaLo2FrEeEk
404 256MB
I have an application that will capture all keypresses on the machine while the program is running. I have a problem with my fiancee using my computer and muting it, then leaving it muted when she finishes. Once or twice was ok, it happens every day though and I've told her to stop and she doesn't, so I'm writing an application.

Basically what I want to happen is when she presses the mute button on the keyboard, it'll pop up a messagebox telling her not to do that, then will automatically unmute the speakers. I can get it to capture the Keys.VolumeMute button and display the messaebox, but I can NOT get it to unmute the speakers. I've tried looking for volume controls, using sendkeys, I just can't figure it out. Can anyone help me?
Jun 18 '10 #1
5 1701
GaryTexmo
1,501 Expert 1GB
I don't know the answer but your story is so awesome I'm going to try to find some time this weekend to play around and see if I can come up with anything helpful :)

Stop-gap measure, put tape over the mute button?
Jun 19 '10 #2
ThatThatGuy
449 Expert 256MB
@HaLo2FrEeEk
Create a different login for your fiancee...
Jun 19 '10 #3
HaLo2FrEeEk
404 256MB
@ThatThatGuy
That wouldn't help, she's not the most knowledgeable person when it comes to computers, and as simple as it is, I'm sure she'd manage to log out of my account instead of simply switching accounts, which would keep my stuff running still. Even when I leave my computer I keep a lot of windows open from things that I was working on, and I don't want them closed so when I come back I can remember to go back to those projects. If she logged off my account it would close those windows. I'm doing this as sort of a scare tactic, she presses the mute button and my computer silently sends me an email with the time it happened, then I text message her and tell her to unmute it...how did I know?! She'll freak out and stop muting the computer.
Jun 21 '10 #4
GaryTexmo
1,501 Expert 1GB
Haha, this thread is awesome :D

I'm very much reminded of http://www.plasma2002.com/blenderdefender/

My hat of you to, sir!
Jun 21 '10 #5
@GaryTexmo
Gary,

re: blender defender LMFAO !!!11 I hope HaLo2FrEeEk comes up with something fun. A familiar dialog box often gets ignored. Maybe, after x number of times, a shocking scary face appears on screen with a scream. ;-)

UDT
Jun 21 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Trevor Fairchild | last post by:
I'm writing a program that is designed for quick navigation using specific buttons on the keyboard. In doing this, I have added a KeyPress event for every control on the form to intercept the key...
1
by: Paul THompson | last post by:
I have been working for some time to 1) detect tab and shift tab events 2) control the focus on the basis of these events. I have found that I can do this, but continue to have nagging problems. ...
3
by: mgw | last post by:
Hi, I'm trying to cancel the Shift+F3 key combination in Netscape 7.2 from performing the F3 key's default action of opening the Find dialog. I'm unable thus far to prevent the Find dialog from...
4
by: owen | last post by:
I have an <input> box and i want to disable the apostrophe ( ' ) key, so when you press it, no character appears in the input box. All other keys should work ok. I can trap the keypress event...
8
by: bissatch | last post by:
Hi, I have a text box where the user enters their employee email address. What I want to occur is when the @ sign is pressed it will automatically add the rest (ie. mycompany.com) I know the...
7
by: Alex007 | last post by:
Hi, I've been working on this C assignement for a CS course.... the assignement is going pretty well and all my code works well on both Windows and Linux. The only thing that doesn't work is...
0
by: Wiktor Zychla | last post by:
in my application I sometimes use KeyPress event. in the event handler I have to check the char the user is trying to type. in NTs everything is correct. however on W98 I've noticed that the...
3
by: Just Me | last post by:
I noticed that I don't get KeyDown nor KetPress events if NumLock is not on. I can probably find a workaround but it would be nice to know what the rules are. Can anyone tell me when KeyPress...
3
by: birarai | last post by:
How do i get the 'keypress' event to capture only the 'enter' key event? The 'keypress' event captures all key press events. input.addEventListener('keypress', sendButtonPressed, true); ...
4
by: Jeff | last post by:
....still new at this. ...hopefully a simple question Is there some practical way of altering the function of a keypress in Visual Web.net 2005 using VB without causing a postback on each...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.