venkat Posted May 17, 2009 Share Posted May 17, 2009 Hi, I have to select the tab according to the text in the title. If i do the wingettext i am getting many values. I have to check the seventh string of the $str_class. How to store the values of $str_class in to array. $Str_Class = string(WinGetText("Advanced Find","")) MsgBox(0,"test", $str_class) Thanks In Advance Link to comment Share on other sites More sharing options...
Authenticity Posted May 17, 2009 Share Posted May 17, 2009 Here is example, please explain better because it's hard to understand what you're trying to achieve: #include <GUITab.au3> Run('control sysdm.cpl') WinWaitActive('System Properties') $hwnd = WinGetHandle('System Properties') $hTab = ControlGetHandle($hwnd, '', 'SysTabControl321') While _GUICtrlTab_GetItemText($hTab, _GUICtrlTab_GetCurFocus($hTab)) <> 'advanced' ControlCommand('', '', $hTab, 'TabRight', '') WEnd Link to comment Share on other sites More sharing options...
venkat Posted May 17, 2009 Author Share Posted May 17, 2009 Here is example, please explain better because it's hard to understand what you're trying to achieve: #include <GUITab.au3> Run('control sysdm.cpl') WinWaitActive('System Properties') $hwnd = WinGetHandle('System Properties') $hTab = ControlGetHandle($hwnd, '', 'SysTabControl321') While _GUICtrlTab_GetItemText($hTab, _GUICtrlTab_GetCurFocus($hTab)) <> 'advanced' ControlCommand('', '', $hTab, 'TabRight', '') WEnd Hi, I have attached the screen shot. In that screen. Advanced is the title of the screen. I have to select only the service call tab. In that i have to enter the value in the first two edit box. Link to comment Share on other sites More sharing options...
Authenticity Posted May 17, 2009 Share Posted May 17, 2009 #include <GUITab.au3> Dim $sTitle Dim $hTab $sTitle = 'Advanced Find' $hTab = ControlGetHandle($sTitle, '', 'SysTabControl321') _GUICtrlTab_SetCurFocus($hTab, 0) ControlSetText($sTitle, '', 'Edit1', 'SomeText') ControlSetText($sTitle, '', 'Edit2', 'SomeText') Link to comment Share on other sites More sharing options...
venkat Posted May 19, 2009 Author Share Posted May 19, 2009 #include <GUITab.au3> Dim $sTitle Dim $hTab $sTitle = 'Advanced Find' $hTab = ControlGetHandle($sTitle, '', 'SysTabControl321') _GUICtrlTab_SetCurFocus($hTab, 0) ControlSetText($sTitle, '', 'Edit1', 'SomeText') ControlSetText($sTitle, '', 'Edit2', 'SomeText') Hi, Once the screen is opened. It going to an inactive state. This control is not passed to the advanced find screen. Thanks, Venkat Link to comment Share on other sites More sharing options...
Authenticity Posted May 19, 2009 Share Posted May 19, 2009 Hmm..? What do you mean? Link to comment Share on other sites More sharing options...
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