KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Moving around Outlook
Topic Summary: command which moves between different areas in Outlook 2016
Created On: 07/18/2021 03:28 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Moving around Outlook   - Brevitatis - 07/18/2021 03:28 PM  
 Moving around Outlook   - Lunis Orcutt - 07/18/2021 07:01 PM  
 Moving around Outlook   - Brevitatis - 07/18/2021 07:15 PM  
Keyword
 07/18/2021 03:28 PM
User is offline View Users Profile Print this message

Author Icon
Brevitatis
New Member

Posts: 18
Joined: 06/12/2019

This is driving me nuts!

I use Microsoft OneNote for saving incoming and outgoing emails in Outlook 2016. 

I would like to automatically send my outgoings emails to OneNote as soon as I send the email, rather than do it manually.

This is the code I have written:

AppBringUp "C:\Program Files\Microsoft Office\Office16\OUTLOOK.EXE"

Wait 500

sendkeys "{Alt 3}"

HeardWord "press","enter"

SendKeys "{F6}"

Wait 500

SendKeys "{Enter}"

HeardWord "Go", "to", "top"

This code will switch to Outlook, go to the Sent Items folder Favourites, then move to the Navigation Pane. However, despite trying various ways, I cannot get the cursor to move to the top of the page, where my latest sent email is listed. I've tried SendKeys "{ctrl+home}" but nothing happens. As can be seen above, I've also tried HeardWord, but again, it does not highlight the latest sent email. Anyone know what I'm doing wrong? 

 07/18/2021 07:01 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 39191
Joined: 10/01/2006

Assuming this is a DVC script, try the following:

AppBringUp "C:\Program Files\Microsoft Office\Office16\OUTLOOK.EXE"
Wait 1000
Sendkeys "{Alt+3}"
Wait 500
Sendkeys "{Enter}"
Wait 300
SendKeys "{F6}"
Wait 500
SendKeys "{Enter}"
Wait 300
SendSystemKeys "{Ctrl+Home}"



-------------------------

Change "No" to "Know" w/KnowBrainer 2020
Trial Downloads
Dragon/Sales@KnowBrainer.com 
(615) 884-4558 ex 1



 07/18/2021 07:15 PM
User is offline View Users Profile Print this message

Author Icon
Brevitatis
New Member

Posts: 18
Joined: 06/12/2019

Lunis
You're a genius! I have been trying on and off for a few weeks in the hope of getting this to work. The 'SendSystemKeys' was the missing link. Many thanks indeed!!!
KnowBrainer Speech Recognition » Commands, Scripts, and Macros - Dragon » Moving around Outlook

Statistics
32106 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 516 guests browsing this forum, which makes a total of 517 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2021 FuseTalk™ Inc. All rights reserved.