Jump to content

Recommended Posts

Posted

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
  • Developers
Posted

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*

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.
  :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...