Sign in to follow this  
Followers 0
Vicks

GUI LISTVIEW

4 posts in this topic

say you have a gui with a listview with some text in it, you click the text in the listview and if you have notepad open it will copy it to notepad could i do that, not sure how to do it though


[s]Autoit[/s]

Share this post


Link to post
Share on other sites



if the content of the listview is listing a notepad/txt file just use GuiCtrlRead and use Run to open the text file.

Share this post


Link to post
Share on other sites

if the content of the listview is listing a notepad/txt file just use GuiCtrlRead and use Run to open the text file.

no i would like more or less you click on a item (a word in the listview) and it more or less copys and pastes it to ur select program (notepad) thanks

[s]Autoit[/s]

Share this post


Link to post
Share on other sites

Set a GUICtrlOnEvent for the listview items. Then when you click the item your script will go to the function you declared for the event. Then do a GUICtrlRead to get the text of the item selected. Then you will need to parse the item with string functions, unless you only have one column, otherwise the string will be like this: "word|word|word|word...". Then use FileWrite, Send, or however you want to get the desired string to notepad.

Nomad :D


Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0