Jump to content

Recommended Posts

Posted

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.
Posted

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

;#######

Posted

; then copy the list items from the external application to my listview

Your 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... :)

Posted

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.

Posted

@FireLord oops my mistake I mean @JesusIsKing

This 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 index

So if your count is lets say 5

Then the Index of the last item in the list is index 4.

Cheers

Posted

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?

Create an account or sign in to comment

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

Create an account

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

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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