harder Posted April 20, 2009 Share Posted April 20, 2009 (edited) hi, i wrote a script for diablo 2 and it works fine as long as i use the winclose function to shut d2 down but sometimes there is a bug and the d2 window disappears (but the process is still running) i wrote a sequence that tries to close the process via processclose() (tried pid and processname), but somehow it doesnt work the processclose("Game.exe") doesnt work in general, even when the diablo window still exists) it can be terminated by using the taskmanager tho now i want to know if there is a way for autoit to close the process like the task manager does. thx in advance /edit: the process is not invisible to autoit, winexist("game.exe") is true and im able to get the pid via ProcessList("game.exe") Edited April 20, 2009 by harder Link to comment Share on other sites More sharing options...
FinalVersion Posted April 20, 2009 Share Posted April 20, 2009 (edited) If ProcessExists("Game.exe") = true then processclose("Game.exe") else sleep(100) endif #Not tested Edited April 20, 2009 by Godly [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
harder Posted April 20, 2009 Author Share Posted April 20, 2009 ty, but that doesnt help Link to comment Share on other sites More sharing options...
FinalVersion Posted April 20, 2009 Share Posted April 20, 2009 ty, but that doesnt help I just tested it on Diablo II, it works fine. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
harder Posted April 20, 2009 Author Share Posted April 20, 2009 I just tested it on Diablo II, it works fine.thx, my autoit version was out of date, working now 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