Jump to content

Should I Be Able To Controlclick This?


Recommended Posts

Quoted below is the AutoIt Window Info. Should I be able to Control Click the Control under the mouse? I tried some code, and it didn't work, any ideas?

Func Control_Click ()

ControlClick ( "ACT!", "", "#327703", "left", 4 )

EndFunc

Press CTRL-ALT-F to pause the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: ACT! - [Mike - Contacts]

Class: ACT3.0FrameClass

Size: X: -4 Y: -4 W: 1032 H: 723

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 80 Y: 564

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xC6C3C6 Dec: 13026246

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 72 Y: 500 W: 938 H: 85

Control ID:

ClassNameNN: #327703

Text:

Style: 0x50800044

ExStyle: 0x00000000

(Control is hidden)

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

(1):

(2):

(3):

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

Mike - Contacts

...

Filter

Mike - Calendar

Custom

<No Group>

Contact Toolbar

8 of 55

Menu bar

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Types to show

Calls

Meetings

To-do's

Priorities to show

High

Medium

Low

Dates to show:

All dates

Show only timeless

Show cleared activities

Select Users...

Show Outloo&k activities

Filter

Notes

Histories

Attachments

E-mail

Dates to show:

All dates

Select Users...

Details...

Insert Note

Details...

Notes

Histories

Attachments

E-mail

Insert Note

Show types

Filter

Sales to show

Opportunities

Closed/Won

Lost

Dates to show:

All dates

Record Manager...

New Opportunity...

Complete Sale...

Sales:

Opportunities

Closed/Won

Lost

New Opportunity..

Complete Sale...

71 Activities - 62 Calls, 9 To-do's.

Groups

Groups

Layouts

Layouts

Layouts

Groups

Task List Toolbar

Contact List Toolbar

8 of 55

Groups Toolbar

Calendar Toolbar

Query Toolbar

Default Toolbar

Link to comment
Share on other sites

Well you don't have a controlID to click (you're using ClassNameNN), so that's why it doesn't work. I'm not too sure about it, but try using the "class=" stuff with WinTitleMatchMode of 4.

I tried this, with no luck. Any other ideas, or did I do it wrong?

Func Control_Click ()
    Opt ("WinTitleMatchMode", 4)
    $var = "class=#327703"
ControlClick ( "ACT!", "", $var, "left", 4 )
EndFunc
Link to comment
Share on other sites

  • Moderators

You can use the ClassNameNN as the ControlID in most circumstances. But in your instance, the Conrol is Hidden. Might try to use it as:

ControlShow('ACT!', '', '#327703')
ControlFocus('ACT!', '', '#327703')
ControlClick('ACT!', '', '#327703', 'left', 4)
And see if that works.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

You can use the ClassNameNN as the ControlID in most circumstances. But in your instance, the Conrol is Hidden. Might try to use it as:

ControlShow('ACT!', '', '#327703')
ControlFocus('ACT!', '', '#327703')
ControlClick('ACT!', '', '#327703', 'left', 4)
And see if that works.
Well, I tried both of these with no luck. Any more ideas?

Opt ("WinTitleMatchMode", 4)
    $var = "ClassNameNN=#327703"
    ControlShow( "ACT!", "", "#327703")
    ControlFocus( "ACT!", "", "#327703")
    ControlClick("ACT!", "", "#327703", "left", 4)

Opt ("WinTitleMatchMode", 4)
    $var = "ClassNameNN=#327703"
    ControlShow( "ACT!", "", $var)
    ControlFocus( "ACT!", "", $var)
    ControlClick("ACT!", "", $var, "left", 4)
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...