dushkin Posted July 10, 2010 Share Posted July 10, 2010 Hi All, Can anyone guide me with the task in title? For example - pressing the "new" button. Thanks!!! Link to comment Share on other sites More sharing options...
dushkin Posted July 12, 2010 Author Share Posted July 12, 2010 Hello? Anyone?... Link to comment Share on other sites More sharing options...
Juvigy Posted July 12, 2010 Share Posted July 12, 2010 Local $olMailItem = 0 Local $olFormatRichText = 3 Local $olImportanceLow = 0 Local $olImportanceNormal = 1 Local $olImportanceHigh = 2 Local $olByValue = 1 Local $olFormatHTML = 2 Local $olFormatPlain = 1 $oOApp = ObjCreate("Outlook.Application") $oOMail = $oOApp.CreateItem ($olMailItem) $oOMail.Save With $oOMail .To = ("mail@mail.com") .Display EndWith $oOApp=0 You can also check the outlook UDF for more features. Link to comment Share on other sites More sharing options...
dushkin Posted July 12, 2010 Author Share Posted July 12, 2010 Local $olMailItem = 0 Local $olFormatRichText = 3 Local $olImportanceLow = 0 Local $olImportanceNormal = 1 Local $olImportanceHigh = 2 Local $olByValue = 1 Local $olFormatHTML = 2 Local $olFormatPlain = 1 $oOApp = ObjCreate("Outlook.Application") $oOMail = $oOApp.CreateItem ($olMailItem) $oOMail.Save With $oOMail .To = ("mail@mail.com") .Display EndWith $oOApp=0 You can also check the outlook UDF for more features. Many thanks Juvigy for your prompt response. I am aware of this great UDF you mentioned, but this is not exactly what I need. My problem is to identify the button itself. The "new" button was just an example. What I really need is to be able to "press" a private add-in button that we added to the outlook toolbar. Or in general, be able to press any button in the outlook toolbar that the UDF for some reason doesn't support yet... So somehow I need to reach this button and "press" on it - using Autoit or COM methods. Can you or someone else help with this one? Thanks! Link to comment Share on other sites More sharing options...
Juvigy Posted July 12, 2010 Share Posted July 12, 2010 The thing i can think of is sending Alt+N for example. Most items have an ALT+letter shortcuts. There must be a better way though. 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