Sign in to follow this  
Followers 0
Splitz

help me with this fast

4 posts in this topic

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")

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by rbhkamal

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

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