Jump to content
Sign in to follow this  
sudarkrao

How to get the Handler for windowsbased applications

Recommended Posts

sudarkrao

Hi,

I am trying to click on the toolbar (Tabs) avaialble in my application

As of now I succeeded to get the main window handler

When I observe the toolbar properties (Tabs ) using AutoIT window info tool the class name is dynamically changing each time i open my application and it is same for all tabs available in the toolbar and it is not having generic names and it has some name like this Class:HwndWrapper[smartClient.UI.exe;;7735dd27-48a5-4578-8225-928c34b43135] .

I want to click on different tabs by their name or index

Please sugget me how I can proceed further using AutoIT

My application is developed using .net 3.5 and it is windows based application

Thanks ,

Rama

Edited by sudarkrao

Share this post


Link to post
Share on other sites
Richard Robertson

Can you match by window title and text?

Share this post


Link to post
Share on other sites
sudarkrao

Can you match by window title and text?

Hi,

Thanks for your reply

In my application controls(Like Tab or toolbar or links ) are not able to give any information in the controls tab available in the AutoIT window info tool .

For main window title is available and class is changing dynamically when ever i open the application

I want to write a script so that it should click on the desired controls in the application

I have used the following commands but i am not succeded

1._GUICtrlToolbar_ClickIndex($htab2, 1)

2._WinAPI_GetClassName($hwnd) .. When i use this function only msgbox ruturned the value of hadler of the main window

3._GUICtrlTab_FindTab($htab1, "Project")

Please suggest how can i proceed further

Thanks

Rama

Share this post


Link to post
Share on other sites
Richard Robertson

Just curious, is this a skinned window or does it use standard Windows controls?

Share this post


Link to post
Share on other sites
sudarkrao

Just curious, is this a skinned window or does it use standard Windows controls?

Hi,

We are using .net 3.5 and the window is having all standrad controls

Rama

Share this post


Link to post
Share on other sites
Richard Robertson

.Net controls are notoriously hard to automate. I'm sorry but I can't really help you on these.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.