| View previous topic :: View next topic |
| Author |
Message |
quatermass
Joined: 14 Dec 2005 Posts: 136
|
Posted: Mon Oct 06, 2008 10:36 am Post subject: Turn off the beeping |
|
|
hehe, everytime I use "msgbox" it makes the PC beep.
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?
 _________________ Stuart Halliday |
|
| Back to top |
|
 |
BoBo² Guest
|
Posted: Mon Oct 06, 2008 11:42 am Post subject: |
|
|
| 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
|
Posted: Mon Oct 06, 2008 11:58 am Post subject: |
|
|
| 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.....
 _________________ Stuart Halliday |
|
| Back to top |
|
 |
BoBo² Guest
|
Posted: Mon Oct 06, 2008 12:45 pm Post subject: |
|
|
| 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
|
Posted: Mon Oct 06, 2008 1:16 pm Post subject: |
|
|
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 |
|
 |
Wicked
Joined: 07 Jun 2008 Posts: 72
|
Posted: Mon Oct 06, 2008 3:59 pm Post subject: |
|
|
| Can't you just turn down the PC volume? -.- |
|
| Back to top |
|
 |
tidbit
Joined: 09 Mar 2008 Posts: 187
|
Posted: Mon Oct 06, 2008 4:07 pm Post subject: |
|
|
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 |
|
 |
Wicked
Joined: 07 Jun 2008 Posts: 72
|
Posted: Mon Oct 06, 2008 5:11 pm Post subject: |
|
|
| I know, but I thought you could turn that down with a volume control >.< Sry |
|
| Back to top |
|
 |
Chavez
Joined: 20 Aug 2008 Posts: 153
|
Posted: Tue Oct 07, 2008 8:44 am Post subject: |
|
|
You can only mute it. Maybe you can mute the Main sound channel for 200ms when the msgbox appears. _________________ -Chavez. |
|
| Back to top |
|
 |
poo_noo
Joined: 08 Dec 2006 Posts: 137 Location: Sydney Australia
|
Posted: Tue Oct 07, 2008 10:41 am Post subject: |
|
|
| 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 |
|
 |
|