821RE: [perlguitest] Tabbed navigation question
- Apr 18, 2005You can use ClientToScreen and ScreenToClient to convert coordinates
back and forth in Win32::GuiTest 1.50.3-ad from CPAN.
($x,$y) = ScreenToClient(hwnd,x,y)
($x,$y) = ClientToScreen(hwnd,x,y)
There are also the following functions to work with tabs:
Returns a list of a tab control's labels.
Selects a tab based off an index (zero-based).
Selects a tab based off text label (case insensitive).
Determines if the specified tab item is selected.
Hope some of that helps.
From: firstname.lastname@example.org [mailto:email@example.com]
On Behalf Of evenprime
Sent: Sunday, 17 April, 2005 10:24
Subject: [perlguitest] Tabbed navigation question
I'm useing win32 guitest to automate some unscriptable applications (not
something I wrote, no OLE or WMI as options)
I'm having trouble with tabbed navigation. Where buttons can be
Tabs seem to have to be clicked with coordinates relative to the entire
screen, and I can't always guarantee the window I need to interact with
will open in the same place everytime.
Is their a way to get those coordinates relative to the active window?
Better yet, is their a way to determine which tab to activate without
coordinate based mouse clicks?
Yahoo! Groups Links
- << Previous post in topic Next post in topic >>