Lempke Posted November 23, 2010 Share Posted November 23, 2010 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}") Link to comment Share on other sites More sharing options...
Lempke Posted November 23, 2010 Author Share Posted November 23, 2010 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 Link to comment Share on other sites More sharing options...
SadBunny Posted November 23, 2010 Share Posted November 23, 2010 (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 November 23, 2010 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
Lempke Posted November 23, 2010 Author Share Posted November 23, 2010 Never thought of that...maybe the key is not down yet or up too soon. Thx I am gonna try this 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