layer Posted November 21, 2004 Share Posted November 21, 2004 (edited) How do i make a While...Wend loop inside of a user defined func? Heres some code to give you an idea of what i want... Func FakeSN () GUICreate ("Fake Screename", 300, 300) GUISetState (@SW_SHOW) $i= GUICtrlCreateInput ("", 10, 5) $l= GUICtrlCreateLabel ("Enter the users screename you want to send the fake sn to:", 20, 10) $i2= GUICtrlCreateInput ("", 100, 100) $l2= GUICtrlCreateLabel ("Enter the fake screename you would like:", 90, 90) $i3= GUICtrlCreateInput ("", 200, 200) $l3= GUICtrlCreateLabel ("Enter the message for the fake sn:", 190, 190) While 1 $get= GUIGetMsg () Select Case $get= $GUI_EVENT_CLOSE Exit WEnd EndFunc Please no flames...Just came here for some support, not to be yelled at for the way I code. EDIT: I know that inside the loop theres nothing for the buttons if they're pressed, that's because I'm only testing... Edited November 21, 2004 by layer FootbaG Link to comment Share on other sites More sharing options...
layer Posted November 21, 2004 Author Share Posted November 21, 2004 Ayyyy!!! Sorry guys and gals... I forgot EndSelect! Move along now... FootbaG Link to comment Share on other sites More sharing options...
Developers Jos Posted November 22, 2004 Developers Share Posted November 22, 2004 (edited) Ayyyy!!! Sorry guys and gals... I forgot EndSelect! Move along now...<{POST_SNAPBACK}>Just a suggestion: Run Tidy (Ctrl+9 in SciTE) on your script to properly format it and it will show/tell you these kind of errors.... Edited November 22, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
layer Posted November 22, 2004 Author Share Posted November 22, 2004 Thanks. =D FootbaG 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