The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: Wireless Gateway Advice


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: window activation


  • To: <ukha_d@xxxxxxx>
  • Subject: RE: window activation
  • From: "Dan Hoehnen" <dhoehnen@xxxxxxx>
  • Date: Mon, 5 Feb 2001 07:57:37 -0500
  • Delivered-to: rich@xxxxxxx
  • Delivered-to: mailing list ukha_d@xxxxxxx
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

Outlook is hard to control via keystrokes because its main window title
changes based on which of its windows you have displayed.  You'd think MS
would know better and would make the window title start with
"Outlook" all
the time and then append the current window name to the end.  But, they
don't, so you have to look at what the window title is and use that.  For
example, when I have the Inbox displayed, I can send keystrokes by using a
window title of "Inbox".  I can also use "Inbox - Microsoft
Outlook".

To close Outlook, send ALT-F4 to it.  Here are 2 VB lines required to do
this (assuming the Inbox is the active Outlook window):

AppActivate("Inbox")
SendKeys("%{F4}")

If this won't work, myself or someone else may be able to write a small
program that would close Outlook whenever it is run by using the COM
interface to Outlook.

Dan


> Hi,
>
> Has any one had any luck sending keystrokes to Microsoft Outlook
> (2000)? if
> so what do I put for the window title?
>
> Paul
>
>
>
>
>
>



Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.