Jump to content

Recommended Posts

Posted (edited)

Edit:

Oh sorry, I write this vor "Unlimited Desktops"

Link:

Mozilla Firefoxx=944

Mozilla Firefoxy=576

I think, you can write this in one line.

Mozilla Firefox=944|576

For $i = 0 to _ListView_GetItemCount($handle)
            $pos = _ListView_GetItemPosition($handle, $i)
            $name = _ListView_GetItemText($handle, $i)
            If $pos[0] = True Then
                IniWrite($desktopsDir & "\Desktopinfo.ini", $currentDesktop, $name, $pos[1] & "|" & $pos[2])
;IniWrite($desktopsDir & "\Desktopinfo.ini", $currentDesktop, $name & "x", $pos[1])
;IniWrite($desktopsDir & "\Desktopinfo.ini", $currentDesktop, $name & "y", $pos[2])
            EndIf
        Next

For $i = 0 to _ListView_GetItemCount($handle)
                $name = _ListView_GetItemText($handle, $i)
;$x = IniRead($desktopsDir & "\Desktopinfo.ini", $currentDesktop, $name & "x", "Unknown")
;$y = IniRead($desktopsDir & "\Desktopinfo.ini", $currentDesktop, $name & "y", "Unknown")
                
                $xy = IniRead($desktopsDir & "\Desktopinfo.ini", $currentDesktop, $name, "Unknown")
                $pos_ = StringSplit($xy, "|")
                
;If $xy <> "Unknown" Then _ListView_SetItemPosition32($handle, $i, $x, $y)
                If $xy <> "Unknown" Then _ListView_SetItemPosition32($handle, $i, $pos_[1], $pos_[2])
                GuiCtrlSetData($progress, $currentProgress + $step)
                $currentProgress += $step
            Next

greeting

Frank

Edited by Thunder-man

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...