litlmike Posted April 13, 2006 Share Posted April 13, 2006 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 ) EndFuncPress 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 _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
greenmachine Posted April 13, 2006 Share Posted April 13, 2006 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. Link to comment Share on other sites More sharing options...
litlmike Posted April 14, 2006 Author Share Posted April 14, 2006 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 _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
greenmachine Posted April 14, 2006 Share Posted April 14, 2006 Well that isn't a class.. the class would be "class=ACT3.0FrameClass". Try "ClassNameNN=#327703".. but I'm still not sure about it. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 14, 2006 Moderators Share Posted April 14, 2006 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 More sharing options...
litlmike Posted April 14, 2006 Author Share Posted April 14, 2006 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) _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
litlmike Posted April 14, 2006 Author Share Posted April 14, 2006 is this an MDI window?LarHow do I know if it is an MDI window? _ArrayPermute()_ArrayUnique()Excel.au3 UDF Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now