JesusIsKing Posted December 12, 2007 Posted December 12, 2007 how do i save the data from a list control into a variable?
martin Posted December 12, 2007 Posted December 12, 2007 how do i save the data from a list control into a variable?Have a look at the functions in GuiListView.au3. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
PsaltyDS Posted December 12, 2007 Posted December 12, 2007 Have a look at the functions in GuiListView.au3....or perhaps the simpler GuiListBox.au3 if it's not a ListView control. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
tittoproject Posted December 12, 2007 Posted December 12, 2007 It depends of your script, but you should look at the function GUICtrlRead. If you post the code you're working on, we can better help you
DW1 Posted December 12, 2007 Posted December 12, 2007 how do i save the data from a list control into a variable?One must first realize that Jesus is not king... from there... EVERYTHING seems to make more sense. AutoIt3 Online Help
evilertoaster Posted December 12, 2007 Posted December 12, 2007 One must first realize that Jesus is not king... from there... EVERYTHING seems to make more sense.And on post #666...how ironic.
JesusIsKing Posted December 12, 2007 Author Posted December 12, 2007 One must first realize that Jesus is not king... from there... EVERYTHING seems to make more sense.It is the devil himself.
Valuater Posted December 12, 2007 Posted December 12, 2007 And on post #666...how ironic.even more ironic, noticed and responce posted by "evilertoaster"8)
JesusIsKing Posted December 12, 2007 Author Posted December 12, 2007 For $i = 1 To $Search[0] Send($Search[$i] & "{Enter}") ; Searches for words $index = _GUICtrlListCount($Listbox) ; trying to get index $msg = _GUICtrlListGetText ( $Listbox, $index ) ; then trying to get the list items ; then copy the list items from the external application to my listview ;####### ; do it here ;#######
evilertoaster Posted December 12, 2007 Posted December 12, 2007 ; then copy the list items from the external application to my listviewYour trying to read it from an external application?even more ironic, noticed and responce posted by "evilertoaster"the particular mal-temperted toaster the name comes from have less to do with that number than you might imagine.Although I wouldn't imagine the retial price of the toaster in question being much different than $6.66...that would be interesting...
DW1 Posted December 12, 2007 Posted December 12, 2007 WOW, that is awesome... I didn't even realize that was my 666th post LMFAO AutoIt3 Online Help
JesusIsKing Posted December 12, 2007 Author Posted December 12, 2007 Your trying to read it from an external application?the particular mal-temperted toaster the name comes from have less to do with that number than you might imagine.Although I wouldn't imagine the retial price of the toaster in question being much different than $6.66...that would be interesting... yes, im trying to read it from an external application.
smashly Posted December 12, 2007 Posted December 12, 2007 @FireLord oops my mistake I mean @JesusIsKingThis will not return anything even if you have the variables correct:For $i = 1 To $Search[0] Send($Search[$i] & "{Enter}") ; Searches for words $index = _GUICtrlListCount($Listbox) ; trying to get index $msg = _GUICtrlListGetText ( $Listbox, $index ) ; then trying to get the list items ; then copy the list items from the external application to my listview ;####### ; do it here ;#######Since $index = _GUICtrlListCount($Listbox) will return the amount of items in the listbox..$msg = _GUICtrlListGetText ( $Listbox, $index ) is working with a Zero based indexSo if your count is lets say 5Then the Index of the last item in the list is index 4.Cheers
JesusIsKing Posted December 13, 2007 Author Posted December 13, 2007 what if the list is a single select list? i won't be able to use _GUICtrlSetSel? How do I copy everything from the external listview to mine? what functions can do it?
_Kurt Posted December 13, 2007 Posted December 13, 2007 Look up some Control* Commands ControlGetHandle and others Kurt Awaiting Diablo III..
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