Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?
Save up to 50% on our desktop apps during our Year End Sale!Save up to 50% on our desktop apps during our Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our Year End Sale!

Switch Outlook Reading Pane to Right Side

Description
This script will focus the main Outlook window, then send the shortcut keys needed to move the Reading Pane to the right side.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
May 29, 2019
Date Last Modified
May 29, 2019

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr windowHandle)
	{
		// Find the main Outlook window and give it focus
		IntPtr window = BFS.Application.GetMainWindowByFile("*outlook.exe");
        BFS.Window.Focus(window);
        BFS.General.ThreadWait(250);
        
        // Send the keystrokes for moving the Reading Pane to the right side (Alt, V, PN, R)
        BFS.Input.SendKeys("%(){VK_86}{VK_80}{VK_78}{VK_82}");
	}
}