DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to remove language Dependency while retrieving Window Handle using Window Title?

  1. #1
    Join Date
    Feb 2009
    Posts
    2

    How to remove language Dependency while retrieving Window Handle using Window Title?

    Hi,

    I am using a UI Automation tool and retrieving an AutomationElement to a window using window Title. (Code snippet added below)

    AutomationElement aeCustomDPIWindow = null;

    Thread.Sleep(500);
    aeCustomDPIWindow = aeDPIScaling.FindFirst(TreeScope.Descendants | TreeScope.Children, new PropertyCondition(AutomationElement.NameProperty, "Custom DPI Setting"));

    Window's name is used here. But this would be language dependent and this scenario would fail on other OS (German/Non-English OS).

    Can anyone please tell me a way to remove this language dependency?

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Welcome to DevX

    What "UI Automation tool" are you using?

  3. #3
    Join Date
    Feb 2009
    Posts
    2
    I am using UI Studio.....

Similar Threads

  1. Getting the Native window handle
    By Jordan Dragoev Nedelchev in forum Java
    Replies: 2
    Last Post: 11-08-2002, 12:57 PM
  2. Replies: 8
    Last Post: 02-12-2001, 01:03 PM
  3. child window - is it or isn't it?
    By TC in forum VB Classic
    Replies: 8
    Last Post: 09-26-2000, 02:34 AM
  4. Handles within the Window Handle
    By Andrew in forum VB Classic
    Replies: 2
    Last Post: 06-30-2000, 11:09 AM
  5. Window handle for a MessageBox
    By Leonardo Bosi in forum VB Classic
    Replies: 12
    Last Post: 05-08-2000, 05:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center