Vicks Posted July 14, 2006 Share Posted July 14, 2006 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] Link to comment Share on other sites More sharing options...
joseedwin Posted July 14, 2006 Share Posted July 14, 2006 if the content of the listview is listing a notepad/txt file just use GuiCtrlRead and use Run to open the text file. Link to comment Share on other sites More sharing options...
Vicks Posted July 14, 2006 Author Share Posted July 14, 2006 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] Link to comment Share on other sites More sharing options...
Nomad Posted July 14, 2006 Share Posted July 14, 2006 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 Link to comment Share on other sites More sharing options...
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