gfunk999 Posted October 7, 2009 Share Posted October 7, 2009 Hi all Has anyone figured out how to interact with Outlook 2007 ribbon buttons NetUIHWND class? I'm trying to do a control click on Save & Close but AutoIT Window Info shows no information on the button(s).Someone already posted this question, but there was no reply Outlook Automation/Control Help Link to comment Share on other sites More sharing options...
celestialspring Posted October 7, 2009 Share Posted October 7, 2009 Hi all Has anyone figured out how to interact with Outlook 2007 ribbon buttons NetUIHWND class? I'm trying to do a control click on Save & Close but AutoIT Window Info shows no information on the button(s).Someone already posted this question, but there was no reply Outlook Automation/Control Help Not to my knowledge. I have also scoured the forum for answers, I couldn't find anything. Link to comment Share on other sites More sharing options...
gfunk999 Posted October 8, 2009 Author Share Posted October 8, 2009 You can manipulate the mouse to click on static coordinates, but it's not fool proof and it just doesn't look good.Not to my knowledge. I have also scoured the forum for answers, I couldn't find anything. Link to comment Share on other sites More sharing options...
celestialspring Posted October 8, 2009 Share Posted October 8, 2009 Ya, mouse click is so much monitor and resolution dependent. Its not a good way of doing things. I have tried experimenting with the Keyboard shortcuts also but you have to add a pause in between them and have outlook open and infront all the time. Really sucks mate. cs Link to comment Share on other sites More sharing options...
NG13 Posted January 7, 2014 Share Posted January 7, 2014 Hi Can anybody help me on how to capture the current connection status of my Outlook client to Microsoft exchange server ? attaching screen shot and details: >>>> Window <<<< Title: Inbox - <someone@example.com> - Microsoft Outlook Class: rctrl_renwnd32 Position: -8, -8 Size: 1456, 886 Style: 0x17CF0000 ExStyle: 0x00040100 Handle: 0x00000000000C0756 >>>> Control <<<< Class: NetUIHWND Instance: 2 ClassnameNN: NetUIHWND2 Name: Advanced (Class): [CLASS:NetUIHWND; INSTANCE:2] ID: Text: Position: 0, 856 Size: 1440, 22 ControlClick Coords: 1055, 12 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x00000000000506DA >>>> Mouse <<<< Position: 1055, 860 Cursor ID: 0 Color: 0x703B58 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Frame Splitter Frame Splitter Frame Splitter Frame Splitter MsoDockTop Ribbon Ribbon MsoDockBottom Status Bar Status Bar DatePicker FolderBar NUIDocumentWindow NUIDocumentWindow NUIDocumentWindow Table View Vertical Agenda View Subject Happy 1st Rob Valenti From Categories: Sent: Tue 1/7/2014 10:25 AM To: Cc: Attachments Message Message MSO Generic Control Container Message Vertical Contact photo Microsoft Outlook Social Connector Click to expand the People Pane Table View Vertical >>>> Hidden Text <<<< MsoDockLeft MsoDockRight MsoWorkPane Signed By: Label: Retention Policy: Archive: Expires: Attachments: DAL=on File Name Changed By: Checked Out To: Last Changed: Attachments DAL=on Click to toggle between the People Pane views Connect to social networks to show profile photos and activity updates of your colleagues in Outlook. Click here to add networks. Add All Items Activities Mail Attachments Meetings Status Updates MsoWorkPane regards [font="verdana, geneva, sans-serif;"]NG[/font] Link to comment Share on other sites More sharing options...
LarsJ Posted January 8, 2014 Share Posted January 8, 2014 Take a look at the UI Automation framework.Download the two UDFs in the bottom of first post and download and run the code in the "Simple spy demo" codebox in the middle of first post. To verify that the control can be identified place the mouse cursor over the control and press Ctrl+w. You can see an example in post #14 here. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
water Posted January 8, 2014 Share Posted January 8, 2014 Why automate the GUI? Use my OutlookEX UDF to automate Outlook using COM. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ashishpu Posted March 24, 2014 Share Posted March 24, 2014 Hi, I need to write a autoit script to check the time required for outlook to connect to the network and change its status to connected after launching it. I want to know how to check the connection status and how do I calculate the time required to connect to network. thanks in Advance! Regards, Ashish 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