Code : Tout sélectionner
#include "FastFind.au3"
#RequireAdmin
Global $handle = InputBox("","Nom de la fenêtre")
FFSetWnd($handle)
WinWait($handle) ;Attend la fenêtre
WinActivate($handle) ;Active la fenêtre
WinMove($handle, "", 0, 0, 784, 652) ;Redimentionnement et repositionnement de la fenêtre
WaitPixel(75, 96, 0x000000)
WaitNotPixel(75, 96, 0x000000)
DetecteChgmt()
MsgBox(0,"","Test")
WaitPixel(75, 96, 0x000000)
WaitNotPixel(75, 96, 0x000000)
DetecteChgmt()
MsgBox(0,"","Test")
Func DetecteChgmt()
Local $localise = False
FFSnapShot(0, 0, @DesktopWidth, @DesktopHeight, 0)
Do
Sleep(1000)
FFSnapShot(0, 0, @DesktopWidth, @DesktopHeight, 1)
FFSetDebugMode(2)
$localise = FFIsDifferent(0, 1)
Until $localise = True
EndFunc
Func WaitPixel($x, $y, $color)
Local $pxl = 0
Do
$pxl = PixelGetColor($x, $y)
Until $pxl = $color
EndFunc
Func WaitNotPixel($x, $y, $color)
Local $pxl = 0
Do
$pxl = PixelGetColor($x, $y)
Until $pxl <> $color
EndFunc