Splitz Posted November 28, 2006 Posted November 28, 2006 i want to know how to make this script repeat its self, because when i run it and when something changes in thoes cordinates it closes the program (only does it 1 time). i want it to not close and keep pressing 1 when something changes in thoes cordinates ; Get initial checksum If WinActivate("Diablo II") Then sleep(500) $checksum = PixelChecksum(71,520, 71,525) EndIf While $checksum = PixelChecksum(71,520, 71,525) Sleep(100) WEnd Send("1")
Developers Jos Posted November 28, 2006 Developers Posted November 28, 2006 Fast why ? PC burning down and the fire needs to be extinguished ? 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.
Paulie Posted November 28, 2006 Posted November 28, 2006 i want to know how to make this script repeat its self, because when i run it and when something changes in thoes cordinates it closes the program (only does it 1 time). i want it to not close and keep pressing 1 when something changes in thoes cordinates ; Get initial checksum If WinActivate("Diablo II") Then sleep(500) $checksum = PixelChecksum(71,520, 71,525) EndIf While $checksum = PixelChecksum(71,520, 71,525) Sleep(100) WEnd Send("1")Surround the whole thing with a statement like this While 1 ;...Code Here WEnd Might want to add an exit hotkey though, as that will never stop unless you physically close it from the system tray icon or end the process with control alt delete
rbhkamal Posted November 28, 2006 Posted November 28, 2006 (edited) Fast why ? PC burning down and the fire needs to be extinguished ?Do faster(); until ......? ;then go to sleep Edit Just a bad joke.... sorry Edited November 28, 2006 by rbhkamal "When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix
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