CasaCorupta Posted August 8, 2007 Share Posted August 8, 2007 (edited) expandcollapse popup;------------------------------------------------------------------------------- ;------------------------------------------------------------------------------- ; SCRIPT ; LAYOUT GUI GUICreate("Reset Settings",310,150) Opt("GUICoordMode",2) $CAD = GUICtrlCreateMenu ("CAD") $CADNews = GUICtrlCreateMenuitem ("CADNews",$CAD) $CADContact = GUICtrlCreateMenuitem ("CADContact",$CAD) $CADIntranet = GUICtrlCreateMenuitem ("CADIntranet",$CAD) $Text = GuiCtrlCreateLabel($msg_ger & $msg_eng, 15, 10) $helpmenu = GUICtrlCreateMenu ("?") $infoitem = GUICtrlCreateMenuitem ("About",$helpmenu) $Button_1 = GUICtrlCreateButton ("Reset Settings",-250,5,100,20) $Button_2 = GUICtrlCreateButton ( "Cancel",0, -1) GUICtrlCreateLabel ($default_status,-258,8,306,16,BitOr($SS_SIMPLE,$SS_SUNKEN)) GUISetState () ; INHALT GUI While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Button_1 Msgbox(0,"About", $version & @CRLF & @CRLF & $scripter) Case $msg = $Button_2 Exit Case $msg = $infoitem Msgbox(0,"About", $version & @CRLF & @CRLF & $scripter) Case $msg = $CADIntranet $oIE = _IECreate ($CADIntranet_Link) _IELoadWait ($oIE) Case $msg = $CADNews $oIE = _IECreate ($CADNews_Link) _IELoadWait ($oIE) Case $msg = $CADContact $oIE = _IECreate ($CADContact_Link, 0, 0) _IELoadWait ($oIE) _IEQuit ($oIE) EndSelect Wend ; SCRIPT ENDE ;------------------------------------------------------------------------------- ;------------------------------------------------------------------------------- How can i change the veriable $default_status in my script? i want to do it in case when i klick on Button 1... the status bar should change imediatly Thx for your help! Edited August 8, 2007 by CasaCorupta Greets CasaCorupta Link to comment Share on other sites More sharing options...
Zedna Posted August 8, 2007 Share Posted August 8, 2007 $status = GUICtrlCreateLabel ($default_status,-258,8,306,16,BitOr($SS_SIMPLE,$SS_SUNKEN)) ... Case $msg = $Button_1 GUICtrlSetData($status, "here it is!") Msgbox(0,"About", $version & @CRLF & @CRLF & $scripter) ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
CasaCorupta Posted August 8, 2007 Author Share Posted August 8, 2007 THX Zedna! Greets CasaCorupta 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