Sign in to follow this  
Followers 0
layer

While...Wend inside a user func

4 posts in this topic

#1 ·  Posted (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 by layer

FootbaG

Share this post


Link to post
Share on other sites



Ayyyy!!! Sorry guys and gals... I forgot EndSelect! Move along now...


FootbaG

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks. =D


FootbaG

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0