Markir Posted March 3, 2005 Share Posted March 3, 2005 Hello, a short question: If somebody choose Exchange 2000, then come a messagebox with the value of the regkey, but i want to have, that the program write it into THE field "$input31 = GUICtrlCreateInput($file31, 100, 0, 120)", but it doesn't worked. I have read in the online help, but no chance. Can somebody help me? GUICtrlCreateLabel("Mail Server", 10, 25, 100, 20) $input30 = GUICtrlCreateCombo("", 100, 0, 120,80,$CBS_DROPDOWNLIST) GUICtrlSetData(-1, " |Exchange 5.5|Exchange 2000|Exchange2003|Lotus Notes 5|Lotus Notes 6|Lotus Notes 6.5", $file30) GUICtrlCreateLabel("Name Mail-Server", -100, 25, 100, 20) $input31 = GUICtrlCreateInput($file31, 100, 0, 120) SetState($file30) GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $input30 Then SetState(GUICtrlRead($input30)) EndIf WEnd Func SetState($selected) If $selected = ("Exchange 2000") Then $var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\PP-COM\MRS\ExchAPL","Exchange Server") Msgbox(0,"",$var) EndIf EndFunc Link to comment Share on other sites More sharing options...
CyberSlug Posted March 3, 2005 Share Posted March 3, 2005 ReplaceMsgbox(0,"",$var)withGUICtrlSetData($input31, $var)Is that what you want? Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Markir Posted March 3, 2005 Author Share Posted March 3, 2005 Thank you for your fast help. I don't found the function "GUICtrlSetData". That is what I want. 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