AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

v1.0.37 released: Retrieve text from external ListViews
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Thu Jul 21, 2005 11:28 pm    Post subject: v1.0.37 released: Retrieve text from external ListViews Reply with quote

Here are the changes for v1.0.37:

Fixed inability of WinGetText and "WinGet ControlList" to output to Clipboard.
Fixed inability to retrieve Clipboard more than once in the same line.
Fixed LV_ModifyCol() to accept floating point column widths. [thanks Toralf]
Improved StatusBarWait to continue waiting even if the bar becomes temporarily unresponsive.
Improved "ControlGet, List" with the ability to get text and other info from ListViews such as Explorer.

The last feature above is fairly significant because a lot of people have asked for it over the past year. Please let me know if you have any problems with it.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1715

PostPosted: Fri Jul 22, 2005 1:32 am    Post subject: Reply with quote

Quote:
Improved "ControlGet, List" with the ability to get text and other info from ListViews such as Explorer.

thanx! one of these days i was going to ask for this too!! Smile

but its not working for me... i opened an explorer window and pointed it to my C:\ (i've enabled full path in title bar) and ran this:

ControlGet, var, List,, SysListView321, C:\
msgbox %var%`n%errorlevel%

it just shows 1 in errorlevel! where's the problem?
though it works correctly on the SysListView32 of another ahk script's gui.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Fri Jul 22, 2005 2:14 am    Post subject: Reply with quote

That example works on my Explorer. Could it be that some other window matches C:\ too, and thus it's accessing the wrong window?

Also, if you're using a non-admin username, that might explain it.

If not, the fact that it's giving ErrorLevel 1 means that it could be one of about ten things (5 of which probably never happen in the real world).
Back to top
View user's profile Send private message Send e-mail
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Fri Jul 22, 2005 8:15 am    Post subject: Reply with quote

I have non-admin user rights and this works with all explorer windows that have "C:\" in their title.
AHK 1.0.37 on WinXP Pro
Code:
F3::
  ControlGet, var, List,, SysListView321, C:\
  msgbox %var%`n%errorlevel%
return

_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jordis



Joined: 30 Jul 2004
Posts: 78

PostPosted: Fri Jul 22, 2005 12:04 pm    Post subject: Reply with quote

Example works wonderfully here with Win2k Spanish...
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Fri Jul 22, 2005 2:18 pm    Post subject: Reply with quote

toralf wrote:
I have non-admin user rights and this works with all explorer windows
Thanks for this report. Until now, I wasn't completely sure it would work without admin rights (because the program opens the target window's process).
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1715

PostPosted: Fri Jul 22, 2005 3:50 pm    Post subject: Reply with quote

this is so frustrating! it works for everybody else but me!!

i tried to use the cmd on a folder whose title couldn't be matching with any other window but it still didn't work.

still to be sure i got the HWND of the window and ran this:
ControlGet, OutputVar, List,, SysListView321, ahk_id 0x70470

still the same result! Sad
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Fri Jul 22, 2005 5:56 pm    Post subject: Reply with quote

Maybe you have something installed that customizes your Explorer. Or perhaps there is an explorer setting somewhere that prevents AutoHotkey from extracting the text.

If you can't get it to work (especially if the problem occurs on other systems), I could send you a debug version that will report via MsgBox a more precise reason for the failure.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1715

PostPosted: Fri Jul 22, 2005 7:28 pm    Post subject: Reply with quote

to test i ran on another xp installation on my machine with a minimum no. of installed apps... that doesn't work either!

please send me that debug version... do remember to rename the exe to something else to take care of gmail's stupid restriction.
_________________
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Sat Jul 23, 2005 2:19 am    Post subject: Reply with quote

It doesn't seem to work for me either... WinXP Pro SP2
Back to top
View user's profile Send private message Visit poster's website
Rajat



Joined: 28 Mar 2004
Posts: 1715

PostPosted: Sat Jul 23, 2005 2:57 am    Post subject: Reply with quote

corrupt wrote:
It doesn't seem to work for me either... WinXP Pro SP2

armed with my error reports Chris must be fixing it... just to check if u've the same problem as i do, just change the view in explorer to show details of files (view menu) and chech again.
_________________
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Sat Jul 23, 2005 3:13 am    Post subject: Reply with quote

Rajat wrote:
armed with my error reports Chris must be fixing it... just to check if u've the same problem as i do, just change the view in explorer to show details of files (view menu) and chech again.

Switching the view to anything else (not specifically details) then reloading the script seems to work ok but if I close the window and browse to C:\ again it is not found again Shocked . Clicking back then forward can also cause the script to lose the ListView again. Leaving the view on details seems to be the only view that is found without changing views each time...
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Sat Jul 23, 2005 3:55 am    Post subject: Reply with quote

For v1.0.37.01: Fixed "ControlGet, List" for ListViews in List/Icon view. [thanks Rajat]

This issue had to do with assuming that all ListViews have a hidden header control from which the column count can be derived (there doesn't appear to be any other way to reliably determine a ListView's column count). But apparently, this is true only for ListViews that have more than one column or that are in report/details view.

Thanks for all the help fixing it.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1715

PostPosted: Sat Jul 23, 2005 9:16 pm    Post subject: Reply with quote

it now works great for me.... thanx a lot!!
_________________
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Sat Jul 23, 2005 9:24 pm    Post subject: Reply with quote

Works ok here too. Thanks Chris Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group