Sign in to follow this  
Followers 0
debkol35

How do I select specific window?

3 posts in this topic

#1 ·  Posted (edited)

hi...I am new in this AutoIT. Making script for first time. I need some help,

I have 2 windows open. I want to select 1 window first and then click a box inside it. When done, select the 2nd window and click inside it.

This is the first window information,

>>>> Window <<<<
Title:    [#] bla 1[#]
Class:    Bla1
Position:    207, 154
Size:    864, 567
Style:    0x16CF0000
ExStyle:    0x00000100
Handle:    0x00000000001002E4

>>>> Control <<<<
Class:    bla1:Chrome_RenderWidgetHostHWND
Instance:    1
ClassnameNN:    bla1:Chrome_RenderWidgetHostHWND1
Name:    
Advanced (Class):    [CLASS:bla 1:Chrome_RenderWidgetHostHWND; INSTANCE:1]
ID:    54026176
Text:    
Position:    0, 29
Size:    848, 499
ControlClick Coords:    463, 248
Style:    0x56000000
ExStyle:    0x00000000
Handle:    0x00000000002402F6

I tried WinWaitActive and ControlClick commands but not working :( Please help me.

Edited by debkol35

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I did it. but

Ok..got another problem !!

here is what I did :-

; Script Start - Add your code below here
ControlFocus("[Class:bla1]", "", "")
sleep(1000)
ControlFocus("[Class:bla2]", "", "")

It is selecting bla1 window but after that not selecting bla2 window !! Please need some help here :(

Edited by debkol35

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