samedi 14 septembre 2019

Autohotkey "How should my code look like i cant get it to work..."

Step1 = PixelSearch, X, Y, 255, 160, 275, 180, 0x609661, 1, Fast

if ErrorLevel = 1

GoTo, Step2

if ErrorLevel = 0

GoTo, Step1do

Step1do = MouseGetPos, positionX, positionY Random, X, 255,275 Random, Y, 160,180 Click %X%, %Y% RandSleep(1000,2000)

Step2 = PixelSearch, X, Y, 47, 156, 68, 175, 0x065D25, 1, Fast

if ErrorLevel = 1

GoTo, Step3

if ErrorLevel = 0

GoTo, Step2do

Step2do = MouseGetPos, positionX, positionY Random, X, 47, 68 Random Y, 156, 175 Click %X%, %Y% RandSleep(1000,2000)

Step3 = PixelSearch, X, Y, 118, 333, 147, 361, 0x387140, 1, Fast

if ErrorLevel = 1

GoTo, Step4

if ErrorLevel = 0

Aucun commentaire:

Enregistrer un commentaire