Jump to content

While...Wend inside a user func


layer
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Developers

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...