Poon Master 8===D Posted July 1, 2006 Share Posted July 1, 2006 Ok, so i want this script to loop and go on and on and on until i stop it manually. What do i add to the script to make it do that? HotkeySet("{HOME}","_end") Func _end() Exit 0 EndFunc WinMinimizeAll() $var1 = 0 $var2 = 0 $var3 = 0 $var4 = 0 $var5 = 0 Sleep(185.945047534711) Mouseclick("left",329,763,1,3) Sleep(2039.42917511821) Sleep(103.132900035087) Mouseclick("left",607,740,1,3) Sleep(2009.5654595579) Sleep(147.080943008471) Mouseclick("left",804,833,1,3) Exit Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 1, 2006 Moderators Share Posted July 1, 2006 Look at: "Loop Statements" in the help file. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Poon Master 8===D Posted July 1, 2006 Author Share Posted July 1, 2006 cant find it. Can someone just tell me what to put in? I just need the program for this one thing Link to comment Share on other sites More sharing options...
WTS Posted July 1, 2006 Share Posted July 1, 2006 (edited) HotkeySet("{HOME}","_end") Func _end() Exit 0 EndFunc WinMinimizeAll() $var1 = 0 $var2 = 0 $var3 = 0 $var4 = 0 $var5 = 0 Sleep(185.945047534711) Mouseclick("left",329,763,1,3) Sleep(2039.42917511821) Sleep(103.132900035087) Mouseclick("left",607,740,1,3) Sleep(2009.5654595579) Sleep(147.080943008471) Mouseclick("left",804,833,1,3) Exit while 1 ;<keeps script running Sleep(200000) ;<< Easy on CPU wend Edited July 1, 2006 by WTS Link to comment Share on other sites More sharing options...
Simucal Posted July 1, 2006 Share Posted July 1, 2006 (edited) Also, use either [ AutoIt] [ /AutoIt] or [ code] [ /code] tags (without spaces) when posting code. And... topic titles/subtitles like, " Noob problem, easy to anser. Help me, thanks" are really pretty pointless. You dont need to grovel and say you are a noob. You dont need to state it is an easy answer or to ask us to help you. A much more intelligent topic title for your post would have been: "How do I loop my script?" or "Looping troubles" or something similar. This will make your subsequent topics much easier to find for not only the people helping you but for people who are looking up a similar question. We encourage people to exhaust some of the other resources available before posting a question. A simple search on the forums OR in the helpfile (Which is the best helpfile I have ever had for a piece of software) would of yielded you an answer and you would have the added benefit of having solved it yourself . I'm constantly searching the forums, sometimes 10+ pages deep looking for posts people have made about a topic I'm interested in. Welcome to the forums Poon Master *Penis symbol*. - Simucal P.S. - What is with your decimal sleep times? cant find it. Can someone just tell me what to put in? I just need the program for this one thing How can you NOT find it? You open the damn helpfile and type in "Loop Statements". In the effort it took to reply to this post you could of answered your own question. Edited July 1, 2006 by Simucal AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
WTS Posted July 1, 2006 Share Posted July 1, 2006 I agree with simicul! Link to comment Share on other sites More sharing options...
Poon Master 8===D Posted July 1, 2006 Author Share Posted July 1, 2006 (edited) HotkeySet("{HOME}","_end") Func _end() Exit 0 EndFunc WinMinimizeAll() $var1 = 0 $var2 = 0 $var3 = 0 $var4 = 0 $var5 = 0 Sleep(185.945047534711) Mouseclick("left",329,763,1,3) Sleep(2039.42917511821) Sleep(103.132900035087) Mouseclick("left",607,740,1,3) Sleep(2009.5654595579) Sleep(147.080943008471) Mouseclick("left",804,833,1,3) Exit while 1 ;<keeps script running Sleep(200000) ;<< Easy on CPU wend Hmm, this didnt work. And by the way i did type loop statements in the help file, and nothing showed up. I origionally thought you meant a help file "forum" on the site but realized it was the help file with the program. And the reason i put noob problem is to get results in quick, normally i dont do that. Anyways if i could just solve this. I am using this program thing called AutoYou2. But i just want it to go on and on and cant figur it out. Edited July 1, 2006 by Poon Master 8===D Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 1, 2006 Moderators Share Posted July 1, 2006 (edited) Have no idea what AutoYou2 is...A loop is how you refer to a section of script that you repeat a number of times. You might might want to loop a given number of times or you might wish to repeat a section of script as long as a certain condition is true or false. The following loop statements are available in AutoIt: For...Next While...WEnd Do...Until With...Endwith For...In...Next While (no pun intended) all the statements perform similar functions, they are slightly different and one will usually be more appropriate than another for a given situation.Edit since you edited:And No, WTS's example won't work, it loops the sleep(20000) infinately. Edited July 1, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Poon Master 8===D Posted July 1, 2006 Author Share Posted July 1, 2006 (edited) so what does this mean i put in at the end of script? I just want a straight, (put this here in this particular spot) answer. I just need to do this one thing and never will I ask a question again Basically all i want the script do is to loop infinatly. Thats it. Edited July 1, 2006 by Poon Master 8===D Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 1, 2006 Moderators Share Posted July 1, 2006 While 1; = Start of loop ;Script to loop WEnd; = End of loop Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
WTS Posted July 1, 2006 Share Posted July 1, 2006 I must of misunderstood what you ment.. HotkeySet("{HOME}","_end") While 1;<keeps script running WinMinimizeAll() $var1 = 0 $var2 = 0 $var3 = 0 $var4 = 0 $var5 = 0 Sleep(185.945047534711) Mouseclick("left",329,763,1,3) Sleep(2039.42917511821) Sleep(103.132900035087) Mouseclick("left",607,740,1,3) Sleep(2009.5654595579) Sleep(147.080943008471) Mouseclick("left",804,833,1,3) Exit wend Func _end() Exit 0 EndFunc Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 1, 2006 Moderators Share Posted July 1, 2006 I must of misunderstood what you ment.. HotkeySet("{HOME}","_end") While 1;<keeps script running WinMinimizeAll() $var1 = 0 $var2 = 0 $var3 = 0 $var4 = 0 $var5 = 0 Sleep(185.945047534711) Mouseclick("left",329,763,1,3) Sleep(2039.42917511821) Sleep(103.132900035087) Mouseclick("left",607,740,1,3) Sleep(2009.5654595579) Sleep(147.080943008471) Mouseclick("left",804,833,1,3) Exit wend Func _end() Exit 0 EndFuncThat won't work either... Look at the statement before wend Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Simucal Posted July 1, 2006 Share Posted July 1, 2006 (edited) so what does this mean i put in at the end of script? I just want a straight, (put this here in this particular spot) answer. I just need to do this one thing and never will I ask a question again Basically all i want the script do is to loop infinatly. Thats it. Alright, I'm going to hold you to never asking a question again. Also, here are AutoIt CODE TAGS: HotkeySet("{HOME}","_end") Func _end() Exit 0 EndFunc While 1 WinMinimizeAll() $var1 = 0 $var2 = 0 $var3 = 0 $var4 = 0 $var5 = 0 Sleep(185.945047534711) Mouseclick("left",329,763,1,3) Sleep(2039.42917511821) Sleep(103.132900035087) Mouseclick("left",607,740,1,3) Sleep(2009.5654595579) Sleep(147.080943008471) Mouseclick("left",804,833,1,3) WEnd Some things that dont make sense about your script.. you are using decimal numbers in your sleep statments. You do realize it takes miliseconds, right? I cant imagine you needing the precision of a trillonth of a milisecond (I'm not positive, but I'm pretty sure it just takes the integar value anyway). Also, $var1-5 arent being used. I look forward to not hearing from you again Edited July 1, 2006 by Simucal AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) 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