nupur2026 Posted August 13, 2014 Share Posted August 13, 2014 Hi I am new to AutoIt. I am using ControlClick function to click on a custom tab in outlook whose position is not static but this function is not working at all for me. Given below are the details of that tab tracked using Finder tool: >>>> Window <<<< Title: Inbox - Nupur@sample.org - Outlook Class: rctrl_renwnd32 Position: -8, -8 Size: 1456, 876 Style: 0x17CF0000 ExStyle: 0x00040100 Handle: 0x0001023E >>>> Control <<<< Class: NetUIHWND Instance: 1 ClassnameNN: NetUIHWND1 Name: Advanced (Class): [CLASS:NetUIHWND; INSTANCE:1] ID: Text: Position: 0, 0 Size: 1440, 147 ControlClick Coords: 414, 41 Style: 0x57030000 ExStyle: 0x00000000 Handle: 0x00010244 >>>> Mouse <<<< Position: 414, 37 Cursor ID: 0 Color: 0xFFFFFF I don't want to use MouseClick function. Please help. Thanks Nupur Link to comment Share on other sites More sharing options...
JohnOne Posted August 13, 2014 Share Posted August 13, 2014 "this function is not working at all for me" Show code, and elaborate on the problem and the return value and @error state of any functions you use. 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 More sharing options...
Moderators JLogan3o13 Posted August 13, 2014 Moderators Share Posted August 13, 2014 As J1 alluded to, you could not have possibly provided less information if you'd been trying. Start with something basic, like which control in Outlook you're trying to click on or what your overall goal is. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
nupur2026 Posted August 19, 2014 Author Share Posted August 19, 2014 Hi, I want to click on a tab in Outlook whose position may vary. So I don't want to use mouseClick function as it accepts the coordinates. The function I've used is: ControlClick("Inbox - Nupur@sample.org - Outlook","","[CLASS:NetUIHWND, INSTANCE:1]") But it is returning 0. Details of finder tool are given in first thread. 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