habe ein If-Anweisung, wenn der erste Anweisung übereinstimmt, dann sollen die anderen nicht mehr geprüft werden.
vielen Dank und Grüße
Code: Select all
F4::
CoordMode, Mouse , Client
MouseMove, 1255, 456
Sleep, 2000
CoordMode, Pixel , Client
PixelGetColor, foundColor, 762, 292, Fast RGB
if (foundColor = 0xFF0000)
{
Click, right, 1053, 535
sleep, 200
SendInput, d
ClipWait, 2
sleep, 200
bild1url = %clipboard%
msgbox, % bild1url
}
PixelGetColor, foundColor, 846, 292, Fast RGB
if (foundColor = 0xFF0000)
{
Click, right, 1053, 535
sleep, 200
SendInput, d
ClipWait, 2
sleep, 200
bild1url = %clipboard%
sleep, 100
Click, 772, 316
sleep, 1500
Click, right, 1053, 535
sleep, 200
SendInput, d
ClipWait, 2
sleep, 200
bild2url = %clipboard%
msgbox, %bild1url% `r`n %bild2url%
}
else
{
Click, right, 1053, 535
sleep, 200
SendInput, d
ClipWait, 2
sleep, 200
bild1url = %clipboard%
sleep, 100
Click, 772, 316
sleep, 1500
Click, right, 1053, 535
sleep, 200
SendInput, d
ClipWait, 2
sleep, 200
bild2url = %clipboard%
sleep, 200
Click, 863, 323
sleep, 1500
Click, right, 1053, 535
sleep, 200
SendInput, d
ClipWait, 2
sleep, 200
bild3url = %clipboard%
msgbox, %bild1url% `r`n %bild2url% `r`n %bild3url%
}
^+r::
reload