critan Posted July 14, 2009 Posted July 14, 2009 I need help, How can i Run this code, Run("STEALTH_MINER.exe") [,"C:\Documents and Settings\HP_Owner.computer2\My Documents\Downloads\STEALTH_MINER_FOLDER"]) Sleep (318000) in a constant loop, any help would be much appreciated
Mat Posted July 14, 2009 Posted July 14, 2009 (edited) I need help, How can i Run this code, Run("STEALTH_MINER.exe") [,"C:\Documents and Settings\HP_Owner.computer2\My Documents\Downloads\STEALTH_MINER_FOLDER"]) Sleep (318000) in a constant loop, any help would be much appreciated read the helpfile? paying attention to the While loop part, and reading up about what happens if the value after the while is non-zero. MDiesel Edit: whilst you are in the helpfile, check the syntax for your code... Or run it... Edited July 14, 2009 by mdiesel AutoIt Project Listing
critan Posted July 14, 2009 Author Posted July 14, 2009 read the helpfile? paying attention to the While loop part, and reading up about what happens if the value after the while is non-zero.MDieselI have tried to do a while/WEnd loop it just dont work it comes up with an while^ Error
Mat Posted July 14, 2009 Posted July 14, 2009 I have tried to do a while/WEnd loop it just dont work it comes up with an while^ Error yer? well why didn't you say so! have you got some code for us to fix? no? well here you go: While 1 If MsgBox (4, "Loop test", "Currently in a never ending loop! exit?") = 6 Then Exit WEnd Thats all there is to it. MDiesel AutoIt Project Listing
Developers Jos Posted July 14, 2009 Developers Posted July 14, 2009 I have tried to do a while/WEnd loop it just dont work it comes up with an while^ ErrorWhat does the code you used looks like? ... and the error tells you what? 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.
critan Posted July 14, 2009 Author Posted July 14, 2009 (edited) This is the code im using While 1 Run("STEALTH_MINER.exe") [,"C:\Documents and Settings\HP_Owner.computer2\My Documents\Downloads\STEALTH_MINER_FOLDER"]) Sleep (318000) WEnd this is the error when i run it Line -1: Error:Illegal text at the end of statement(one statement per line) what im assuming is that the sleep is interfering with the loop i think but i need it to sleep for that amount of sec then start up again Edited July 14, 2009 by critan
DYONISII Posted July 14, 2009 Posted July 14, 2009 (edited) how about this one: Run("STEALTH_MINER.exe","C:\Documents and Settings\HP_Owner.computer2\My Documents\Downloads\STEALTH_MINER_FOLDER") Edited July 14, 2009 by DYONISII http://dev.dyonisii.com/
Developers Jos Posted July 14, 2009 Developers Posted July 14, 2009 This is the code im using While 1 Run("STEALTH_MINER.exe") [,"C:\Documents and Settings\HP_Owner.computer2\My Documents\Downloads\STEALTH_MINER_FOLDER"]) Sleep (318000) WEnd this is the error when i run it Line -1: Error:Illegal text at the end of statement(one statement per line) what im assuming is that the sleep is interfering with the loop i think but i need it to sleep for that amount of sec then start up again Run it first interactively from SciTE by opening the sources and pressing F5. It will tell you about an error in your run statement. You need to remove the square brackets. Jos 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.
critan Posted July 14, 2009 Author Posted July 14, 2009 (edited) EDIT:: yup i found the problem. With your idea Jos about the brackets but i instead place the file in the folder and ran it and it works fine thx for the help While 1 Run("STEALTH_MINER.exe")[removed this part] Sleep (318000) WEnd Edited July 14, 2009 by critan
DYONISII Posted July 14, 2009 Posted July 14, 2009 hello, i just changed the part that needed to be changed. you can still enclose it with while...wend. thus: While 1 Run("STEALTH_MINER.exe","C:\Documents and Settings\HP_Owner.computer2\My Documents\Downloads\STEALTH_MINER_FOLDER") Sleep (318000) WEnd http://dev.dyonisii.com/
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