czmaster Posted October 7, 2010 Share Posted October 7, 2010 Hello,Is it possible to make the motherboard beep in windows 7 (like in xp with the beep function)?Thanks, Link to comment Share on other sites More sharing options...
trancexx Posted October 7, 2010 Share Posted October 7, 2010 Yes of course. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
wakillon Posted October 7, 2010 Share 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 Link to comment Share on other sites More sharing options...
wakillon Posted October 7, 2010 Share 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 Link to comment Share on other sites More sharing options...
czmaster Posted October 8, 2010 Author Share 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 ? Link to comment Share on other sites More sharing options...
trancexx Posted October 8, 2010 Share 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 Link to comment Share on other sites More sharing options...
czmaster Posted October 15, 2010 Author Share Posted October 15, 2010 It work fine thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now