Shoutbox

keybd_event(): stop beeps - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: keybd_event(): stop beeps (/showthread.php?tid=57638)

keybd_event(): stop beeps by RaceProUK on 03-30-2006 at 01:09 AM

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?
RE: keybd_event(): stop beeps by Mnjul on 03-30-2006 at 04:39 AM

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)


RE: keybd_event(): stop beeps by RaceProUK on 03-30-2006 at 11:36 AM

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.