SnippetVamp

Because spending time searching snippets sucks.



ALV 3 XPath 1 abap 9 ahk 1 autohotkey 6 bash 2 cli 2 clipboard 3 excel 1 file 1 file_path 1 greasemonkey 1 javascript 1 python 4 sap 1 screen 1 sql 1 ssh 1 tool 2 tunnel 1

.

AHK : WaitForImage

AHK : WaitForImage

WaitForImage(ByRef pic, ByRef windowRef, ByRef timeout)
{
coordmode, pixel, screen
WinGetPos, winX, winY, winWidth, winHeight, %windowRef%
waitVal = 100
count = 0
maxIter := timeout / waitVal
while count < maxIter
{
    IfWinNotActive, %windowRef%
        WinActivate, %windowRef%
    ImageSearch, imageX, imageY, winX, winY, winX+winWidth, winY+winHeight, %pic%
    if not ErrorLevel   ; Found !
    {
        coordmode, pixel, Relative
        return true
    }
    Sleep waitVal
    count += 1
}
coordmode, pixel, Relative
return false
}

autohotkey

<iframe width="100%" height="596" src="http://ginkobox.fr/vamp/index.php?embed=54fdd9eca61f7" type="text/html"></iframe>

Text only - Permalink - Snippet public post date 09/03/2015

This page's Feed


SnippetVamp 1.84 by Bronco - generated in 0.023 s