Jump to content
Sign in to follow this  

what did i miss ?

Recommended Posts

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)

While 1
    $msg = GuiGetMsg()
;Check if user clicked on the close button
      Case $msg = $GUI_EVENT_CLOSE
      ;Destroy the GUI including the controls
      ;Exit the script
    Case $msg= $Button_2
            $Playback= "Realtek AC97 Audio" And $Record= "Realtek AC97 Audio"

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)

#endregion --- GuiBuilder generated code End ---

thanks beau

Share this post

Link to post
Share on other sites

You can't do this:

$Playback= "Realtek AC97 Audio" And $Record= "Realtek AC97 Audio"

I hope that helps.


"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...