Thunder-man Posted May 13, 2007 Posted May 13, 2007 (edited) Edit:Oh sorry, I write this vor "Unlimited Desktops"Link:Mozilla Firefoxx=944Mozilla Firefoxy=576I think, you can write this in one line.Mozilla Firefox=944|576For $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 NextFor $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 NextgreetingFrank Edited May 13, 2007 by Thunder-man
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now