PC Review


Reply
Thread Tools Rate Thread

Control Identity

 
 
=?Utf-8?B?Sm9obiBG?=
Guest
Posts: n/a
 
      6th Sep 2006
Hello,

I'm scraping the screen of an unmanaged app using FindWindow and
EnumChildWindows API calls. Does anyone know of a way to uniquely identify
the controls that EnumChildWindows returns? Window handles change and the
controls I'm iterating through don't have tab stops. Screen scraping is
useless unless we can constantly identify which controls are returning data.

Thanks,
John F.
 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      6th Sep 2006
John,

There really is no way for a control to say "this is what makes me
unique". You could check the types of the controls (the window class) from
the handle, but that's about it. You would have to compare properties of
the individual controls to see what exactly they are doing.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"John F" <(E-Mail Removed)> wrote in message
news:14941888-31D1-4AE5-8B08-(E-Mail Removed)...
> Hello,
>
> I'm scraping the screen of an unmanaged app using FindWindow and
> EnumChildWindows API calls. Does anyone know of a way to uniquely
> identify
> the controls that EnumChildWindows returns? Window handles change and the
> controls I'm iterating through don't have tab stops. Screen scraping is
> useless unless we can constantly identify which controls are returning
> data.
>
> Thanks,
> John F.



 
Reply With Quote
 
=?Utf-8?B?Sm9obiBG?=
Guest
Posts: n/a
 
      6th Sep 2006
Thanks Nicholas. I'm finding that no matter what I try there are no special
identifiers. I will study the properties to see if I can pin them down.
Currently I'm sorting on their relative X,Y coordinates and it works most of
the time. So close...

Thanks...
--
John F


"Nicholas Paldino [.NET/C# MVP]" wrote:

> John,
>
> There really is no way for a control to say "this is what makes me
> unique". You could check the types of the controls (the window class) from
> the handle, but that's about it. You would have to compare properties of
> the individual controls to see what exactly they are doing.
>
> Hope this helps.
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "John F" <(E-Mail Removed)> wrote in message
> news:14941888-31D1-4AE5-8B08-(E-Mail Removed)...
> > Hello,
> >
> > I'm scraping the screen of an unmanaged app using FindWindow and
> > EnumChildWindows API calls. Does anyone know of a way to uniquely
> > identify
> > the controls that EnumChildWindows returns? Window handles change and the
> > controls I'm iterating through don't have tab stops. Screen scraping is
> > useless unless we can constantly identify which controls are returning
> > data.
> >
> > Thanks,
> > John F.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where in User.Identity.Name gets a value in Login control? Athena Microsoft ASP .NET 5 29th Nov 2007 05:20 PM
Access control based on user AND computer identity possible? Paul Nelson Microsoft Windows 2000 Active Directory 2 5th May 2005 04:42 PM
Re: deleted main identity can I find my old identity emails somehow? Brian Tillman Microsoft Outlook Discussion 0 22nd Sep 2004 08:03 PM
Identity crisis!: express opening up wrong identity? Don Arnold Microsoft Outlook Discussion 1 24th Mar 2004 09:30 PM
Difference between HttpContext.Current.User.Identity and identity Impersonation Giovanni Bassi Microsoft ASP .NET 0 20th Oct 2003 03:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:20 PM.