Triton 0 Posted March 8, 2004 I'm trying to access a a window with multiple tabs, for example to access the computer name tab in the system properties window. I've tried to using sending a keystroke to initiate the system properties windows and then arrow over one tab but that seems to be unreliable. If i run it say at startup the system properties window opens and thats it. any ideas? Triton Share this post Link to post Share on other sites
Valik 479 Posted March 8, 2004 ControlCommand has tabbed window support, have you tried that? Check the help file for information, I've not used it so I can't help you there. Share this post Link to post Share on other sites
Somerset 3,103 Posted March 8, 2004 hey has anyone here tried like show control.. i remmber using it and it did jump to that tab... wonder if it works for anyone else... Spoiler Share this post Link to post Share on other sites
CyberSlug 6 Posted March 8, 2004 ; Note: not tested WinWait ("System Properties") ControlCommand("System Properties","","SysTabControl321","TabRight","") ; By the way, there might be a registry key you could change instead.... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
CyberSlug 6 Posted March 8, 2004 (edited) see ControlCommand with reference to it's CurrentTab, TabLeft, TabRight abilityLarry, that reminds me: There is no "TabJump" feature. Some tab controls remember the last tab that was active instead of defaulting to the first tab. ; Example workaround for TextPad's Propties window $n = 6 ;the 'Syntax' tab $title = "Properties" $t = ControlCommand($title,"","SysTabControl321","CurrentTab","") If $t < $n Then While $t <> $n $t = $t + 1 ControlCommand($title,"","SysTabControl321","TabRight","") Wend Else While $t <> $n $t = $t - 1 ControlCommand($title,"","SysTabControl321","TabLeft","") Wend EndIf Edited March 8, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Share this post Link to post Share on other sites
Triton 0 Posted March 8, 2004 Heres my code that only do the first part. Send("#{PAUSE}") WinWaitActive("System Properties") ControlCommand("System Properties", "", "SysTabContol321", "TabRight", "") When system properties opens it defaults to the Identification Tab then i try to goto the next tab on the right wich is Computer Name tab. I have has no luck. Triton Share this post Link to post Share on other sites
Valik 479 Posted March 8, 2004 You mispelled "Control" in "SysTabControl321". Share this post Link to post Share on other sites
Valik 479 Posted March 8, 2004 Also, WinWaitActive isn't necessary, WinWait will suffice because the control related commands do not need for the window to be active. Share this post Link to post Share on other sites
Valik 479 Posted March 8, 2004 I copied and pasted it and farted for 5 minutes before noticing the spelling... you probably caught it straight way, I imagine... Lar.I ran it once, looked back over the code and saw the mis-spelling. Share this post Link to post Share on other sites
Triton 0 Posted March 8, 2004 WOW!, I looked at it for a long time and didn't even see it. Thanks guys, tested it and works great! Triton Share this post Link to post Share on other sites
Triton 0 Posted March 9, 2004 @CyberSlug; Note: not testedWinWait ("System Properties")ControlCommand("System Properties","","SysTabControl321","TabRight",""); By the way, there might be a registry key you could change instead....These pcs are already part of a domain. We're trying to change the names to get them to a standard. If you just change the reg entries it will only change it locally and not the computer account on the domain.any ideas? Triton Share this post Link to post Share on other sites