rakarna Posted February 5, 2009 Share Posted February 5, 2009 hi I need some help please with my script. my problem is that i dont know how to get it to restart when it is done. if you know how i can do it please help me i post a screen shot on my script so you can see what i have done and tell me how i can do to chance it so it will restart by it self. i want the all script to restart. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 5, 2009 Moderators Share Posted February 5, 2009 rakarna,If you want the whole script to run forever, put While 1 at the start and WEnd at the end - it will then loop eternally (or until you stop it somehow!)By the way, why not use a For...Next loop in place of the Do...Until . It looks neater - and saves 2 lines of code :-)For $i = 1 To 24 ... NextIf that is not what you meant, please explain more clearly.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
jvanegmond Posted February 5, 2009 Share Posted February 5, 2009 Please just post the code next time, posting a screenshot is just dumb. While ( True )oÝ÷ Ú) Ûiÿø¸ÖاÊr¿ß~7µªc¦â®¶setVæ@ github.com/jvanegmond Link to comment Share on other sites More sharing options...
rakarna Posted February 5, 2009 Author Share Posted February 5, 2009 Please just post the code next time, posting a screenshot is just dumb. ok thanks for the help and to answere your question it that i dont know how to post the script so i postet a screen shot but thanks agen for the help all Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 5, 2009 Moderators Share Posted February 5, 2009 rakarna, Use the tags [ code ] and [ /code ] around your code. Or [ codebox ] and [ /codebox ] if it is very long. You have to remove the spaces between the [] and the text inside - they are there so you can see the example tags! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Manjish Posted February 5, 2009 Share Posted February 5, 2009 (edited) there are many ways to loop ur script.. as mentioned above.. for loop and while (1).. U can also use, the do while loop.. to keep on executing untill cerain condition becomes true.. N still u aren't quite specific on what u want to do.. Please state ur query properly so that we can help u specifically. Edited February 5, 2009 by Manjish [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
rakarna Posted February 5, 2009 Author Share Posted February 5, 2009 hi it is working for me know it doing exactly what i want it do to thanks for the help. ^^ **love this forum** 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