- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have some legacy code and sometimes on user input a beep occurs.
This can be annoying for others so I'm trying to remove all beep calls.
The only one I can find is :-
lret=MessageBeep(MB_ICONSTOP)
There must be others as some beeps still occur.
Any suggestions, thanks,
David
This can be annoying for others so I'm trying to remove all beep calls.
The only one I can find is :-
lret=MessageBeep(MB_ICONSTOP)
There must be others as some beeps still occur.
Any suggestions, thanks,
David
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
David,
my guess is a Beep function, that is, Beep (dwFreq, dwDuration)) (boolean type, arguments of type dword)
or BeepQQ run-time subroutine (within DFLib). Latter takes frequency and duration as parameters of type Integer 4.
Artur
my guess is a Beep function, that is, Beep (dwFreq, dwDuration)) (boolean type, arguments of type dword)
or BeepQQ run-time subroutine (within DFLib). Latter takes frequency and duration as parameters of type Integer 4.
Artur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Writing ascii character 7 (BEL) to a console, as in :
write(*,*) char(7)
will cause a beep.
David Jones
write(*,*) char(7)
will cause a beep.
David Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It might be worth going to the Windows Start..settings..Control Panel..Sounds and Multimedia
to see what windows messages have had sounds associated with them (e.g. message boxes with MB_iconexclamation etc)
Try setting all the sounds to 'none' and seeing what happens.
to see what windows messages have had sounds associated with them (e.g. message boxes with MB_iconexclamation etc)
Try setting all the sounds to 'none' and seeing what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another thing that can cause a beep is if you press a key while Windows isn't looking for a keypress. This won't happen in a Console application, but could (I think) happen in a QuickWin and definitely in a Windows application.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for all your suggestions, but none of these seem to cause the beep.
David
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You say that is happens 'sometimes' This suggests to me that the input is being masked for valid keystrokes; if it passes, no beep, and converesly. Windows supplies the beep for free if warranted (well it does so in VC++ and VB so you might want to see if it does likewise in VF).

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page