Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Identify the list of controls in an app

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-08-2008   #1 (permalink)
Madmax42
Guest


 

Identify the list of controls in an app

Hi,

Can anyone let me know how to get hold of a currently running application
and get the list of controls within it. In all of the forums I could see only
to start an application and capture its object and then access its controls
with their names. But in this case I should get the list of controls
available in a currently running application.

Can anyone help me out on this.

My System SpecsSystem Spec
Old 05-08-2008   #2 (permalink)
Shay Levi
Guest


 

Re: Identify the list of controls in an app



You can try WASP (Windows Automation Snapin for PowerShell), by Jaykul, available
for download at:

http://www.codeplex.com/WASP/Release...ReleaseId=9323


PS 39> Select-Window -Title "Internet Properties" | Select-Control | select
Text,ClassName

Text ClassName
---- ---------
General #32770
OK Button
Cancel Button
&Apply Button
Help Button
SysTabControl32




---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> Hi,
>
> Can anyone let me know how to get hold of a currently running
> application and get the list of controls within it. In all of the
> forums I could see only to start an application and capture its object
> and then access its controls with their names. But in this case I
> should get the list of controls available in a currently running
> application.
>
> Can anyone help me out on this.
>

My System SpecsSystem Spec
Old 05-19-2008   #3 (permalink)
Madmax42
Guest


 

Re: Identify the list of controls in an app

Hi Shay Levi,

Using WASP I was able to identify the first level controls in the
application. But my application uses embedded controls as below:

(as shown by SPY++)
Window->Shell Embedding->Shell DocObject View->Internet Explorer_Server

Even SPY++ did not recognize the controls within it. It seems the
application loads a html taken from a DLL, and displayes it in the
application. Thus I am unable to identify the controls loaded by the html.

In this case, how can I identify controls within embedded objects.

Thanks,
Madmax

"Shay Levi" wrote:
Quote:

>
>
> You can try WASP (Windows Automation Snapin for PowerShell), by Jaykul, available
> for download at:
>
> http://www.codeplex.com/WASP/Release...ReleaseId=9323
>
>
> PS 39> Select-Window -Title "Internet Properties" | Select-Control | select
> Text,ClassName
>
> Text ClassName
> ---- ---------
> General #32770
> OK Button
> Cancel Button
> &Apply Button
> Help Button
> SysTabControl32
>
>
>
>
> ---
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
>
Quote:

> > Hi,
> >
> > Can anyone let me know how to get hold of a currently running
> > application and get the list of controls within it. In all of the
> > forums I could see only to start an application and capture its object
> > and then access its controls with their names. But in this case I
> > should get the list of controls available in a currently running
> > application.
> >
> > Can anyone help me out on this.
> >
>
>
>
My System SpecsSystem Spec
Old 05-19-2008   #4 (permalink)
Shay Levi
Guest


 

Re: Identify the list of controls in an app


The web page you're trying to get is window-less and WASP doesn't have any
logic for dealing with that stuff.
You can try sending key strokes...



---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> Hi Shay Levi,
>
> Using WASP I was able to identify the first level controls in the
> application. But my application uses embedded controls as below:
>
> (as shown by SPY++)
> Window->Shell Embedding->Shell DocObject View->Internet
> Explorer_Server
> Even SPY++ did not recognize the controls within it. It seems the
> application loads a html taken from a DLL, and displayes it in the
> application. Thus I am unable to identify the controls loaded by the
> html.
>
> In this case, how can I identify controls within embedded objects.
>
> Thanks,
> Madmax
> "Shay Levi" wrote:
>
Quote:

>> You can try WASP (Windows Automation Snapin for PowerShell), by
>> Jaykul, available for download at:
>>
>> http://www.codeplex.com/WASP/Release...px?ReleaseId=9
>> 323
>>
>> PS 39> Select-Window -Title "Internet Properties" | Select-Control |
>> select Text,ClassName
>>
>> Text ClassName
>> ---- ---------
>> General #32770
>> OK Button
>> Cancel Button
>> &Apply Button
>> Help Button
>> SysTabControl32
>> ---
>> Shay Levi
>> $cript Fanatic
>> http://scriptolog.blogspot.com
Quote:

>>> Hi,
>>>
>>> Can anyone let me know how to get hold of a currently running
>>> application and get the list of controls within it. In all of the
>>> forums I could see only to start an application and capture its
>>> object and then access its controls with their names. But in this
>>> case I should get the list of controls available in a currently
>>> running application.
>>>
>>> Can anyone help me out on this.
>>>

My System SpecsSystem Spec
Closed Thread
Update your Vista Drivers Update Your Drivers Now!!

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot identify network tom healy Vista General 1 09-12-2007 01:00 AM
Identify Drive rjc Vista hardware & devices 1 06-14-2007 12:51 PM
How to obtain the controls list of a window Thierry Avalon 10 01-24-2007 03:42 PM
how to list controls present on the Winfx window sam Avalon 4 06-02-2006 11:28 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51