Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Best way to copy GuiCtrlListView items text to memory (clipboard)?

$
0
0
Hello Everyone,

FIrst:  I Love AutoIT, love absolutely everything about it - thank you all so much!  It's the best :)

Second: What is the best way to copy and paste GuiCtrlListView items text to memory (clipboard)?  I'm not looking to reinvent the wheel.  I'm looking for advice.  I have about 8 columns with unknown numbers of rows.  I just want to be able to copy and paste what items I select from the GuiCtrlListView.  Here is the short of my code... I have an array of data I display - but not all array items...  easiest way?

[ autoit ]         
$ListViewSP01 = GUICtrlCreateListView ("TZ|Start|Name|OUT|Function|Comments|Cell|Phone",$LabelGui3Left02, $LabelGui3Top03, $LabelGui3Width03 , $ListViewSP01height, BitOR($LVS_EDITLABELS, $LVS_REPORT)) Local $iExListViewStyle = BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_FLATSB, $LVS_EX_HEADERDRAGDROP, $LVS_EX_GRIDLINES, $LVS_EX_CHECKBOXES, $LVS_EX_DOUBLEBUFFER, $LVS_EDITLABELS) _GUICtrlListView_SetExtendedListViewStyle($ListViewSP01, $iExListViewStyle) For $t02 = 0 To UBound($aGui3SP) - 1 $LabelGui3Number03[$t02] = GUICtrlCreateListViewItem($aGui3SP[$t02][1] & "|" & $aGui3SP[$t02][2] & "|" & $aGui3SP[$t02][3] & "|" & _ $aGui3SP[$t02][4] & "|" & $aGui3SP[$t02][5] & "|" & $aGui3SP[$t02][6] & "|" & $aGui3SP[$t02][7] & "|" & _ $aGui3SP[$t02][8], $ListViewSP01) Next GUISetState(@SW_SHOW , $hGUI03) _GUICtrlListView_RegisterSortCallBack($ListViewSP01) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _GUICtrlListView_UnRegisterSortCallBack($ListViewSP01)                  GUIDelete($hGUI03) Call ("Enable_Buttons02")                  ExitLoop Case $ListViewSP01              ; Kick off the sort callback              _GUICtrlListView_SortItems($ListViewSP01, GUICtrlGetState($ListViewSP01)) EndSwitch WEnd

Thanks everyone!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>