AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Turn off the beeping

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
quatermass



Joined: 14 Dec 2005
Posts: 136

PostPosted: Mon Oct 06, 2008 10:36 am    Post subject: Turn off the beeping Reply with quote

hehe, everytime I use "msgbox" it makes the PC beep. Evil or Very Mad

I can turn off the overall Beep driver. But I'd rather not as a Server that beeps is cause for alarm.

I use msgbox to pop up debugging messages when I'm testing a script on the server and this is making us IT staff here 'twitchy' as you can imagine.

So is there a way to make msgbox not beep?

Can this be added to AHK as a line I add to scripts as an option?

Question Question Question
_________________
Stuart Halliday
Back to top
View user's profile Send private message
BoBo²
Guest





PostPosted: Mon Oct 06, 2008 11:42 am    Post subject: Reply with quote

What about to assign a virtual sound to the 'alert' in Control Panels Sound options?
Back to top
quatermass



Joined: 14 Dec 2005
Posts: 136

PostPosted: Mon Oct 06, 2008 11:58 am    Post subject: Reply with quote

BoBo² wrote:
What about to assign a virtual sound to the 'alert' in Control Panels Sound options?


Server doesn't have a sound card in it.....

Laughing
_________________
Stuart Halliday
Back to top
View user's profile Send private message
BoBo²
Guest





PostPosted: Mon Oct 06, 2008 12:45 pm    Post subject: Reply with quote

Quote:
hehe, everytime I use "msgbox" it makes the PC beep.
What about not to use it?

Code:
ToolTip, %MyDebugMessage%
 .
 .
 .


!z::ToolTip ; press ALT+Z as an OK-Button equivalent
Back to top
Serenity



Joined: 07 Nov 2004
Posts: 1276

PostPosted: Mon Oct 06, 2008 1:16 pm    Post subject: Reply with quote

You could turn it off with SPI_SETBEEP.

Untested (I don't have speaker installed):

Code:
Msgbox % SPI_SETBEEP(0)

SPI_SETBEEP(state)
{
   SPI_SETBEEP := 0x2
   DllCall( "SystemParametersInfo", UInt,SPI_SETBEEP, UInt,state, UInt,0, UInt,0 )
   Return Errorlevel
}

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Wicked



Joined: 07 Jun 2008
Posts: 72

PostPosted: Mon Oct 06, 2008 3:59 pm    Post subject: Reply with quote

Can't you just turn down the PC volume? -.-
Back to top
View user's profile Send private message
tidbit



Joined: 09 Mar 2008
Posts: 187

PostPosted: Mon Oct 06, 2008 4:07 pm    Post subject: Reply with quote

nope, system beeps are internal. From the "pc speaker".
_________________
rawr. be very affraid

Note: My name is all lowercase for a reason.
Back to top
View user's profile Send private message
Wicked



Joined: 07 Jun 2008
Posts: 72

PostPosted: Mon Oct 06, 2008 5:11 pm    Post subject: Reply with quote

I know, but I thought you could turn that down with a volume control >.< Sry
Back to top
View user's profile Send private message
Chavez



Joined: 20 Aug 2008
Posts: 153

PostPosted: Tue Oct 07, 2008 8:44 am    Post subject: Reply with quote

You can only mute it. Maybe you can mute the Main sound channel for 200ms when the msgbox appears.
_________________
-Chavez.
Back to top
View user's profile Send private message MSN Messenger
poo_noo



Joined: 08 Dec 2006
Posts: 137
Location: Sydney Australia

PostPosted: Tue Oct 07, 2008 10:41 am    Post subject: Reply with quote

Code:
; append application startup details to status.log file

FileAppend, `n%A_now% AutoHotKey application started, %pickup_dir%\cba_bts_status.log
logballoon:
TrayTip, Log file created,%pickup_dir%\cba_bts_status.log created`npickup_dir = %pickup_dir%`nsent_dir = %sent_dir%`ninstall_dir = %install_dir%`n, 10, 1
WinGet, hWnd, ID, ahk_class tooltips_class32
SendMessage, 1043, 0xFF0000, 0,, ahk_id %hWnd% ;1043=TTM_SETTIPBKCOLOR
SendMessage, 1044, 0xFFFFFF, 0,, ahk_id %hWnd% ;1044=TTM_SETTIPTEXTCOLOR
Sleep, 3000
TrayTip


Maybe you could use tray notification balloons and fileappend to a log file for debug purposes..... works for me
_________________
Paul O
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group