solsikkehaven Posted April 21, 2015 Share Posted April 21, 2015 (edited) We had another program (Lotus Notes) as default mail client on our computers until recently. After migration to Outlook - now trying to make Outlook the Default program using Run('control /name Microsoft.DefaultPrograms') then going into the set standard program (I guess it's called in english) waiting for the list to update - choosing "outlook" and setting the "set as default... ???" - making all settings for outlook.... Sorry, I don't have access to the english version of Windows, so I'm guessing what the text is in english compared to my danish version. So I have created this script, which actually is working "Standardprogrammer" can be translated to "Default Programs" - the title text for that particular window. MY QUESTION IS 1) I can't seem to target the area where all programs are calculated and shown by windows with any control ?? 2) It takes between 1 second and 20 seconds before Windows accumulates and shows all programs in the list. I have done sleep 25 seconds, but hey, can we detect somehow that the list is complete and use that to our advantage or is the method really just to wait with the sleep command ?? Run('control /name Microsoft.DefaultPrograms') WinWait('Standardprogrammer') WinActivate('Standardprogrammer') Send('{TAB}{TAB}{TAB}{SPACE}') Sleep(25000) WinActivate('Standardprogrammer') Send('{TAB}') Send('outlook') Send('{TAB}{TAB}{TAB}{SPACE}') sleep(3000) Send('{TAB}{TAB}{SPACE}') WinClose('Standardprogrammer') Edited April 21, 2015 by solsikkehaven Link to comment Share on other sites More sharing options...
jguinch Posted April 21, 2015 Share Posted April 21, 2015 (edited) You can invoke the Default dialog from Outlook with calling Oulook.exe /checkclient and the click OK with ControlClick Edited April 21, 2015 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
solsikkehaven Posted April 22, 2015 Author Share Posted April 22, 2015 When trying this from either a network/AD computer or local domain computer (not AD) with outlook 2013, nothing happens when typing outlook.exe /checkclient other than starting outlook normally :-( 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