ggg Posted August 11, 2005 Posted August 11, 2005 How does one handle a window with tabs at the top. The tabs don't seem to be associated with controls. For example, the Wireless Network Connection Status window on XP has General and Support tabs.
Holger Posted August 11, 2005 Posted August 11, 2005 Hi ggg I have no idea why do you think that for instance this tab-control is _no_ control... Did you use "Autoit Window Info" for getting details about the control? So just try "SysTabControl321". Or didn't I understand it right what you mean? Regards Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
ggg Posted August 11, 2005 Author Posted August 11, 2005 But the SysTabControl321 control includes both tabs so you can't tell one from another. If each tab had a separate control it would not be a problem.
Holger Posted August 11, 2005 Posted August 11, 2005 You could use "ControlCommand("", "", "SysTabControl321", "TabRight", "") to move to the 'right' tab sheet. Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
ggg Posted August 11, 2005 Author Posted August 11, 2005 I think I am getting closer but am still having problems. The first part of my scirpt is below. The Send command just navigates to the window and that seems ok. However, the message box never seems to appear unless I manually click on the Wireless Network Connection Status window at which point it does appear. Do you know what I am doing wrong? Thanks. ---- ; start the Wireless Connection Status window Send("{LWINDOWN}{LWINUP}ss{RIGHT}nw{ENTER}") ; MsgBox with current tab number WinWaitActive("Wireless Network Connection Status", "") ControlFocus("Wireless Network Connection Status", "", 12320) $tab = ControlCommand("Wireless Network Connection Status", "", 12320, "CurrentTab", "") MsgBox(0, "", $tab) Exit
ggg Posted August 11, 2005 Author Posted August 11, 2005 I think the problem is that the control is a SysTabControl321 but the ControlCommand help indicates that it works with a SysTabControl32. Is there some alternate approach that will work here?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now