Sign in to follow this  
Followers 0
Death

Pixel Help

2 posts in this topic

Complete Script.

If WinExists("Diablo II") Then
    WinActivate("Diablo II")
Else
    MsgBox(0, "Error", "Diablo II Isn't Running", 5)
    Sleep(100)
    Exit
EndIf

Opt("MouseCoordMode", 2)

MouseClick("Left", 425, 335, 1, 5)
Sleep(100)
MouseClick("Left", 365, 335, 1, 5)
Sleep(100)
Sleep(20000)

;GreenBox Color 0x18480C
;GreenBox Coord 430, 298

Global $Go
Opt("PixelCoordMode", 2)
While $Go = 1
If PixelSearch(0,800,640,800,0x18480C,20,,0x00620414) Then
    MouseClick("Left", 313, 464, 1, 5)
    Sleep(100)
Else
    Sleep(100)
    $Go = 1
EndIf
WEnd

This is the part i need help with.

Global $Go
Opt("PixelCoordMode", 2)
While $Go = 1
If PixelSearch(0,800,640,800,0x18480C,20,,0x00620414) Then
    MouseClick("Left", 313, 464, 1, 5)
    Sleep(100)
Else
    Sleep(100)
    $Go = 1
EndIf
WEnd

Share this post


Link to post
Share on other sites



Now why do you think I closed the other thread?

3 days for being impatient and creating a new topic while the original was closed due to excessive bumping.

*click*


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0