Re: Tabbed navigation question
> Date: Sun, 17 Apr 2005 15:24:29 -0000You could try to send a TCM_SETCURSEL message to the tab control's handle.
> From: "evenprime" <evenprime@...>
> Subject: 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
> controlled ala:
> PushChildButton($fgWindow, "^OK\$");
> 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?
TCM_SETCURSEL takes the 0-based index of the desired tab item as WParam
and 0 as LParam and should select the tab item.