Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cs ----------------------------------------------------------------------------
- AutoIt Version: 3.3.8.1
- Author: myName
- Script Function:
- Template AutoIt script.
- #ce ----------------------------------------------------------------------------
- ; Script Start - Add your code below here
- #include <GuiConstantsEx.au3>
- #include <GuiListView.au3>
- Dim $hwnd=0
- Dim $hListView=0
- Dim $DesktopXY[4]
- Dim $GetItem[8]
- ; Programm - Start
- $hwnd=_WinAPI_GetDesktopWindow ()
- if $hwnd = False Then
- MsgBox ( 0 , "Fehler" , "Der Desktop ist nicht geladen" )
- Exit
- EndIf
- $DesktopXY = WinGetPos ( "[class:Progman]" )
- MsgBox ( 0 , "Größe" , "Desktop Breite : " & $DesktopXY[2] & @LF & "Desktop Höhe : " & $DesktopXY[3] )
- $hListView = ControlGetHandle ( "[Class:Progman]" , "" , "SysListView321")
- if $hListView = False Then
- MsgBox ( 64 , "Fehler" , "Keine ListView gefunden" )
- Exit
- EndIf
- MsgBox ( 0 , "Info" , "Anzahl der Icons : " & _GUICtrlListView_GetItemCount ( $hListView ) )
- _GUICtrlListView_BeginUpdate ($hListView)
- $dll=DllStructCreate ( $tagLVItem )
- for $i = 0 to _GUICtrlListView_GetItemCount ($hListView) - 1
- $ItemText = _GUICtrlListView_GetItemText ($hListView , $i)
- $GetItem = _GUICtrlListView_GetItem ($hListView , $i)
- ConsoleWrite ( $ItemText & @LF)
- ConsoleWrite ( $GetItem[3] & @LF)
- Next
- _GUICtrlListView_EndUpdate ($hListView)
- $dll = 0
- ;$Icons = _GUICtrlListView_GetItemCount ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement