Jump to content



Photo

_GUICtrlListView_SaveHTML() - Exports the details of a ListView to a .html file.


34 replies to this topic

#1 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 21 January 2011 - 06:33 PM

For those who enjoy using ListViews and wish to export the data to a HTML file, then this Function is for you. Feel free to edit the style between the tags ; Start of StyleSheet & ; End of StyleSheet, plus please post if you have a better style to share :)

How it would look:
Posted Image

Function without Array:
AutoIt         
; #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 ; #FUNCTION# ========================================================================================================= ; Name...........: _GUICtrlListView_SaveHTML() ; Description ...: Exports the details of a ListView to a .html file. It will also convert URL's into hyperlinks. ; Syntax.........: _GUICtrlListView_SaveHTML($hListView, $sFile, [$sURL = ""]) ; Parameters ....: $hListView - Handle of the ListView. ;                  $sFile - FilePath, this should ideally use the filetype .html e.g. @ScriptDir & "Example.html" ;                  $sURL - [Optional] A URL to link to your applications website. [Default = ""] ; Requirement(s).: v3.2.12.1 or higher ; Return values .: Success - Returns filepath. ;                  Failure - Returns filepath & sets @error = 1 ; Author ........: guinness & HTML syntax by tproli with modifications by Lupo73 ; Example........; Yes ;===================================================================================================================== Func _GUICtrlListView_SaveHTML($hListView, $sFile, $sURL = "")     Local $aColumns, $hFileOpen, $iCount, $iError = 0, $sAlternative, $sHTMLBody, $sHTMLColumns, $sHTMLFooter, $sHTMLHeader, $sIndex, $sScriptName = StringTrimRight(@ScriptName, 4)     Local $sCreatedText = "Created with", $sTopText = "Top", $sTotalText = "Total count", $sUpdatedText = "Updated" ; Text Strings.     Local $iColumnCount = _GUICtrlListView_GetColumnCount($hListView)     Local $iItemCount = _GUICtrlListView_GetItemCount($hListView)     $sHTMLColumns = '' & @CRLF ; ListView Columns     $sHTMLColumns &= @TAB & '' & '#' & '' & @CRLF     For $A = 0 To $iColumnCount - 1         $aColumns = _GUICtrlListView_GetColumn($hListView, $A)         $sHTMLColumns &= @TAB & '' & $aColumns[5] & '' & @CRLF     Next     $sHTMLColumns &= '' & @CRLF     For $A = 0 To $iItemCount - 1 ; ListView Items.         $sAlternative = "even"         If Mod($A, 2) Then             $sAlternative = 'odd'         EndIf         $sHTMLBody &= '' & @CRLF         $sHTMLBody &= @TAB & '' & $A + 1 & '' & @CRLF         For $B = 0 To $iColumnCount - 1             $sIndex = _GUICtrlListView_GetItemText($hListView, $A, $B)             If StringRegExp($sIndex, "(ftp|http|https)://(w+:{0,1}w*@)?(S+)(:[0-9]+)?(/|/([w#!:.?+=&%@!-/]))?") Then                 $sIndex = '<a href="' & $sIndex & '" class="url" target="_blank">' & $sIndex & '</a>'             EndIf             $sHTMLBody &= @TAB & '' & $sIndex & '' & @CRLF         Next         $sHTMLBody &= '' & @CRLF     Next     $iCount = $A     $sHTMLHeader = '<!-- ' & $sCreatedText & ' ' & $sScriptName & ' -->' & @CRLF & _             '' & @CRLF & _             '' & @CRLF & _             @CRLF & _             @CRLF & _             '' & @CRLF & _             '<meta http-equiv="content-type" content="text/html;charset=UTF-8">' & @CRLF & _             '<title>' & $sScriptName & '</title>' & @CRLF & _             '<style type="text/css">' & @CRLF & _ ; Start of StyleSheet -  Edit this Section to change the Style.             'html {' & @CRLF & _             @TAB & 'background: #E4ECF2;' & @CRLF & _             @TAB & 'margin: 0;' & @CRLF & _             @TAB & 'padding: 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'body {' & @CRLF & _             @TAB & 'padding-left: 50px;' & @CRLF & _             @TAB & 'font-family: Arial, sans-serif;' & @CRLF & _             @TAB & 'font-size: 12px;' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'min-width: 990px;' & @CRLF & _             @TAB & 'height: auto;' & @CRLF & _             @TAB & 'margin: 0;' & @CRLF & _             @TAB & 'padding: 30px 40px 30px 40px;' & @CRLF & _             @CRLF & _             @TAB & 'background: #E4ECF2; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #EFF5F9 0%, #E4ECF2 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#EFF5F9), color-stop(100%,#E4ECF2)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* IE10+ */' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a {' & @CRLF & _             @TAB & 'outline: none;' & @CRLF & _             @TAB & 'color: #0096BF;' & @CRLF & _             @TAB & 'padding: 3px 5px 3px 3px;' & @CRLF & _             @TAB & '-o-border-radius: 3px;' & @CRLF & _             @TAB & '-ms-border-radius: 3px;' & @CRLF & _             @TAB & '-moz-border-radius: 3px;' & @CRLF & _             @TAB & '-webkit-border-radius: 3px;' & @CRLF & _             @TAB & 'border-radius: 3px;' & @CRLF & _             @TAB & 'text-decoration: none;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a:hover {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'background-color: #BFE1EA;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #c9f0f5;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.top {' & @CRLF & _             @TAB & 'color: #8397A7;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #FFF;' & @CRLF & _             @TAB & 'padding: 4px 8px 4px 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.top:hover {' & @CRLF & _             @TAB & 'color: #49647A;' & @CRLF & _             @TAB & 'background-color: transparent;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.url {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.url:hover {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'text-decoration: underline;' & @CRLF & _             @TAB & 'background-color: transparent;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'h1 {' & @CRLF & _             @TAB & 'color: #0096BF;' & @CRLF & _             @TAB & 'font-size: 28px;' & @CRLF & _             @TAB & 'display: inline;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.bold {' & @CRLF & _             @TAB & 'font-weight: bold;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.italic {' & @CRLF & _             @TAB & 'font-style: italic;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.uppercase {' & @CRLF & _             @TAB & 'text-transform: uppercase;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline {' & @CRLF & _             @TAB & 'margin-top: 30px;' & @CRLF & _             @TAB & 'margin-bottom: 15px;' & @CRLF & _             @TAB & 'height: 12px;' & @CRLF & _             @TAB & 'line-height: 12px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span {' & @CRLF & _             @TAB & 'border-left: 1px solid #233447;' & @CRLF & _             @TAB & 'padding-left: 10px;' & @CRLF & _             @TAB & 'margin-left: 10px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span:first-child {' & @CRLF & _             @TAB & 'border-left: none;' & @CRLF & _             @TAB & 'padding-left: 0;' & @CRLF & _             @TAB & 'margin-left: 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span.noborder {' & @CRLF & _             @TAB & 'border: none !important;' & @CRLF & _             @TAB & 'margin-left: 0 !important;' & @CRLF & _             @TAB & 'padding-left: 0 !important;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.footer {' & @CRLF & _             @TAB & 'position: relative;' & @CRLF & _             @TAB & 'margin-top: 20px;' & @CRLF & _             @TAB & 'margin-bottom: 30px;' & @CRLF & _             '}' & @CRLF & _             @CRLF     $sHTMLHeader &= 'table {' & @CRLF & _             @TAB & 'border: 1px solid #FFF;' & @CRLF & _             @TAB & 'border-spacing: 0;' & @CRLF & _             @CRLF & _             @TAB & '-o-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & '-moz-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & '-webkit-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & 'box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @CRLF & _             @TAB & '-o-background-clip: padding-box;' & @CRLF & _             @TAB & '-ms-background-clip: padding-box;' & @CRLF & _             @TAB & '-moz-background-clip: padding-box;' & @CRLF & _             @TAB & '-webkit-background-clip: padding-box;' & @CRLF & _             @TAB & 'background-clip: padding-box;' & @CRLF & _             @CRLF & _             @TAB & 'background-color: #FFF;' & @CRLF & _             @CRLF & _             @TAB & '-o-border-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-radius: 4px;' & @CRLF & _             @TAB & 'border-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th, table td {' & @CRLF & _             @TAB & 'padding: 2px 12px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th {' & @CRLF & _             @TAB & 'text-transform: uppercase;' & @CRLF & _             @TAB & 'color: #FFF;' & @CRLF & _             @TAB & 'font-size: 11px;' & @CRLF & _             @TAB & 'text-align: left;' & @CRLF & _             @TAB & 'padding-top: 4px;' & @CRLF & _             @TAB & 'height: 22px;' & @CRLF & _             @TAB & 'line-height: 22px;' & @CRLF & _             @CRLF & _             @TAB & 'background: rgb(59,103,158); /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, rgba(59,103,158,1) 0%, rgba(43,136,217,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(59,103,158,1)), color-stop(50%,rgba(43,136,217,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(100%,rgba(125,185,232,1))); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'text-shadow: -1px -1px #3A68A0;' & @CRLF & _             @TAB & 'border-bottom: 1px solid #3A68A0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table td:first-child {' & @CRLF & _             @TAB & 'text-align: right;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:first-child {' & @CRLF & _             @TAB & 'text-align: right;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:first-child {' & @CRLF & _             @TAB & '-o-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius-topleft: 4px;' & @CRLF & _             @TAB & 'border-top-left-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:last-child {' & @CRLF & _             @TAB & '-o-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius-topright: 4px;' & @CRLF & _             @TAB & 'border-top-right-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table td {' & @CRLF & _             @TAB & 'height: 23px;' & @CRLF & _             @TAB & 'line-height: 23px;' & @CRLF & _             @TAB & 'border-bottom: 1px solid #D9EBEB;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr:last-child td {' & @CRLF & _             @TAB & 'border-bottom: none;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr.even {' & @CRLF & _             @TAB & 'background-color: #F2F9FD;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr:hover {' & @CRLF & _             @TAB & 'background: #DEF4FA; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #DEF4FA 0%, #D5F2F9 50%, #C9EEF7 51%, #FFFEFD 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#DEF4FA), color-stop(50%,#D5F2F9), color-stop(51%,#C9EEF7), color-stop(100%,#FFFEFD)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'text-shadow: 1px 1px rgba(255,255,255,0.5);' & @CRLF & _             '}' & @CRLF & _             @CRLF     $sHTMLHeader &= '.triangle-border {' & @CRLF & _             @TAB & 'position: relative;' & @CRLF & _             @TAB & 'display: inline;' & @CRLF & _             @TAB & 'padding: 5px 10px 4px 10px;' & @CRLF & _             @TAB & 'background-color: #DAF0F5;' & @CRLF & _             @CRLF & _             @TAB & 'background: #EDFAFC; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #EDFAFC 5%, #DCF1F4 5%, #D4EEF4 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(5%,#EDFAFC), color-stop(5%,#DCF1F4), color-stop(100%,#D4EEF4)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'top: -6px;' & @CRLF & _             @TAB & 'margin-left: 28px;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #EDFAFC;' & @CRLF & _             @TAB & 'border: 1px solid #BFE1EA;' & @CRLF & _             @TAB & 'border-bottom-width: 1px;' & @CRLF & _             @TAB & 'border-bottom-color: #DCF1F4;' & @CRLF & _             @CRLF & _             @TAB & '-o-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & '-moz-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & '-webkit-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & 'box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @CRLF & _             @TAB & '-webkit-border-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius: 4px;' & @CRLF & _             @TAB & 'border-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.triangle-border.left:after {' & @CRLF & _             @TAB & 'content: "";' & @CRLF & _             @TAB & 'position: absolute;' & @CRLF & _             @TAB & 'top: 7px;' & @CRLF & _             @TAB & 'left: -15px;' & @CRLF & _             @TAB & 'border: 6px outset transparent;' & @CRLF & _             @TAB & 'border-right: 6px solid #ADDDE7;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '</style>' & @CRLF & _  ; End of StyleSheet - Edit this Section to change the Style.             '' & @CRLF & _             @CRLF & _             '' & @CRLF & _             @CRLF & _             '<h1>' & $sScriptName & '</h1>' & @CRLF & _             @CRLF & _             '<div class="triangle-border left">' & $sUpdatedText & ' ' & @MDAY & '-' & @MON & '-' & @YEAR & ' ' & @HOUR & ':' & @MIN & ':' & @SEC & '</div>' & @CRLF & _             @CRLF & _             '<div class="infoline">' & @CRLF & _             @TAB & '<p>' & @CRLF & _             @TAB & '<span class="bold noborder">' & $sTotalText & '</span>: ' & $iCount & @CRLF & _             @TAB & '</p>' & @CRLF & _             '</div>' & @CRLF & _             @CRLF & _             '' & @CRLF & _             '' & @CRLF     $sHTMLFooter = '' & @CRLF & _             '<table cellspacing="0" cellpadding="0"><tbody></tbody></table>' & @CRLF & _             @CRLF & _             '<div class="footer">' & @CRLF & _             '<p>' & @CRLF & _             $sCreatedText & ' <a href="' & $sURL & '" target="_blank">' & $sScriptName & '</a>' & @CRLF & _             @TAB & '<span class="italic"></span>' & @CRLF & _             @TAB & ' ' & @CRLF & _             @TAB & ' ' & @CRLF & _             @TAB & '<a href="#" class="top">' & $sTopText & '</a>' & @CRLF & _             @TAB & '</p>' & @CRLF & _             '</div>' & @CRLF & _             @CRLF & _             '' & @CRLF & _             '' & @CRLF     $hFileOpen = FileOpen($sFile, 2 + 8 + 128)     FileWrite($hFileOpen, $sHTMLHeader & $sHTMLColumns & $sHTMLBody & $sHTMLFooter)     FileClose($hFileOpen)     If @error Then         $iError = 1     EndIf     Return SetError($iError, 0, $sFile) EndFunc   ;==>_GUICtrlListView_SaveHTML

