AutoHotkey Community

It is currently May 27th, 2012, 1:36 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 13th, 2005, 10:43 pm 
Offline

Joined: March 2nd, 2004, 10:10 pm
Posts: 443
Location: SLC, Utah
Is there going to be a way to add to a ListView from an exteral program? Like if I had two AHK scripts running could one Add to a ListView of the other?

I have ways to go around this with temporary files, just curious if this will be an option in the future, or even possible.

thanks,
beardboy


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 15th, 2005, 3:14 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I was toying with the idea of having LV_GetText() work on foreign ListViews (those not owned by the script itself). If it turns out to be feasible, your idea would be a natural extension to it.

Perhaps the syntax could be:
Gui, ListView, ClassNN, WinTitle, WinText
; Above would allow LV_Add(), LV_GetText, etc. to work on foreign ListViews.

I hope to check on the feasibility of this soon because the ability to extract text from non-AHK ListViews is a high priority. Thanks for the idea.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2005, 3:20 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I decided to do the ListView text retrieval by extending ControlGet rather than enhancing LV_GetText and the other LV functions. This is because it seemed to offer simpler syntax, while also being better in performance and smaller in code size.

The ability to add rows to external ListViews (those not owned by the script) is also something that would be non-trivial in code size, so it seemed best not to implement it. Another problem with it is that the target program might misbehave or even crash if it's not designed to cope with such intervention (though I think it would be okay to use between two AHK scripts, as you suggested).


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: oldbrother and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group