Jump to content

Need Help With Infinite Loop...


Guest PDagent
 Share

Recommended Posts

Guest PDagent

Ok, I just downloaded AutoIt v3 in hopes of being able to code the script by myself, but I failed :ph34r:

Here's the code I tried to make it work with:

;----Code---

$var = 1

While $var = 1

Sleep(20000)

$PID = ProcessExists("diablo ii.exe")

If $PID Then ProcessClose($PID)

Wend

;----End Code---

What I tried to do is an infinite loop of killing the process Diablo II.exe every xx seconds ( in this case, 20 ). Any ideas ?

Thanks in advance,

PD.

Link to comment
Share on other sites

Hi,

I've just tried your code. No problems detected.

What is the error u get ?

Regards,

Andre

ps. I don't have Diablo II so i tried it with calc.exe which works. :ph34r:

What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Link to comment
Share on other sites

Guest PDagent

Hmm, you're right.

I was running the script and after that running Diablo II.

I ran D2 first and the script worked perfect.

Thanks, and sorry for not responding earlier :ph34r:

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