viewing paste Unknown #8778 | Autohotkey

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
PGUP::
{
    WinGet mPID, PID, A
    SetKeyDelay -1,-1,-1
    CoordMode Pixel, Screen
    
    screenX := 88
    screenY := 50
    baseX := screenX + 630
    baseY := screenY + 83
    stepX := 6
    stepY := 0
    
    xA := baseX + stepX * 0
    xB := baseX + stepX * 1
    xC := baseX + stepX * 2
    xD := baseX + stepX * 3
    
    yA := baseY + stepY * 0
    yB := baseY + stepY * 1
    yC := baseY + stepY * 2
    yD := baseY + stepY * 3
    
    Loop
    {
        ControlSend ,,{F2}, ahk_pid %mPID% ; abra
        Sleep 300
 
        PixelGetColor, color1, %xA%, %yA%
        PixelGetColor, color2, %xB%, %yB%
        PixelGetColor, color3, %xC%, %yC%
        PixelGetColor, color4, %xD%, %yD%
        if (color1 = 0x31FF31 && color2 = 0x31FF31 && color3 = 0x31FF31 && color4 = 0x31FF31)
        {
            break
        }
 
        Sleep 50
        ControlSend ,,{F3}, ahk_pid %mPID% ; hocus
        Sleep 50
    }
    return
}
 
PGDN::
 
Pause
 
 
Viewed 601 times, submitted by Guest.