Herzliche Weihnachtsgrüße an die AutoIt-Profis/Community!
(Anfänger)Frage zur Funktion "_WinAPI_ShellNotifyIconGetRect"
Was muss ich tun, um z.B. die Koordinaten des TrayIcons "Hardware sicher entfernen" zu bekommen (statt statt wie in der Beispielfunktion "AutoItWinGetTitle") ?
C
#include <MsgBoxConstants.au3>
#include <WinAPIGdi.au3>
#include <WinAPIShellEx.au3>
#include <WinAPISys.au3>
Local $tRECT = _WinAPI_ShellNotifyIconGetRect(WinGetHandle(AutoItWinGetTitle()), 1)
Local $aPos
If Not @error Then
$aPos = _WinAPI_GetPosFromRect($tRECT)
MouseMove($aPos[0] + 12, $aPos[1] + 12)
MouseClick('left')
While 1
Sleep(1000)
WEnd
EndIf
Alles anzeigen