Sign in to follow this  
Followers 0
venkat

wingettext to array

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

post-48272-1242555476_thumb.gif

Share this post


Link to post
Share on other sites

#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

Share this post


Link to post
Share on other sites

Hmm..? :)

What do you mean?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0