Opt('PixelCoordMode', 0)
HotKeySet('{Esc}', '_Exit')
$sTitle = '[Title:Мои документы;Class:CabinetWClass]'
$hWin = WinWait($sTitle, '', 10)
If $hWin Then
While WinExists($hWin)
$aPos = WinGetPos($hWin)
$aMouse = MouseGetPos()
$iColor = PixelGetColor($aMouse[0] - $aPos[0], $aMouse[1] - $aPos[1], $hWin)
$sMessage = 'X: ' & $aMouse[0] - $aPos[0] & @LF & 'Y: ' & $aMouse[1] - $aPos[1] & @LF & _
'Color: 0x' & Hex($iColor, 6)
ToolTip($sMessage, 0, 0, 'Относительно окна', 1)
Sleep(100)
WEnd
Else
MsgBox(16, 'Error', 'Нет окна :(')
EndIf
Func _Exit()
Exit
EndFunc ;==>_Exit