Code: Select all
;###########################################################################
!^m::
PacchiMisteriosi("1", 560, 323, 0x381605, 320, 300, 0xBC8328, 345, 310)
PacchiMisteriosi("2", 560, 323, 0x381605, 320, 300, 0xBC8328, 345, 310)
PacchiMisteriosi("3", 560, 323, 0x381605, 320, 300, 0xBC8328, 345, 310)
PacchiMisteriosi("4", 560, 323, 0x381605, 320, 300, 0xBC8328, 345, 310)
PacchiMisteriosi("5", 560, 323, 0x381605, 320, 300, 0xBC8328, 345, 310)
PacchiMisteriosi("Alexa", 560, 323, 0x381605, 320, 300, 0xBC8328, 345, 310)
PacchiMisteriosi("Destiny", 560, 323, 0x381605, 320, 300, 0xBC8328, 345, 310)
PacchiMisteriosi("Supermario", 560, 323, 0x381605, 320, 300, 0xBC8328, 345, 310)
...
Return
PacchiMisteriosi(wname, xclick_0, yclick_0, color_0, xclick_1, yclick_1, color_1, xclick_2, yclick_2)
{
return AhkThread("
(
if WinExist(" wname ") ; ----> it work only for windows named 1 - 2 - 3 - 4 - 5 .... NOT for other :( olso try IfWinExist, " wname " and NOT work
{
CoordMode ,Pixel,Screen ;set this to use absolute coordinates and for specific thread
Sleep 100
YYY := " yclick_0 " -20
WinGetPos, X, Y, , , " wname " ; ----------------------------------- This work ok for all windows (if not use winexist check)
xPixel := X + " xClick_0 " ;screen coords X for chek
yPixel := Y + " yClick_0 " ;screen coords Y for chek
Sleep 100
xxPixel := X + " xClick_1 " ;screen coords X for chek
yyPixel := Y + " yClick_1 " ;screen coords Y for chek
xxxPixel := X + " xClick_2 " ;screen coords X for chek
yyyPixel := Y + " yClick_2 " ;screen coords Y for chek
Sleep 100
...
...
}
)")
}