kkd1 0 Posted September 26, 2004 Share Posted September 26, 2004 What happend to the autoIt2's While/wend commands? I need them... heres my script... MsgBox, 0, Computer, You have activated the computer and your hours will be logged. FileAppend, LOGGEDON, C:\WINDOWS\System32\appendix\filemnger.dat While 1 sleep, 1800000;Sleep for half an hour FileAppend, \n, C:\WINDOWS\System32\appendix\filemnger.dat Wend While 2 Sleep, 3600000; Sleep for 1 hour MsgBox, 0, Computer, You have currently used an hour of your credits. If you wish to keep some hours then log out now. Wend I have the latest autoIt and I need some one to change my code a bit... Just so it can run as a normal autoit with out errors... Thanks for your help... in advance Please get back to me asap Doctors are EVIL!I'll host you your own autoIT script site... If you really want... Email me. SE@gfun.ahazhosting.com and sign up to my website... http://g-institute.r8.org Link to post Share on other sites
kkd1 0 Posted September 26, 2004 Author Share Posted September 26, 2004 (edited) ok ok... I found the answer out... You see... In the old autoIT2 it used while and wend in the new autoIt3 it uses Repeat, 0-** and repeat end. my old code that I posted is above... the new code is MsgBox, 48, Computer, You have started using your hours as of now. FileAppend, \nLOGGEDON, filemnger.dat Repeat, 0 sleep, 1800000;Sleep for half an hour FileAppend, \n, filemnger.dat EndRepeat Repeat, 0 Sleep, 3600000; Sleep for 1 hour MsgBox, 0, Computer, You have currently used an hour of your credits. If you wish to keep some hours then log out now. EndRepeat Now all I want to do is have it Append to a file in a diffrent direcotry (C:\WINDOWS\system32\appendix\filemnger.dat) If any one can help me out on that one... I would be very happy. I hope that you people will not make the same stupid mistake I did. Thank you, Edited September 26, 2004 by kkd1 Doctors are EVIL!I'll host you your own autoIT script site... If you really want... Email me. SE@gfun.ahazhosting.com and sign up to my website... http://g-institute.r8.org Link to post Share on other sites
this-is-me 7 Posted September 26, 2004 Share Posted September 26, 2004 (edited) If you are using version 2 of autoit, this post should not be here, it should be in the v2 forum. If you are using v3, then !!THIS SHOULD NOT HAVE BEEN POSTED HERE!! It should be in the v3 support forum. If both, then you have 2 strikes out already. If you haven't read the help file, then that's 3 strikes. No help from me. Speaking of stupid mistakes... hmm... Edited September 26, 2004 by this-is-me Who else would I be? Link to post Share on other sites
Guest Guidosoft Posted September 26, 2004 Share Posted September 26, 2004 If you are using version 2 of autoit, this post should not be here, it should be in the v2 forum. If you are using v3, then !!THIS SHOULD NOT HAVE BEEN POSTED HERE!! It should be in the v3 support forum. If both, then you have 2 strikes out already. If you haven't read the help file, then that's 3 strikes. No help from me. Speaking of stupid mistakes... hmm... <{POST_SNAPBACK}>What he said. THIS IS NOT A GENERAL SUPPORT FORUM!!!!!!!!!!!!! I GET SO ANNOYED WHEN PEOPLE PUT QUESTIONS AS TOPICS IN THE SCRIPTS AND SCRAPS FORUM. Link to post Share on other sites
Guest BL@(K-R34P3R Posted September 26, 2004 Share Posted September 26, 2004 Hmmm... So much flaming! Oh well, I'll just go with the flow... Flame on you! You should be aflamed of yourself! -Tired and bored... zzz Link to post Share on other sites
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