Function with Array: - It uses another Function of mine called _GUICtrlListView_CreateArray()
AutoIt         
; #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 ; #FUNCTION# ========================================================================================================= ; Name...........: _GUICtrlListView_SaveHTML() ; Description ...: Exports the details of a ListView to a .html file. It will also convert URL's into hyperlinks. ; Syntax.........: _GUICtrlListView_SaveHTML($aArray, $sFile, [$sURL = ""]) ; Parameters ....: $aArray - Array returned from _GUICtrlListView_CreateArray() ;                  $sFile - FilePath, this should ideally use the filetype .html e.g. @ScriptDir & "Example.html" ;                  $sURL - [Optional] A URL to link to your applications website. [Default = ""] ; Requirement(s).: v3.2.12.1 or higher ; Return values .: Success - Returns filepath. ;                  Failure - Returns filepath & sets @error = 1 ; Author ........: guinness & HTML syntax by tproli with modifications by Lupo73 ; Example........; Yes ;===================================================================================================================== Func _GUICtrlListView_SaveHTML($aArray, $sFile, $sURL = "")     Local $aColumns, $hFileOpen, $iCount, $iError = 0, $sAlternative, $sHTMLBody, $sHTMLColumns, $sHTMLFooter, $sHTMLHeader, $sIndex, $sScriptName = StringTrimRight(@ScriptName, 4)     Local $sCreatedText = "Created with", $sTopText = "Top", $sTotalText = "Total count", $sUpdatedText = "Updated" ; Text Strings.     $sHTMLColumns = '' & @CRLF ; ListView Columns     $sHTMLColumns &= @TAB & '' & '#' & '' & @CRLF     $aColumns = StringSplit($aArray[0][2], "|")     For $A = 1 To $aColumns[0]         $sHTMLColumns &= @TAB & '' & $aColumns[$A] & '' & @CRLF     Next     $sHTMLColumns &= '' & @CRLF     For $A = 1 To $aArray[0][0] ; ListView Items.         $sAlternative = "even"         If Mod($A, 2) Then             $sAlternative = 'odd'         EndIf         $sHTMLBody &= '' & @CRLF         $sHTMLBody &= @TAB & '' & $A & '' & @CRLF         For $B = 0 To $aArray[0][1] - 1             $sIndex = $aArray[$A][$B]             If StringRegExp($sIndex, "(ftp|http|https)://(w+:{0,1}w*@)?(S+)(:[0-9]+)?(/|/([w#!:.?+=&%@!-/]))?") Then                 $sIndex = '<a href="' & $sIndex & '" class="url" target="_blank">' & $sIndex & '</a>'             EndIf             $sHTMLBody &= @TAB & '' & $sIndex & '' & @CRLF         Next         $sHTMLBody &= '' & @CRLF     Next     $iCount = $aArray[0][0]     $sHTMLHeader = '<!-- ' & $sCreatedText & ' ' & $sScriptName & ' -->' & @CRLF & _             '' & @CRLF & _             '' & @CRLF & _             @CRLF & _             @CRLF & _             '' & @CRLF & _             '<meta http-equiv="content-type" content="text/html;charset=UTF-8">' & @CRLF & _             '<title>' & $sScriptName & '</title>' & @CRLF & _             '<style type="text/css">' & @CRLF & _ ; Start of StyleSheet -  Edit this Section to change the Style.             'html {' & @CRLF & _             @TAB & 'background: #E4ECF2;' & @CRLF & _             @TAB & 'margin: 0;' & @CRLF & _             @TAB & 'padding: 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'body {' & @CRLF & _             @TAB & 'padding-left: 50px;' & @CRLF & _             @TAB & 'font-family: Arial, sans-serif;' & @CRLF & _             @TAB & 'font-size: 12px;' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'min-width: 990px;' & @CRLF & _             @TAB & 'height: auto;' & @CRLF & _             @TAB & 'margin: 0;' & @CRLF & _             @TAB & 'padding: 30px 40px 30px 40px;' & @CRLF & _             @CRLF & _             @TAB & 'background: #E4ECF2; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #EFF5F9 0%, #E4ECF2 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#EFF5F9), color-stop(100%,#E4ECF2)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* IE10+ */' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a {' & @CRLF & _             @TAB & 'outline: none;' & @CRLF & _             @TAB & 'color: #0096BF;' & @CRLF & _             @TAB & 'padding: 3px 5px 3px 3px;' & @CRLF & _             @TAB & '-o-border-radius: 3px;' & @CRLF & _             @TAB & '-ms-border-radius: 3px;' & @CRLF & _             @TAB & '-moz-border-radius: 3px;' & @CRLF & _             @TAB & '-webkit-border-radius: 3px;' & @CRLF & _             @TAB & 'border-radius: 3px;' & @CRLF & _             @TAB & 'text-decoration: none;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a:hover {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'background-color: #BFE1EA;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #c9f0f5;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.top {' & @CRLF & _             @TAB & 'color: #8397A7;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #FFF;' & @CRLF & _             @TAB & 'padding: 4px 8px 4px 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.top:hover {' & @CRLF & _             @TAB & 'color: #49647A;' & @CRLF & _             @TAB & 'background-color: transparent;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.url {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.url:hover {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'text-decoration: underline;' & @CRLF & _             @TAB & 'background-color: transparent;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'h1 {' & @CRLF & _             @TAB & 'color: #0096BF;' & @CRLF & _             @TAB & 'font-size: 28px;' & @CRLF & _             @TAB & 'display: inline;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.bold {' & @CRLF & _             @TAB & 'font-weight: bold;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.italic {' & @CRLF & _             @TAB & 'font-style: italic;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.uppercase {' & @CRLF & _             @TAB & 'text-transform: uppercase;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline {' & @CRLF & _             @TAB & 'margin-top: 30px;' & @CRLF & _             @TAB & 'margin-bottom: 15px;' & @CRLF & _             @TAB & 'height: 12px;' & @CRLF & _             @TAB & 'line-height: 12px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span {' & @CRLF & _             @TAB & 'border-left: 1px solid #233447;' & @CRLF & _             @TAB & 'padding-left: 10px;' & @CRLF & _             @TAB & 'margin-left: 10px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span:first-child {' & @CRLF & _             @TAB & 'border-left: none;' & @CRLF & _             @TAB & 'padding-left: 0;' & @CRLF & _             @TAB & 'margin-left: 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span.noborder {' & @CRLF & _             @TAB & 'border: none !important;' & @CRLF & _             @TAB & 'margin-left: 0 !important;' & @CRLF & _             @TAB & 'padding-left: 0 !important;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.footer {' & @CRLF & _             @TAB & 'position: relative;' & @CRLF & _             @TAB & 'margin-top: 20px;' & @CRLF & _             @TAB & 'margin-bottom: 30px;' & @CRLF & _             '}' & @CRLF & _             @CRLF     $sHTMLHeader &= 'table {' & @CRLF & _             @TAB & 'border: 1px solid #FFF;' & @CRLF & _             @TAB & 'border-spacing: 0;' & @CRLF & _             @CRLF & _             @TAB & '-o-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & '-moz-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & '-webkit-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & 'box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @CRLF & _             @TAB & '-o-background-clip: padding-box;' & @CRLF & _             @TAB & '-ms-background-clip: padding-box;' & @CRLF & _             @TAB & '-moz-background-clip: padding-box;' & @CRLF & _             @TAB & '-webkit-background-clip: padding-box;' & @CRLF & _             @TAB & 'background-clip: padding-box;' & @CRLF & _             @CRLF & _             @TAB & 'background-color: #FFF;' & @CRLF & _             @CRLF & _             @TAB & '-o-border-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-radius: 4px;' & @CRLF & _             @TAB & 'border-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th, table td {' & @CRLF & _             @TAB & 'padding: 2px 12px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th {' & @CRLF & _             @TAB & 'text-transform: uppercase;' & @CRLF & _             @TAB & 'color: #FFF;' & @CRLF & _             @TAB & 'font-size: 11px;' & @CRLF & _             @TAB & 'text-align: left;' & @CRLF & _             @TAB & 'padding-top: 4px;' & @CRLF & _             @TAB & 'height: 22px;' & @CRLF & _             @TAB & 'line-height: 22px;' & @CRLF & _             @CRLF & _             @TAB & 'background: rgb(59,103,158); /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, rgba(59,103,158,1) 0%, rgba(43,136,217,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(59,103,158,1)), color-stop(50%,rgba(43,136,217,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(100%,rgba(125,185,232,1))); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'text-shadow: -1px -1px #3A68A0;' & @CRLF & _             @TAB & 'border-bottom: 1px solid #3A68A0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table td:first-child {' & @CRLF & _             @TAB & 'text-align: right;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:first-child {' & @CRLF & _             @TAB & 'text-align: right;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:first-child {' & @CRLF & _             @TAB & '-o-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius-topleft: 4px;' & @CRLF & _             @TAB & 'border-top-left-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:last-child {' & @CRLF & _             @TAB & '-o-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius-topright: 4px;' & @CRLF & _             @TAB & 'border-top-right-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table td {' & @CRLF & _             @TAB & 'height: 23px;' & @CRLF & _             @TAB & 'line-height: 23px;' & @CRLF & _             @TAB & 'border-bottom: 1px solid #D9EBEB;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr:last-child td {' & @CRLF & _             @TAB & 'border-bottom: none;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr.even {' & @CRLF & _             @TAB & 'background-color: #F2F9FD;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr:hover {' & @CRLF & _             @TAB & 'background: #DEF4FA; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #DEF4FA 0%, #D5F2F9 50%, #C9EEF7 51%, #FFFEFD 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#DEF4FA), color-stop(50%,#D5F2F9), color-stop(51%,#C9EEF7), color-stop(100%,#FFFEFD)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'text-shadow: 1px 1px rgba(255,255,255,0.5);' & @CRLF & _             '}' & @CRLF & _             @CRLF     $sHTMLHeader &= '.triangle-border {' & @CRLF & _             @TAB & 'position: relative;' & @CRLF & _             @TAB & 'display: inline;' & @CRLF & _             @TAB & 'padding: 5px 10px 4px 10px;' & @CRLF & _             @TAB & 'background-color: #DAF0F5;' & @CRLF & _             @CRLF & _             @TAB & 'background: #EDFAFC; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #EDFAFC 5%, #DCF1F4 5%, #D4EEF4 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(5%,#EDFAFC), color-stop(5%,#DCF1F4), color-stop(100%,#D4EEF4)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'top: -6px;' & @CRLF & _             @TAB & 'margin-left: 28px;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #EDFAFC;' & @CRLF & _             @TAB & 'border: 1px solid #BFE1EA;' & @CRLF & _             @TAB & 'border-bottom-width: 1px;' & @CRLF & _             @TAB & 'border-bottom-color: #DCF1F4;' & @CRLF & _             @CRLF & _             @TAB & '-o-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & '-moz-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & '-webkit-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & 'box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @CRLF & _             @TAB & '-webkit-border-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius: 4px;' & @CRLF & _             @TAB & 'border-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.triangle-border.left:after {' & @CRLF & _             @TAB & 'content: "";' & @CRLF & _             @TAB & 'position: absolute;' & @CRLF & _             @TAB & 'top: 7px;' & @CRLF & _             @TAB & 'left: -15px;' & @CRLF & _             @TAB & 'border: 6px outset transparent;' & @CRLF & _             @TAB & 'border-right: 6px solid #ADDDE7;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '</style>' & @CRLF & _  ; End of StyleSheet - Edit this Section to change the Style.             '' & @CRLF & _             @CRLF & _             '' & @CRLF & _             @CRLF & _             '<h1>' & $sScriptName & '</h1>' & @CRLF & _             @CRLF & _             '<div class="triangle-border left">' & $sUpdatedText & ' ' & @MDAY & '-' & @MON & '-' & @YEAR & ' ' & @HOUR & ':' & @MIN & ':' & @SEC & '</div>' & @CRLF & _             @CRLF & _             '<div class="infoline">' & @CRLF & _             @TAB & '<p>' & @CRLF & _             @TAB & '<span class="bold noborder">' & $sTotalText & '</span>: ' & $iCount & @CRLF & _             @TAB & '</p>' & @CRLF & _             '</div>' & @CRLF & _             @CRLF & _             '' & @CRLF & _             '' & @CRLF     $sHTMLFooter = '' & @CRLF & _             '<table cellspacing="0" cellpadding="0"><tbody></tbody></table>' & @CRLF & _             @CRLF & _             '<div class="footer">' & @CRLF & _             '<p>' & @CRLF & _             $sCreatedText & ' <a href="' & $sURL & '" target="_blank">' & $sScriptName & '</a>' & @CRLF & _             @TAB & '<span class="italic"></span>' & @CRLF & _             @TAB & ' ' & @CRLF & _             @TAB & ' ' & @CRLF & _             @TAB & '<a href="#" class="top">' & $sTopText & '</a>' & @CRLF & _             @TAB & '</p>' & @CRLF & _             '</div>' & @CRLF & _             @CRLF & _             '' & @CRLF & _             '' & @CRLF     $hFileOpen = FileOpen($sFile, 2 + 8 + 128)     FileWrite($hFileOpen, $sHTMLHeader & $sHTMLColumns & $sHTMLBody & $sHTMLFooter)     FileClose($hFileOpen)     If @error Then         $iError = 1     EndIf     Return SetError($iError, 0, $sFile) EndFunc   ;==>_GUICtrlListView_SaveHTML

Example use of Function without Array:
AutoIt         
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <guiconstantsex.au3> #include <guilistview.au3> #include <windowsconstants.au3> _Main() Func _Main()     Local $hListView, $iButton, $iListView, $sPrintOut     GUICreate("_GUICtrlListView_SaveHTML()", 400, 300, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_SIZEBOX))     $iListView = GUICtrlCreateListView("", 0, 0, 400, 270)     $hListView = GUICtrlGetHandle($iListView)     GUICtrlSetResizing(-1, $GUI_DOCKBORDERS)     $iButton = GUICtrlCreateButton("Export HTML", 400 - 80, 275, 75, 22.5)     GUICtrlSetResizing(-1, $GUI_DOCKRIGHT + $GUI_DOCKSIZE + $GUI_DOCKBOTTOM)     GUISetState(@SW_SHOW)     __ListViewFill($hListView, Random(1, 5, 1), Random(25, 100, 1)) ; Fill the ListView with Random data.     While 1         Switch GUIGetMsg()             Case $GUI_EVENT_CLOSE                 Exit             Case $iButton                 $sPrintOut = _GUICtrlListView_SaveHTML($hListView, @ScriptDir & "Export.html", "http://www.autoitscript.com/forum")                 ShellExecute($sPrintOut)         EndSwitch     WEnd EndFunc   ;==>_Main ; #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 ; #FUNCTION# ========================================================================================================= ; Name...........: _GUICtrlListView_SaveHTML() ; Description ...: Exports the details of a ListView to a .html file. It will also convert URL's into hyperlinks. ; Syntax.........: _GUICtrlListView_SaveHTML($hListView, $sFile, [$sURL = ""]) ; Parameters ....: $hListView - Handle of the ListView. ;                  $sFile - FilePath, this should ideally use the filetype .html e.g. @ScriptDir & "Example.html" ;                  $sURL - [Optional] A URL to link to your applications website. [Default = ""] ; Requirement(s).: v3.2.12.1 or higher ; Return values .: Success - Returns filepath. ;                  Failure - Returns filepath & sets @error = 1 ; Author ........: guinness & HTML syntax by tproli with modifications by Lupo73 ; Example........; Yes ;===================================================================================================================== Func _GUICtrlListView_SaveHTML($hListView, $sFile, $sURL = "")     Local $aColumns, $hFileOpen, $iCount, $iError = 0, $sAlternative, $sHTMLBody, $sHTMLColumns, $sHTMLFooter, $sHTMLHeader, $sIndex, $sScriptName = StringTrimRight(@ScriptName, 4)     Local $sCreatedText = "Created with", $sTopText = "Top", $sTotalText = "Total count", $sUpdatedText = "Updated" ; Text Strings.     Local $iColumnCount = _GUICtrlListView_GetColumnCount($hListView)     Local $iItemCount = _GUICtrlListView_GetItemCount($hListView)     $sHTMLColumns = '' & @CRLF ; ListView Columns     $sHTMLColumns &= @TAB & '' & '#' & '' & @CRLF     For $A = 0 To $iColumnCount - 1         $aColumns = _GUICtrlListView_GetColumn($hListView, $A)         $sHTMLColumns &= @TAB & '' & $aColumns[5] & '' & @CRLF     Next     $sHTMLColumns &= '' & @CRLF     For $A = 0 To $iItemCount - 1 ; ListView Items.         $sAlternative = "even"         If Mod($A, 2) Then             $sAlternative = 'odd'         EndIf         $sHTMLBody &= '' & @CRLF         $sHTMLBody &= @TAB & '' & $A + 1 & '' & @CRLF         For $B = 0 To $iColumnCount - 1             $sIndex = _GUICtrlListView_GetItemText($hListView, $A, $B)             If StringRegExp($sIndex, "(ftp|http|https)://(w+:{0,1}w*@)?(S+)(:[0-9]+)?(/|/([w#!:.?+=&%@!-/]))?") Then                 $sIndex = '<a href="' & $sIndex & '" class="url" target="_blank">' & $sIndex & '</a>'             EndIf             $sHTMLBody &= @TAB & '' & $sIndex & '' & @CRLF         Next         $sHTMLBody &= '' & @CRLF     Next     $iCount = $A     $sHTMLHeader = '<!-- ' & $sCreatedText & ' ' & $sScriptName & ' -->' & @CRLF & _             '' & @CRLF & _             '' & @CRLF & _             @CRLF & _             @CRLF & _             '' & @CRLF & _             '<meta http-equiv="content-type" content="text/html;charset=UTF-8">' & @CRLF & _             '<title>' & $sScriptName & '</title>' & @CRLF & _             '<style type="text/css">' & @CRLF & _ ; Start of StyleSheet -  Edit this Section to change the Style.             'html {' & @CRLF & _             @TAB & 'background: #E4ECF2;' & @CRLF & _             @TAB & 'margin: 0;' & @CRLF & _             @TAB & 'padding: 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'body {' & @CRLF & _             @TAB & 'padding-left: 50px;' & @CRLF & _             @TAB & 'font-family: Arial, sans-serif;' & @CRLF & _             @TAB & 'font-size: 12px;' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'min-width: 990px;' & @CRLF & _             @TAB & 'height: auto;' & @CRLF & _             @TAB & 'margin: 0;' & @CRLF & _             @TAB & 'padding: 30px 40px 30px 40px;' & @CRLF & _             @CRLF & _             @TAB & 'background: #E4ECF2; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #EFF5F9 0%, #E4ECF2 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#EFF5F9), color-stop(100%,#E4ECF2)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #EFF5F9 0%,#E4ECF2 100%); /* IE10+ */' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a {' & @CRLF & _             @TAB & 'outline: none;' & @CRLF & _             @TAB & 'color: #0096BF;' & @CRLF & _             @TAB & 'padding: 3px 5px 3px 3px;' & @CRLF & _             @TAB & '-o-border-radius: 3px;' & @CRLF & _             @TAB & '-ms-border-radius: 3px;' & @CRLF & _             @TAB & '-moz-border-radius: 3px;' & @CRLF & _             @TAB & '-webkit-border-radius: 3px;' & @CRLF & _             @TAB & 'border-radius: 3px;' & @CRLF & _             @TAB & 'text-decoration: none;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a:hover {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'background-color: #BFE1EA;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #c9f0f5;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.top {' & @CRLF & _             @TAB & 'color: #8397A7;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #FFF;' & @CRLF & _             @TAB & 'padding: 4px 8px 4px 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.top:hover {' & @CRLF & _             @TAB & 'color: #49647A;' & @CRLF & _             @TAB & 'background-color: transparent;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.url {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'a.url:hover {' & @CRLF & _             @TAB & 'color: #233447;' & @CRLF & _             @TAB & 'text-decoration: underline;' & @CRLF & _             @TAB & 'background-color: transparent;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'h1 {' & @CRLF & _             @TAB & 'color: #0096BF;' & @CRLF & _             @TAB & 'font-size: 28px;' & @CRLF & _             @TAB & 'display: inline;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.bold {' & @CRLF & _             @TAB & 'font-weight: bold;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.italic {' & @CRLF & _             @TAB & 'font-style: italic;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.uppercase {' & @CRLF & _             @TAB & 'text-transform: uppercase;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline {' & @CRLF & _             @TAB & 'margin-top: 30px;' & @CRLF & _             @TAB & 'margin-bottom: 15px;' & @CRLF & _             @TAB & 'height: 12px;' & @CRLF & _             @TAB & 'line-height: 12px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span {' & @CRLF & _             @TAB & 'border-left: 1px solid #233447;' & @CRLF & _             @TAB & 'padding-left: 10px;' & @CRLF & _             @TAB & 'margin-left: 10px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span:first-child {' & @CRLF & _             @TAB & 'border-left: none;' & @CRLF & _             @TAB & 'padding-left: 0;' & @CRLF & _             @TAB & 'margin-left: 0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.infoline span.noborder {' & @CRLF & _             @TAB & 'border: none !important;' & @CRLF & _             @TAB & 'margin-left: 0 !important;' & @CRLF & _             @TAB & 'padding-left: 0 !important;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'div.footer {' & @CRLF & _             @TAB & 'position: relative;' & @CRLF & _             @TAB & 'margin-top: 20px;' & @CRLF & _             @TAB & 'margin-bottom: 30px;' & @CRLF & _             '}' & @CRLF & _             @CRLF     $sHTMLHeader &= 'table {' & @CRLF & _             @TAB & 'border: 1px solid #FFF;' & @CRLF & _             @TAB & 'border-spacing: 0;' & @CRLF & _             @CRLF & _             @TAB & '-o-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & '-moz-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & '-webkit-box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @TAB & 'box-shadow: 0px 0px 10px #BCD2EB;' & @CRLF & _             @CRLF & _             @TAB & '-o-background-clip: padding-box;' & @CRLF & _             @TAB & '-ms-background-clip: padding-box;' & @CRLF & _             @TAB & '-moz-background-clip: padding-box;' & @CRLF & _             @TAB & '-webkit-background-clip: padding-box;' & @CRLF & _             @TAB & 'background-clip: padding-box;' & @CRLF & _             @CRLF & _             @TAB & 'background-color: #FFF;' & @CRLF & _             @CRLF & _             @TAB & '-o-border-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-radius: 4px;' & @CRLF & _             @TAB & 'border-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th, table td {' & @CRLF & _             @TAB & 'padding: 2px 12px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th {' & @CRLF & _             @TAB & 'text-transform: uppercase;' & @CRLF & _             @TAB & 'color: #FFF;' & @CRLF & _             @TAB & 'font-size: 11px;' & @CRLF & _             @TAB & 'text-align: left;' & @CRLF & _             @TAB & 'padding-top: 4px;' & @CRLF & _             @TAB & 'height: 22px;' & @CRLF & _             @TAB & 'line-height: 22px;' & @CRLF & _             @CRLF & _             @TAB & 'background: rgb(59,103,158); /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, rgba(59,103,158,1) 0%, rgba(43,136,217,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(59,103,158,1)), color-stop(50%,rgba(43,136,217,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(100%,rgba(125,185,232,1))); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, rgba(59,103,158,1) 0%,rgba(43,136,217,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'text-shadow: -1px -1px #3A68A0;' & @CRLF & _             @TAB & 'border-bottom: 1px solid #3A68A0;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table td:first-child {' & @CRLF & _             @TAB & 'text-align: right;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:first-child {' & @CRLF & _             @TAB & 'text-align: right;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:first-child {' & @CRLF & _             @TAB & '-o-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-top-left-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius-topleft: 4px;' & @CRLF & _             @TAB & 'border-top-left-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table th:last-child {' & @CRLF & _             @TAB & '-o-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-ms-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-webkit-border-top-right-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius-topright: 4px;' & @CRLF & _             @TAB & 'border-top-right-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table td {' & @CRLF & _             @TAB & 'height: 23px;' & @CRLF & _             @TAB & 'line-height: 23px;' & @CRLF & _             @TAB & 'border-bottom: 1px solid #D9EBEB;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr:last-child td {' & @CRLF & _             @TAB & 'border-bottom: none;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr.even {' & @CRLF & _             @TAB & 'background-color: #F2F9FD;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             'table tr:hover {' & @CRLF & _             @TAB & 'background: #DEF4FA; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #DEF4FA 0%, #D5F2F9 50%, #C9EEF7 51%, #FFFEFD 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#DEF4FA), color-stop(50%,#D5F2F9), color-stop(51%,#C9EEF7), color-stop(100%,#FFFEFD)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, #DEF4FA 0%,#D5F2F9 50%,#C9EEF7 51%,#FFFEFD 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'text-shadow: 1px 1px rgba(255,255,255,0.5);' & @CRLF & _             '}' & @CRLF & _             @CRLF     $sHTMLHeader &= '.triangle-border {' & @CRLF & _             @TAB & 'position: relative;' & @CRLF & _             @TAB & 'display: inline;' & @CRLF & _             @TAB & 'padding: 5px 10px 4px 10px;' & @CRLF & _             @TAB & 'background-color: #DAF0F5;' & @CRLF & _             @CRLF & _             @TAB & 'background: #EDFAFC; /* Old browsers */' & @CRLF & _             @TAB & 'background: -moz-linear-gradient(top, #EDFAFC 5%, #DCF1F4 5%, #D4EEF4 100%); /* FF3.6+ */' & @CRLF & _             @TAB & 'background: -webkit-gradient(linear, left top, left bottom, color-stop(5%,#EDFAFC), color-stop(5%,#DCF1F4), color-stop(100%,#D4EEF4)); /* Chrome, Safari4+ */' & @CRLF & _             @TAB & 'background: -webkit-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* Chrome10+, Safari5.1+ */' & @CRLF & _             @TAB & 'background: -o-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* Opera11.10+ */' & @CRLF & _             @TAB & 'background: -ms-linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* IE10+ */' & @CRLF & _             @TAB & 'background: linear-gradient(top, #EDFAFC 5%,#DCF1F4 5%,#D4EEF4 100%); /* W3C */' & @CRLF & _             @CRLF & _             @TAB & 'top: -6px;' & @CRLF & _             @TAB & 'margin-left: 28px;' & @CRLF & _             @TAB & 'text-shadow: 1px 1px #EDFAFC;' & @CRLF & _             @TAB & 'border: 1px solid #BFE1EA;' & @CRLF & _             @TAB & 'border-bottom-width: 1px;' & @CRLF & _             @TAB & 'border-bottom-color: #DCF1F4;' & @CRLF & _             @CRLF & _             @TAB & '-o-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & '-moz-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & '-webkit-box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @TAB & 'box-shadow: 0 2px 0 #AEDBE6;' & @CRLF & _             @CRLF & _             @TAB & '-webkit-border-radius: 4px;' & @CRLF & _             @TAB & '-moz-border-radius: 4px;' & @CRLF & _             @TAB & 'border-radius: 4px;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '.triangle-border.left:after {' & @CRLF & _             @TAB & 'content: "";' & @CRLF & _             @TAB & 'position: absolute;' & @CRLF & _             @TAB & 'top: 7px;' & @CRLF & _             @TAB & 'left: -15px;' & @CRLF & _             @TAB & 'border: 6px outset transparent;' & @CRLF & _             @TAB & 'border-right: 6px solid #ADDDE7;' & @CRLF & _             '}' & @CRLF & _             @CRLF & _             '</style>' & @CRLF & _  ; End of StyleSheet - Edit this Section to change the Style.             '' & @CRLF & _             @CRLF & _             '' & @CRLF & _             @CRLF & _             '<h1>' & $sScriptName & '</h1>' & @CRLF & _             @CRLF & _             '<div class="triangle-border left">' & $sUpdatedText & ' ' & @MDAY & '-' & @MON & '-' & @YEAR & ' ' & @HOUR & ':' & @MIN & ':' & @SEC & '</div>' & @CRLF & _             @CRLF & _             '<div class="infoline">' & @CRLF & _             @TAB & '<p>' & @CRLF & _             @TAB & '<span class="bold noborder">' & $sTotalText & '</span>: ' & $iCount & @CRLF & _             @TAB & '</p>' & @CRLF & _             '</div>' & @CRLF & _             @CRLF & _             '' & @CRLF & _             '' & @CRLF     $sHTMLFooter = '' & @CRLF & _             '<table cellspacing="0" cellpadding="0"><tbody></tbody></table>' & @CRLF & _             @CRLF & _             '<div class="footer">' & @CRLF & _             '<p>' & @CRLF & _             $sCreatedText & ' <a href="' & $sURL & '" target="_blank">' & $sScriptName & '</a>' & @CRLF & _             @TAB & '<span class="italic"></span>' & @CRLF & _             @TAB & ' ' & @CRLF & _             @TAB & ' ' & @CRLF & _             @TAB & '<a href="#" class="top">' & $sTopText & '</a>' & @CRLF & _             @TAB & '</p>' & @CRLF & _             '</div>' & @CRLF & _             @CRLF & _             '' & @CRLF & _             '' & @CRLF     $hFileOpen = FileOpen($sFile, 2 + 8 + 128)     FileWrite($hFileOpen, $sHTMLHeader & $sHTMLColumns & $sHTMLBody & $sHTMLFooter)     FileClose($hFileOpen)     If @error Then         $iError = 1     EndIf     Return SetError($iError, 0, $sFile) EndFunc   ;==>_GUICtrlListView_SaveHTML Func __ListViewFill($hListView, $iColumns, $iRows) ; Required only for _Main(), but not the UDF!     For $A = 0 To $iColumns - 1         _GUICtrlListView_InsertColumn($hListView, $A, "Column " & $A + 1, 50)         _GUICtrlListView_SetColumnWidth($hListView, $A - 1, -2)     Next     For $A = 0 To $iRows - 1         _GUICtrlListView_AddItem($hListView, Chr(Random(65, 90, 1)) & " - Row " & $A + 1 & ": Col 1", $A)         For $B = 1 To $iColumns             _GUICtrlListView_AddSubItem($hListView, $A, "Row " & $A + 1 & ": Col " & $B + 1, $B)         Next     Next EndFunc   ;==>__ListViewFill

Download the ZIP file to obtain all exporting Examples. Attached File  ListView Export.zip   19.96K   747 downloads

Update: 17/08/2011 - Added new theme. Thanks to tproli for the original HTML syntax with modifications by Lupo73.

Other Examples for exporting ListView data are: _GUICtrlListView_SaveCSV(), _GUICtrlListView_SaveTxt() & _GUICtrlListView_SaveXML()

If you want to create an array from the HTML file generated by _GUICtrlListView_SaveHTML() then use _GUICtrlListView_HTMLToArray().

Edited by guinness, 13 December 2011 - 09:49 PM.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013








#2 hench

hench

    Wayfarer

  • Active Members
  • Pip
  • 67 posts

Posted 21 January 2011 - 06:53 PM

Hi guiness,

That's clever idea, I will have to test this out with thousands of items !!!

Thanks for sharing,

hench

#3 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 21 January 2011 - 06:57 PM

No, problem it works with how many items are in the ListView :) If you understand CSS and want to jazz it up then by all means! But please post the style here ;) Because currently the style is a little bland.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#4 strikeraid

strikeraid

    Seeker

  • Active Members
  • 19 posts

Posted 18 February 2011 - 06:03 PM

This might be what I'm looking for... Genius guinness

Is there any way to reverse it and load the data from the html?

Edited by strikeraid, 18 February 2011 - 06:04 PM.


#5 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 18 February 2011 - 07:00 PM

This might be what I'm looking for... Genius guinness

Wow, thanks, Didn't realise anyone was going to use this.

Is there any way to reverse it and load the data from the html?

Should be easy enough to do with SRE etc. Might have a look in the next couple of days!

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#6 strikeraid

strikeraid

    Seeker

  • Active Members
  • 19 posts

Posted 19 February 2011 - 10:39 PM

Thanks! I bookmarked this page just in case. (: Glad I did. Saving to HTML would add variety; handy indeed.

#7 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 01 June 2011 - 10:44 AM

I just updated the OP with a new and improved version of _GUICtrlListView_SaveHTML() which was previously called _GUICtrlListView_PrintOut(). Any suggestions for colour schemes would be much appreciated. Thanks.

Edited by guinness, 01 June 2011 - 11:16 AM.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#8 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,322 posts

Posted 01 June 2011 - 10:56 AM

Nice.
I think _GUICtrlListView_SaveHTML() would be more apropriate name.

#9 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 01 June 2011 - 11:02 AM

True, I was just going with the same naming convention as my _GUICtrlListView_CreateArray(), but I will change it :huh2: Thanks Zedna.

Edited by guinness, 01 June 2011 - 11:02 AM.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#10 Ascend4nt

Ascend4nt

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,073 posts

Posted 01 June 2011 - 11:19 AM

Nice job. Why not make an array version of the conversion routines instead? You can just link to _GUICtrlListView_CreateArray(), or include it somehow.. seems a much nicer way to go, plus gives those of us with arrays an easier option. Would be pretty nice combined with my _DLLStructDisplay(). Hmm.. I think I'll take my advice and return an array as an option with that UDF.. *walks away muttering to self*

#11 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 01 June 2011 - 11:25 AM

I was planning in the next couple of days to create another version using _GUICtrlListView_CreateArray() which is what I normally do, but I know some people can be a little funny when they have to use alot of Functions in their Script. OR you can do what you muttered :huh2:

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#12 Manadar

Manadar

    Taking a REST.

  • MVPs
  • 10,714 posts

Posted 01 June 2011 - 12:41 PM

You forgot to make seperate threads for XML, YAML, JSON, etc.etc.

#13 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 01 June 2011 - 12:52 PM

You forgot to make seperate threads for XML, YAML, JSON, etc.etc.

XML! Nice suggestion, I will have a look at adding more formats in the following days. Thanks Manadar.

Also I didn't realise that I should have posted these under the same thread. I did it only for searching purposes. If Mod feels I have abused the Example Forum, then by all means consolidate these into a single thread. My intention wasn't to annoy anyone at all only provide productive examples and give back to the community :huh2:

Edited by guinness, 01 June 2011 - 12:56 PM.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#14 Manadar

Manadar

    Taking a REST.

  • MVPs
  • 10,714 posts

Posted 01 June 2011 - 01:01 PM

XML! Nice suggestion, I will have a look at adding more formats in the following days. Thanks Manadar.

Should have left it at that. I can understand the desire to optimize for SEO.

#15 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 01 June 2011 - 01:06 PM

OK! I genuinely thought I had abused/misread the rules of the Example Forum when it comes to posting related topics.

Edited by guinness, 01 June 2011 - 01:13 PM.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#16 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,322 posts

Posted 01 June 2011 - 02:46 PM

If you have your TXT,CSV versions of this function in separate topics
then add links to it in this topic so if somebody wants to see/download
all 3 HTML/TXT/CSV functions then he can do it simple.
Also add links to all functions to these other (TXT,CSV) topics.

#17 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 05 June 2011 - 04:57 PM

So after much feedback I've now released new versions across the "Export Series" that also uses my Function _GUICtrlListView_CreateArray(). (Thanks to Ascend4nt for the suggestion.) I've also attached a ZIP in all of the posts that includes both of the Examples (Array & non-Array) as well as all the various Export types in the series..

As Mat suggested I could create a large Function & using a "Flag" to determine which Export style should be used & of course I will probably do that very soon, but I want users to have a fair amount of choices with these Examples.

Note: I haven't updated the other sub-forums because I don't feel it's necessary this time :huh2:

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#18 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 16 August 2011 - 09:57 PM

I didn't think I would need to update this, but after tproli created a wonderful theme using only CSS & HTML, I felt it was only right to upload. The HTML syntax is thanks to tproli with modifications by Lupo73. Enjoy! :mellow:

This is the default theme:
Posted Image

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#19 guinness

guinness

    guinness

  • MVPs
  • 10,433 posts

Posted 13 December 2011 - 09:46 PM

If you want to create an array from the HTML file generated by _GUICtrlListView_SaveHTML() then use the following:

_GUICtrlListView_HTMLToArray:
AutoIt         
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #include <Array.au3> Global $aArray $aArray = _GUICtrlListView_HTMLToArray("Export.html") _ArrayDisplay($aArray) Func _GUICtrlListView_HTMLToArray($sFile, $sDelimeter = "|")     Local $aReturn[1][2] = [[0, 2]], $hFileOpen, $iColumnNumber = 0, $iColumnNumbers, $iDim = 0, $iOffSet, $iUbound, $sColumns, $sData     $hFileOpen = FileOpen($sFile, 0)     If $hFileOpen = -1 Then         Return SetError(1, 0, $aReturn)     EndIf     $sData = FileRead($hFileOpen)     FileClose($hFileOpen)     $aArray = StringRegExp($sData, '(?s)(?i)<th>(.*?)</th>', 3)     If @error Then         Return SetError(1, 0, $aReturn)     EndIf     $iColumnNumbers = UBound($aArray, 1)     For $A = 1 To $iColumnNumbers - 2         $sColumns &= $aArray[$A] & $sDelimeter     Next     $sColumns = StringTrimRight($sColumns, StringLen($sDelimeter))     $aArray = StringRegExp($sData, '(?s)(?i)<td>(.*?)</td>', 3)     If @error Then         Return SetError(1, 0, $aReturn)     EndIf     $iUbound = UBound($aArray, 1)     $aReturn[0][1] = $iColumnNumbers - 1     If $iColumnNumbers < 3 Then         $aReturn[0][1] = 3         $iDim = 3 - ($iColumnNumbers - 1)     EndIf     ReDim $aReturn[$iUbound][($iColumnNumbers - 1) + $iDim]     $iOffSet = $iColumnNumbers - 2     For $A = 0 To $iUbound - 1         $aReturn[0][0] += 1         $A += 1         $iColumnNumber = 0         For $B = $A To ($A + ($iOffSet))             $aReturn[$aReturn[0][0]][$iColumnNumber] = $aArray[$B]             $iColumnNumber += 1         Next         $A += $iOffSet     Next     $aReturn[0][2] = $sColumns     ReDim $aReturn[$aReturn[0][0] + 1][$aReturn[0][1]]     Return $aReturn EndFunc   ;==>_GUICtrlListView_HTMLToArray

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#20 azerty

azerty

    Seeker

  • Active Members
  • 5 posts

Posted 20 March 2012 - 12:05 PM

When I try the function _GUICtrlListView_SaveHTML(), I get the folowwing error:

"String missing closing quote."

Even If I try the examples.
Any idea what's going wrong?

Edited by azerty, 20 March 2012 - 12:05 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users