Jump to content

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


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...