Hello All! :wave:
I'm using this code in order to check new messages:
The problem is that the send/receive window is always on top and because of this I loose focus anything else I do during the script is running.
My question is, could Someone please inform me if there's any way to hide that window? I tried several scripts - found via different sites -, but no luck yet.
I'm sure, the window can be hidden somehow, because there's a button on it ("hide"), so I can hide it manually. And if I set the automatic new mail checking in the Outlook Express, in that case the send/receive window is always hidden.
Thanks very much for any help in advance!
--------
Used softwares are:
- Windows XP SP3
- Outlook Express 6.0
- Visual Basic 6.0
I'm using this code in order to check new messages:
Code:
With MAPISession1
.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.FetchUnreadOnly = True
MAPIMessages1.Fetch
If MAPIMessages1.MsgCount > 0 Then
MsgBox "" & MAPIMessages1.MsgCount & " new message(s)."
End If
End With
MAPISession1.SignOff
My question is, could Someone please inform me if there's any way to hide that window? I tried several scripts - found via different sites -, but no luck yet.
I'm sure, the window can be hidden somehow, because there's a button on it ("hide"), so I can hide it manually. And if I set the automatic new mail checking in the Outlook Express, in that case the send/receive window is always hidden.
Thanks very much for any help in advance!
--------
Used softwares are:
- Windows XP SP3
- Outlook Express 6.0
- Visual Basic 6.0