n9mfk9 Posted November 8, 2006 Share Posted November 8, 2006 Hi all I have made this gui an tested the regwtie but it dos not work in the gui what did i miss ; sound cards are Realtek AC97 Audio or iMic USB audio system #region --- GuiBuilder code Start --- ; Script generated by AutoBuilder 0.6 Prototype $Record = " " $Playback = " " #include <GuiConstants.au3> GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $Button_1 = GuiCtrlCreateButton("IMIC", 50, 40, 60, 20) $Button_2 = GuiCtrlCreateButton("AC97", 130, 40, 60, 20) $Button_3 = GuiCtrlCreateButton("IMIC/AC97", 50, 70, 60, 20) $Button_4 = GuiCtrlCreateButton("AC97/IMIC", 130, 70, 60, 20) $Button_5 = GuiCtrlCreateButton("INPUT", 50, 100, 60, 20) $Button_6 = GuiCtrlCreateButton("OUTPUT", 130, 100, 60, 20) GuiSetState() While 1 $msg = GuiGetMsg() Select ;Check if user clicked on the close button Case $msg = $GUI_EVENT_CLOSE ;Destroy the GUI including the controls GUIDelete() ;Exit the script Exit Case $msg= $Button_2 $Playback= "Realtek AC97 Audio" And $Record= "Realtek AC97 Audio" EndSelect RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper", "Playback", "REG_SZ",$Playback) RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper", "Record", "REG_SZ",$Record) WEnd Exit #endregion --- GuiBuilder generated code End --- thanks beau Link to comment Share on other sites More sharing options...
rbhkamal Posted November 8, 2006 Share Posted November 8, 2006 You can't do this: $Playback= "Realtek AC97 Audio" And $Record= "Realtek AC97 Audio" I hope that helps. RK "When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix 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