trids Posted December 15, 2003 Share Posted December 15, 2003 (edited) AI3 spy tells me that the listview I want to play with is called SysListView321. Now, is there a way to select a specific listitem there?I'm thinking maybe somehow with ControlCommand()?? Or is my lateral solution the regular/preferred way .. ;Lateral Solution ControlLeftClick ($sTitle, "", "SysListView321") ;setfocus on the listview Send ("{DOWN}" & $sListItemCaption) ;use intellisense to target the listitemTIA Edited December 15, 2003 by trids Link to comment Share on other sites More sharing options...
trids Posted December 15, 2003 Author Share Posted December 15, 2003 Thanks Larry, I agree .. "priorities". Hope the kids get better soon Meantime, my lateral solution is working okay, and it's a comfort to know I haven't missed something obvious Link to comment Share on other sites More sharing options...
bigred Posted August 11, 2004 Share Posted August 11, 2004 Has their been any progress with this set of commands? I am working on a project that uses AutoIt's activeX version with VB, and some commands like these would be perfect right now. The Window Spy gives me the info "Class: SysListView321 Text: List1", and "Class: SysListView322 Text: List1". I need a way to extract the text from the windows, and so far the only way I've been able to do that is with a special OCR program. Link to comment Share on other sites More sharing options...
CyberSlug Posted August 11, 2004 Share Posted August 11, 2004 You might also try the program CopyText http://www10.pair.com/vsap/FreeSoft.htmlCopyText works really well manually; however, I've had problems automating it with AutoIt Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
bigred Posted August 11, 2004 Share Posted August 11, 2004 You might also try the program CopyText http://www10.pair.com/vsap/FreeSoft.html CopyText works really well manually; however, I've had problems automating it with AutoIt <{POST_SNAPBACK}>Cool, thanks for the link, I'll check that out. Only thing is Im already using a 3rd party piece of software, and so far its been 99% correct, so I don't really have a problem there. My real concern is that I want to give this program to other people I know, and having them install extra software isn't going to work in this case. But this progam is very encouraging. At least we know it can be done. Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 11, 2004 Administrators Share Posted August 11, 2004 I really should look into the listview thing but hard to get time. If any of the devs can have a look at how to interact with them then that would be cool. Even at a high level (I think larry had a quick look and it involved shared memory and things) and I can take care of the rest. Deployment Blog:Â https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming:Â https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
this-is-me Posted August 11, 2004 Share Posted August 11, 2004 ControlCommand("Title", "", "SysListView321", "SelectString", 'string') works perfectly for me. Who else would I be? Link to comment Share on other sites More sharing options...
bigred Posted August 12, 2004 Share Posted August 12, 2004 That didn't do anything for me. Is there anything else I need to do to get that to work? Link to comment Share on other sites More sharing options...
this-is-me Posted August 12, 2004 Share Posted August 12, 2004 Did you change the parameters to suit your current situation? Who else would I be? Link to comment Share on other sites More sharing options...
bigred Posted August 12, 2004 Share Posted August 12, 2004 ControlCommand("AppName", "", "SysListView322", "SelectString", 'string') Is that right? Do I need to specify 'string'? Also where is the list info copied to? Clipboard, or a variable? Link to comment Share on other sites More sharing options...
this-is-me Posted August 13, 2004 Share Posted August 13, 2004 Yes you need to specify string, and all this does is to select the list item in the listbox, not copy the info to anywhere. You would need to use controlcommand with GetCurrentSelection to return what is selected. Who else would I be? Link to comment Share on other sites More sharing options...
this-is-me Posted August 15, 2004 Share Posted August 15, 2004 @all, I am so sorry to say that I am wrong. I have used controlcommand with listboxes and assumed that is what you referred to. If you really want to find some info on a syslistview32, then you can take this very dangerous approach: focus the listview. send f2. this tries to rename the item send CTRL+C. this copies the name send {ESC}. this cancels the rename use clipget() to get the name of the item send up, down, left, or right arrow keys to go to the next item repeat until the item you need is in focus, then do what you want ({enter} to run, {appskey} to bring up a menu, etc.) Who else would I be? Link to comment Share on other sites More sharing options...
bigred Posted August 17, 2004 Share Posted August 17, 2004 If I knew how, I'd be all over it. But that link you posted makes my face do this > 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