Thanks; it is for uplifting mail, and if anything in outbox sending it. As I
said; Send/Receive.
Tis a bit messy using sendkeys, but I guess most likely to get through all
the various types of mail softwares around.
Jeremy has suggested that:
MyOutlookMailObject.Display:=false;
Is ok for Outlook.
Last Q - if I'm gonna use Sendkeys, is there a specific namecall for the
mail program, or do I have to do something like this (where the user sets
the global mailprog)?
// starts
//global
var mailprog:word;
var
H: hWnd;
begin
case mailprog of
0: H := FindWindow('OutLook', Nil);
1: H := FindWindow('OutLook Express', Nil);
end;
Winprocs.SetFocus(H);
SendKeys('@TE#13');
// ohhps more problems above, various mailprogs will have different key
combos for send/receive
// ends
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz