solsikkehaven

Can't target - and question about "Default Programs"

3 posts in this topic

#1 ·  Posted (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 by solsikkehaven

Share this post


Link to post
Share on other sites



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

:-(

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now