myxomatosii Posted February 26, 2009 Share Posted February 26, 2009 (edited) Hey guys, if you'd like to help me, run this script and watch what it does, I want to make the next button take me to another GUI which I am about to create after I post this subject.. just not sure the best way to do the transition. No need for code, just advice and I can figure out the code myself, thanks! Code and code examples are of course welcome, but mostly I need concepts Also is having a long line like that for variable declaration normal? Is there a more efficient way of doing that? Actually if I'm doing anything inefficiently please point it out dim $nl, $nl2, $nl3, $nl4, $nl5,$nl6, $info1, $info2, $info3, $info4,$info5,$info6 Func cityinput() GuiCreate("Ikariam City ID's.", 350, 200) GuiSetState(@SW_Show) GuiCtrlCreateLabel("Input City1 ID Here",20,10) $info1=GUICtrlCreateInput($nl,20,30,100,20) GuiCtrlCreateLabel("Input City2 ID Here",20,60) $info2=GUICtrlCreateInput($nl2,20,80,100,20) GuiCtrlCreateLabel("Input City3 ID Here",125,10) $info3=GuiCtrlCreateInput($nl3,125,30,100,20) GUICtrlCreateLabel("Input City4 ID Here",125,60) $info4=GuiCtrlCreateInput($nl4,125,80,100,20) GuiCtrlCreateLabel("Input City5 ID Here",230,10) $info5=GuiCtrlCreateInput($nl5,230,30) GuiCtrlCreateLabel("Input City6 ID Here",230,60) $info6=GUICtrlCreateInput($nl6,230,80) $button1=GuiCtrlCreateButton("Next", 280,170,60,20) While 1 Local $msg=GUIGetMsg() Select Case $msg=$button1 ExitLoop EndSelect WEnd ;MsgBox(0,"test",GuiCtrlRead($info1) & GuiCtrlRead($info2) & GUICtrlRead($info3) & GuiCtrlRead($info4),0) EndFunc cityinput() Edited February 26, 2009 by myxomatosii Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now