Sign in to follow this  
Followers 0
inm101

If Window with specific control exists...

2 posts in this topic

I'm trying to perform an action if a window with a certain control exists. How can I say...

[sudo code]

If window (MIS Sign Documents) with this control (RATeditwindow) exists...

[/sudo code]

Here are the details on the window/control that I'm after.

>>>> Window <<<<
Title:  MIS Sign Documents - (Test) - Last MD, First
Class:  MGUIWin
Position:   3, 10
Size:   1017, 718
Style:  0x14CA0000
ExStyle:    0x00000100
Handle: 0x01470274

>>>> Control <<<<
Class:  RATeditwindow
Instance:   1
ClassnameNN:    RATeditwindow1
Name:   
Advanced (Class):   [CLASS:RATeditwindow; INSTANCE:1]
ID: 2002
Text:   
Position:   62, 127
Size:   737, 475
ControlClick Coords:    361, 29
Style:  0x50200000
ExStyle:    0x00000200
Handle: 0x00C4027E

>>>> Mouse <<<<
Position:   429, 195
Cursor ID:  0
Color:  0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<

Share this post


Link to post
Share on other sites



I'm trying to perform an action if a window with a certain control exists. How can I say...

[sudo code]

If window (MIS Sign Documents) with this control (RATeditwindow) exists...

[/sudo code]

Here are the details on the window/control that I'm after.

>>>> Window <<<<
Title:  MIS Sign Documents - (Test) - Last MD, First
Class:  MGUIWin
Position:   3, 10
Size:   1017, 718
Style:  0x14CA0000
ExStyle:    0x00000100
Handle: 0x01470274

>>>> Control <<<<
Class:  RATeditwindow
Instance:   1
ClassnameNN:    RATeditwindow1
Name:   
Advanced (Class):   [CLASS:RATeditwindow; INSTANCE:1]
ID: 2002
Text:   
Position:   62, 127
Size:   737, 475
ControlClick Coords:    361, 29
Style:  0x50200000
ExStyle:    0x00000200
Handle: 0x00C4027E

>>>> Mouse <<<<
Position:   429, 195
Cursor ID:  0
Color:  0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<

Nevermind, I think I got it with this:

$handle = ControlGetHandle($wintitle,"","[CLASS:RATeditwindow; INSTANCE:1]")

Consolewrite($handle)

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