Sign in to follow this  
Followers 0
Lempke

Start Outlook in safe mode

4 posts in this topic

I am trying to make a program which starts Outlook in safe mode.

I've tried this...but it doesn't work

Send("{CTRLDOWN}")
Run("C:\Program Files\Microsoft Office\Office12\Outlook.exe")   
Send("{CTRLUP}")

Share this post


Link to post
Share on other sites



Try this.

Run("C:\Program Files\Microsoft Office\Office12\Outlook.exe /safe")
That is an other option to do it thx.

...but I am still curious...why doesn't it work??? If I hold down the key myself the script works...but not with the CTRLDOWN

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Just a hunch, can't test because I don't have Office installed, but it might very well be because either the ctrl hasn't been "held down" long enough before starting or is "released" too soon after starting. Try something like:

/edit: whoops, forum seems to have fooked up that piece of code. Anyway, what I wanted to say was, try:

Send("{CTRLDOWN}")
Sleep(500)
Run("C:\Program Files\Microsoft Office\Office12\Outlook.exe")   
Sleep(500)
Send("{CTRLUP}")
Edited by SadBunny

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

Never thought of that...maybe the key is not down yet or up too soon.

Thx I am gonna try this

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
Sign in to follow this  
Followers 0