czmaster 0 Posted October 7, 2010 Hello,Is it possible to make the motherboard beep in windows 7 (like in xp with the beep function)?Thanks, Share this post Link to post Share on other sites
trancexx 1,013 Posted October 7, 2010 Yes of course. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
wakillon 403 Posted October 7, 2010 Hello,Is it possible to make the motherboard beep in windows 7 (like in xp with the beep function)?Thanks,Here is a tuto for disable it, if it can help you to do the inverse ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
wakillon 403 Posted October 7, 2010 Yes of course.Cool !I thought the speaker of my pc would remain silent forever !Resucitation you did !Thanks ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Share this post Link to post Share on other sites
czmaster 0 Posted October 8, 2010 Thank you but I use Win7 32bits and I have this error :_opendriver function failed error 1I put porttalk.sys in the same folder.Any idea ? Share this post Link to post Share on other sites
trancexx 1,013 Posted October 8, 2010 Thank you but I use Win7 32bits and I have this error : _opendriver function failed error 1 I put porttalk.sys in the same folder. Any idea ? Yes, all. It's my bad. I haven't anticipated all possible scenarios that could occur when somebody runs the example scripts. If run from within zip or DriverBeep.au3 alone without the driver it would make one step too much and that what you experience would happen. Solution is actually very simple (at least should be). Replace _UnInstallDriver() function from scripts with this function:expandcollapse popupFunc _UnInstallDriver($sDriver) Local $aCall = DllCall("advapi32.dll", "ptr", "OpenSCManager", _ "ptr", 0, _ ; service control manager on the local computer "ptr", 0, _ ; SERVICES_ACTIVE_DATABASE "dword", 0x000F003F) ; SC_MANAGER_ALL_ACCESS If @error Or Not $aCall[0] Then Return SetError(1, 0, 0) EndIf Local $hSCManager = $aCall[0] $aCall = DllCall("advapi32.dll", "ptr", "OpenServiceW", _ "ptr", $hSCManager, _ "wstr", $sDriver, _ "dword", 0x000F01FF) ; SERVICE_ALL_ACCESS If @error Or Not $aCall[0] Then DllCall("advapi32.dll", "ptr", "CloseServiceHandle", "ptr", $hSCManager) Return SetError(2, 0, 0) EndIf Local $hService = $aCall[0] $aCall = DllCall("advapi32.dll", "int", "ControlService", _ "ptr", $hService, _ "dword", 1, _ ; SERVICE_CONTROL_STOP "ptr*", 0) If @error Or Not $aCall[0] Then ;~ DllCall("advapi32.dll", "ptr", "CloseServiceHandle", "ptr", $hService) ;~ DllCall("advapi32.dll", "ptr", "CloseServiceHandle", "ptr", $hSCManager) ;~ Return SetError(3, 0, 0) EndIf $aCall = DllCall("advapi32.dll", "int", "DeleteService", "ptr", $hService) If @error Or Not $aCall[0] Then DllCall("advapi32.dll", "ptr", "CloseServiceHandle", "ptr", $hService) DllCall("advapi32.dll", "ptr", "CloseServiceHandle", "ptr", $hSCManager) Return SetError(4, 0, 0) EndIf DllCall("advapi32.dll", "ptr", "CloseServiceHandle", "ptr", $hService) DllCall("advapi32.dll", "ptr", "CloseServiceHandle", "ptr", $hSCManager) Return 1 EndFunc The only difference is that two commented lines. Works now? Speak person. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
czmaster 0 Posted October 15, 2010 It work fine thank you. Share this post Link to post Share on other sites