Jump to content

ControlClick Problem


Recommended Posts

Hi

I am trying to get familiar with ControlClick commmad I wrote this line besed on AutoIt Window Info:

ControlClick("Class:#32770","","[CLASS:Button; INSTANCE:3]","","2", 31 ,13 )

even I tried this

ControlClick("Model Description","","[CLASS:Button; INSTANCE:3]","","2", 31 ,13 )

All I want is that want to get rid of explanatory windows by clicking on OK button

I have reviewed some script but couldn't find where I am donig wrong

AutoIt Window Info

>>>> Window <<<<

Title: Model Description

Class: #32770

Position: 325, 370

Size: 606, 451

Style: 0x94C800C4

ExStyle: 0x00010101

Handle: 0x002902E2

>>>> Control <<<<

Class: Button

Instance: 3

ClassnameNN: Button3

Name:

Advanced (Class): [CLASS:Button; INSTANCE:3]

ID: 1

Text: &Ok

Position: 521, 67

Size: 68, 26

ControlClick Coords: 31, 13

Style: 0x5001000B

ExStyle: 0x00000004

Handle: 0x00AB0DDC

>>>> Mouse <<<<

Position: 880, 475

Cursor ID: 0

Color: 0xF0F0F0

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

Name :

CLIMEX - Compare Locations (1 species)

Author/s:

R.W. Sutherst and G.F.Maywald

Version:

3.0

Creation Date/Time:

26/07/2005; 10:00

Timestep (days):

7

>>>> Hidden Text <<<<

Link to comment
Share on other sites

EDIT:

sorry wrong thread.

Try

ControlClick("CLASS:#32770","","[CLASS:Button; INSTANCE:3]","Primary")

Or

ControlClick("Model Description","","[CLASS:Button; INSTANCE:3]","Primary")

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

EDIT:

sorry wrong thread.

Try

ControlClick("CLASS:#32770","","[CLASS:Button; INSTANCE:3]","Primary")

Or

ControlClick("Model Description","","[CLASS:Button; INSTANCE:3]","Primary")

===

Thanks John, I appreciate it. Should I use the same if I want it to click on somewhere on the page like the Icons like clicking on Save or Open button of a program?If I should give x,y position which position I should use Mouse or Controlclick cor? Cheers

Link to comment
Share on other sites

I dont know the application, but usually each button has its own instance.

===

this is what AutoIT window ifo gives me, the problem is that when I want to ask it to left click somewhere, but when i give mouse postion or controlclick cor it dosn't work:)

>>>> Window <<<<

Title: CLIMEX - Compare Locations (1 species)

Class: Afx:00400000:8:00010005:00000000:EB7D0649

Position: 25, 25

Size: 1080, 625

Style: 0x14CF0000

ExStyle: 0x00000110

Handle: 0x00580820

>>>> Control <<<<

Class: AfxWnd70

Instance: 2

ClassnameNN: AfxWnd702

Name:

Advanced (Class): [CLASS:AfxWnd70; INSTANCE:2]

ID: 1

Text:

Position: 12, 74

Size: 741, 158

ControlClick Coords: 39, 128

Style: 0x56000000

ExStyle: 0x00000000

Handle: 0x002E0598

>>>> Mouse <<<<

Position: 84, 277

Cursor ID: 0

Color: 0xFFFF00

>>>> StatusBar <<<<

1: Ready

2: Model: Loaded

3: Parameters : H:\M...\Compare Locations (1 species).gmp

4: Unmodified

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

Model Components

Ready

>>>> Hidden Text <<<<

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...