Hi

i have a Problem with ItemSend() Token.
I develop an application to save send email.
Now when i open two or more NewMail Window and i push the send button in the
active window
the mail in the active window and all other open mails would send.

if (ID = BFTKN_SEND) then begin
vCommander:=CreateOleObject('GroupWiseCommander');
gwApplication:=CreateOleObject('NovellGroupWareSes sion');
gwAccount:= gwApplication.Login;

cReturn:=vCommander.Execute('ItemGetText("X00";9)' , sResultSubject);
cReturn:=vCommander.Execute('ItemGetDate("X00";139 ;174)',
sResultDate);
cReturn:=vCommander.Execute('ItemGetType("X00")', sResultType);

cReturn:=vCommander.Execute('ItemSend()', dwSend);

Here my Question, how could i check the active window or is there an other
way to send only on Mail.

Regards
Richard