theguy0000 Posted August 20, 2005 Share Posted August 20, 2005 (edited) expandcollapse popup#include <GUIConstants.au3> GUICreate("---------------") GUISetFont(9, 300) $tab=GUICtrlCreateTab (1,1, 400,400) $tab0=GUICtrlCreateTabitem ("---------------") GUICtrlSetState(-1,$GUI_SHOW) ; will be display first $modName=GUICtrlCreateInput ( "", 85, 25, 100, 21) $modNameLabel=GUICtrlCreateLabel ("MOD name: ", 10, 30, 100) $tab1=GUICtrlCreateTabitem ( "-----------") $tab2=GUICtrlCreateTabitem ("l------------") GUICtrlCreateTabitem ("") ; end tabitem definition $update=GUICtrlCreateButton ("UPDATE!", 190,350) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $update Then Call( "update" ) If $msg = $GUI_EVENT_CLOSE Then $close = MsgBox(100, "Quit?", "Are you sure you want to close?") If $close = 6 Then ExitLoop ElseIf $close = 7 Then Sleep ( "1" ) EndIf WEnd Error: "WEnd" statement with no matching "While" statement. ----------- how can i fix this? thanks! Edited August 20, 2005 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
LxP Posted August 20, 2005 Share Posted August 20, 2005 Replace the While..WEnd loop above with this one:While 1 $msg = GUIGetMsg() If $msg = $update Then Call( "update" ) If $msg = $GUI_EVENT_CLOSE Then $close = MsgBox(100, "Quit?", "Are you sure you want to close?") If $close = 6 Then ExitLoop EndIf WEnd Link to comment Share on other sites More sharing options...
theguy0000 Posted August 20, 2005 Author Share Posted August 20, 2005 great, thanks! The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN 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