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 

Retrieving Info From Another Window

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Wicked



Joined: 07 Jun 2008
Posts: 29

PostPosted: Fri Jun 20, 2008 8:45 am    Post subject: Retrieving Info From Another Window Reply with quote

Now, I don't need the exact code, just a nudge in the right direction.

I have to censor the screenshot due to privacy reasons, but take a look.



Now, what I need to know, is it possible to grab all the results with "(SPS BE TL) Stephen", for example? Pretend the title of the window is "AutoHotKey Agents".

The idea is for me to grab all the ones with a given Supervisor, then create a simple GUI which will display only the results from the previous window with that specific supervisor.

I can handle the variable stuff and GUI stuff... Just not sure how I would get the names of the ones with a specific supervisor.

All help is appreciated.
Back to top
View user's profile Send private message
John W



Joined: 09 Apr 2007
Posts: 169

PostPosted: Fri Jun 20, 2008 8:53 am    Post subject: Reply with quote

Did you try WinGetText?
_________________
John
Inactive - Until AutoHotkey is available for Linux.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5884

PostPosted: Fri Jun 20, 2008 8:56 am    Post subject: Reply with quote

Welcome to the AutoHotkey Community!

What is the ClassNN of the control ? Use AU3 spy to find it out.
If it is SysListView32x you could retrieve the listview contents with

Code:
ControlGet, OutputVar, List, Options, SysListView321, WinTitle, WinText


Smile
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
Wicked



Joined: 07 Jun 2008
Posts: 29

PostPosted: Fri Jun 20, 2008 8:45 pm    Post subject: Reply with quote

Bleh, I've been with the AHK community for a while, just never needed help. Razz

The other window isn't an AHK window, but ControlGet would still work?

What is ClassNN? I know I sound nub, but I really pwn in AHK... Just not in this area.

Thank-you for your time.
Back to top
View user's profile Send private message
Krogdor



Joined: 18 Apr 2008
Posts: 908
Location: The Interwebs

PostPosted: Fri Jun 20, 2008 8:48 pm    Post subject: Reply with quote

ControlGet will work with any window, AHK or otherwise.

To find the ClassNN, open Window Spy and click on the control.
In the section of Window Spy that says >>>>>>( Now Under Mouse Cursor )<<<<<< there is a part that says ClassNN: xxxxx. That is the ClassNN.
Back to top
View user's profile Send private message AIM Address
Wicked



Joined: 07 Jun 2008
Posts: 29

PostPosted: Fri Jun 20, 2008 9:23 pm    Post subject: Reply with quote

Kks. I'm not at work at the moment, but I'll try it tonight and post the results.

Thanks again!
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 5884

PostPosted: Sat Jun 21, 2008 10:45 am    Post subject: Reply with quote

Wicked wrote:
Bleh, I've been with the AHK community for a while, just never needed help. Razz


Ok then, Thanks for Registering! You Indian ? I am. Smile
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
Wicked



Joined: 07 Jun 2008
Posts: 29

PostPosted: Sat Jun 21, 2008 11:29 am    Post subject: Reply with quote

Rofl. Canadian here.

The ControlGet worked great. Although the list was about 3,000 lines, so I had to do a few Parses and such... But TY for everyone's help.

Like I said, I can pwn in AHK... Just not in all areas. I use AHK to build my 3D maps for the online game I run, for example.

TY again,
Steve
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

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


Powered by phpBB © 2001, 2005 phpBB Group