17-10-12, 12:40 AM
كاتب الموضوع : AhmedEssawy
هذا هو الكود :كود :
Private Sub Command1_Click()
Dim oWSH As Object, sSndpath As String, sPath As String
Set oWSH = CreateObject("Wscript.Shell")
sSndpath = "C:\Mysound.wav"
sPath = "HKCU\AppEvents\Schemes\Apps\.Default\" & _
"SystemExit\.Current\"
oWSH.RegWrite sPath, sSndpath
End Sub