| View previous topic :: View next topic |
| Author |
Message |
Wicked
Joined: 07 Jun 2008 Posts: 29
|
Posted: Fri Jun 20, 2008 8:45 am Post subject: Retrieving Info From Another Window |
|
|
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 |
|
 |
John W
Joined: 09 Apr 2007 Posts: 169
|
Posted: Fri Jun 20, 2008 8:53 am Post subject: |
|
|
Did you try WinGetText? _________________ John
Inactive - Until AutoHotkey is available for Linux. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5884
|
Posted: Fri Jun 20, 2008 8:56 am Post subject: |
|
|
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 |
 _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
Wicked
Joined: 07 Jun 2008 Posts: 29
|
Posted: Fri Jun 20, 2008 8:45 pm Post subject: |
|
|
Bleh, I've been with the AHK community for a while, just never needed help.
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 |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 908 Location: The Interwebs
|
Posted: Fri Jun 20, 2008 8:48 pm Post subject: |
|
|
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 |
|
 |
Wicked
Joined: 07 Jun 2008 Posts: 29
|
Posted: Fri Jun 20, 2008 9:23 pm Post subject: |
|
|
Kks. I'm not at work at the moment, but I'll try it tonight and post the results.
Thanks again! |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5884
|
Posted: Sat Jun 21, 2008 10:45 am Post subject: |
|
|
| Wicked wrote: | Bleh, I've been with the AHK community for a while, just never needed help.  |
Ok then, Thanks for Registering! You Indian ? I am.  _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
Wicked
Joined: 07 Jun 2008 Posts: 29
|
Posted: Sat Jun 21, 2008 11:29 am Post subject: |
|
|
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 |
|
 |
|