Jump to content

Run a constant loop help plz?


Recommended Posts

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

Link to comment
Share on other sites

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

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

I have tried to do a while/WEnd loop it just dont work it comes up with an while^ Error

Link to comment
Share on other sites

  • Developers

I have tried to do a while/WEnd loop it just dont work it comes up with an while^ Error

What 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.
  :)

Link to comment
Share on other sites

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

  • Developers

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.
  :)

Link to comment
Share on other sites

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

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/

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...