What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » keybd_event(): stop beeps

keybd_event(): stop beeps
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. keybd_event(): stop beeps
code:
keybd_event(VK_CONTROL, 0, 0, NULL);
keybd_event(0x41, 0, 0, NULL);
keybd_event(0x41, 0, KEYEVENTF_KEYUP, NULL);
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, NULL);
keybd_event(VK_DELETE, 0, 0, NULL);
keybd_event(VK_DELETE, 0, KEYEVENTF_KEYUP, NULL);
will beep if there's nothing to delete i.e. when the Input area is empty. Any way to stop it beeping?

This post was edited on 03-30-2006 at 01:10 AM by RaceProUK.
[Image: spartaafk.png]
03-30-2006 01:09 AM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: keybd_event(): stop beeps
I see you are sending Ctrl+A to make it select all and then use delete to clear the text...

How about Ctrl+Home => Ctrl+Shift+End => Delete ? or Ctrl+End => Ctrl+Shift+Home => Delete ?

(I use Ctrl+ in case you're talking about a multi-line edit box)

This post was edited on 03-30-2006 at 04:43 AM by Mnjul.
03-30-2006 04:39 AM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
O.P. RE: keybd_event(): stop beeps
Won't that just beep if there's nothing there anyway?

Anyway, never mind: I thought of something just now. If I send a single space before the Ctrl+A->Del, it won't beep unless the input area is full, which is far less likely than empty :DOr remove the Delete press.

This post was edited on 04-06-2006 at 06:19 PM by RaceProUK.
[Image: spartaafk.png]
03-30-2006 11:36 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On