Sign in to follow this  
Followers 0
Guest Newb

If X then X

7 posts in this topic

I want it to make it so if I am booted from the game, like i get disconnected It will stop the loop, I am using the While 1

Wend loop...

But if it gets disconnected I want it to stop taht loop... this is for Diablo II in case anyone is interested...

Share this post


Link to post
Share on other sites



While WinExists("???") ; the name/ title of the window you want stay in

; do your stuff

Wend

this will leave the loop if the game title name no longer exists

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

problem with that is that the window wont close, itll just get disconnected and the window stays up... but good idea...

Share this post


Link to post
Share on other sites

problem with that is that the window wont close, itll just get disconnected and the window stays up... but good idea...

I know nothing about Diablo,

Does the game give any indication when you have been disconnected, if it does you may be able to find a way for AutoIt to work with this in your script.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

What you could do is make it search for a certain pixel when like lets say it goes to the screen after it disconnects and choose a pixel that only shows up then and have it exit the loop that way

Share this post


Link to post
Share on other sites

How do I do that pixel thing? I am kinda slow when it comes to stuff like this... I just taught myself how to do what I have done so far, and that was in the last 2 days... Anyway thanks for the help please keep posting ideas/code/script/how to do them etc peace and thanks

Share this post


Link to post
Share on other sites

anyone know how to do this last pixel thing?

Share this post


Link to post
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
Sign in to follow this  
Followers 0