Ich möchte die Namen und Position der Desktopsymbole ermitteln.
Das Beispiel von "owi dowi spin" am Ende von:
Position eines Icons auf dem Desktop ermitteln
funktioniert bei mir (Win7) nicht:
#include <GuiListView.au3>
ShowBalloonTip("Papierkorb")
Sleep(4000)
Func ShowBalloonTip($LinkName)
If Not WinActive("Program Manager") Then WinActivate("Program Manager")
$hwnd = ControlGetHandle("Program Manager", "", "SysListView321")
$hwnd = HWnd($hwnd)
WinMinimizeAll()
For $i = 0 To _GUICtrlListView_GetItemCount($hwnd) - 1
$xx=_GUICtrlListView_GetItemText($hwnd, $i)
MsgBox(0,"xx",$xx)
If _GUICtrlListView_GetItemText($hwnd, $i)=$LinkName Then
$pos = _GUICtrlListView_GetItemPosition($hwnd, $i)
If IsArray($pos) Then
ToolTip("Das ist die Verknüpfung",$pos[0] + 24, $pos[1] + 27,"Hier",1,5)
ExitLoop
EndIf
EndIf
Next
EndFunc
Es erscheint nur:
Was habe ich falsch gemacht?
Vielen Dank schon mal im Voraus für eine Antwort.