Guest PDagent Posted August 14, 2004 Share Posted August 14, 2004 Ok, I just downloaded AutoIt v3 in hopes of being able to code the script by myself, but I failed 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 More sharing options...
Andre Posted August 14, 2004 Share Posted August 14, 2004 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. 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 More sharing options...
Guest PDagent Posted August 15, 2004 Share Posted August 15, 2004 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 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