n9mfk9 Posted November 10, 2006 Share Posted November 10, 2006 (edited) Hi all i have this gui I would like to put some kind of box in a gui to put the data from a regread i like some that looks like a group box thanks for any ideas expandcollapse popup#include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=c:\documents and settings\beau thompson\my documents\agui.kxf $agui = GUICreate("audio slect", 171, 264, 310, 210) $Button1 = GUICtrlCreateButton("IMIC", 24, 16, 57, 25, 0) $Button2 = GUICtrlCreateButton("AC97", 96, 16, 57, 25, BitOR($BS_CENTER,$WS_GROUP)) $Button3 = GUICtrlCreateButton("IMIC/AC97", 23, 45, 57, 25, 0) $Button4 = GUICtrlCreateButton("A97/IMIC", 95, 45, 57, 25, BitOR($BS_CENTER,$WS_GROUP)) $Button5 = GUICtrlCreateButton("OUTPUT", 24, 72, 57, 25, 0) $Button6 = GUICtrlCreateButton("INPUT", 96, 72, 57, 25, BitOR($BS_CENTER,$WS_GROUP)) $Button7 = GUICtrlCreateButton("AButton1", 23, 100, 57, 25, 0) $Button8 = GUICtrlCreateButton("AButton1", 95, 100, 57, 25, BitOR($BS_CENTER,$WS_GROUP)) $Group1 = GUICtrlCreateGroup("", 16, 144, 129, 41) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $agui Case $agui Case $agui Case $agui Case $Button1 $Playback = "iMic USB audio system" $Record = "iMic USB audio system" 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) Case $Button2 $Playback = "Realtek AC97 Audio" $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) Case $Button3 $Playback = "iMic USB audio system" $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) Case $Button4 $Playback = "Realtek AC97 Audio" $Record = "iMic USB audio system" 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) Case $Button5 Run("C:\WINDOWS\system32\sndvol32.exe") Case $Button6 Run("C:\WINDOWS\system32\sndvol32.exe -R") Case $Button7 $Card1= RegRead("HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper", "Playback") $card2= RegRead("HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper", "Record") MsgBox(0,"test", 'Playback:'&$Card1&&$card2") Case $Button8 EndSwitch WEnd i like playbak: then record: thank beau Edited November 12, 2006 by n9mfk9 Link to comment Share on other sites More sharing options...
Bench Posted November 11, 2006 Share Posted November 11, 2006 Try to use GUICtrlCreateGroup [right]Software is like sex - it's better when it's free. (Linus Torvalds)[/right] 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