PC Review


Reply
Thread Tools Rate Thread

Add a context menu item or VBE to Outlook 2002?

 
 
LuckyStrike
Guest
Posts: n/a
 
      12th Sep 2003
Hi,

Previously I added to Outlook 2002 (by using VBE) a Toolbutton for AVG AV so
as to be able to start my AV program with one click. Success.

Now I've been trying to add a command to Outlook 2002 and have had only
partial success. What I would like to do is have it run either a shell
extension of AVG (avgse.exe) so as to scan only the inbox of Outlook, or
only a single message that may or may not have an attachment.

The preferred approach (and simpler) would be a right click menu context
item that would have the already existing possibility of "scan with Avg".
The second approach would be to have a second tool button -which I have
already created with success- Scan with Avgse.exe to scan a single email or
inbox only.

I have done the latter, but the result is doubtful. After initiating the
scan, the shell extension box appears on the taskbar only. When I restore it
to view, the message box states "Test Finished- no suspicious files or virus
detected..." BUT, there is no file name in the field for "last file tested".
This makes me doubt that it has actually scanned anything. This is the
command I created:

Sub ScanItemAVG()
Shell ("C:\Program Files\Grisoft\AVG6\\AVGSE.exe""%1\")
End Sub
-----------------------------------

I even did an "Eicar virus" test with it, and the scan found nothing!!!
Something is not right with that, this is for certain.

Short version is: Can I add a R-Click Item, or can I find and add the
"filename to the command" by VBE to make this work?

Thanks,
--
LuckyStrike
(E-Mail Removed)
----------------------------------------------------------------------


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      12th Sep 2003
Try saving the message as a file to the system first (MailItem.SaveAs), then scanning the resulting file.

Outlook does not expose the right-click context menu in its CommandBars collection. AFAIK, the only time you'll see a new right-click command is when the item is using a custom form with one or more custom actions.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"LuckyStrike" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi,
>
> Previously I added to Outlook 2002 (by using VBE) a Toolbutton for AVG AV so
> as to be able to start my AV program with one click. Success.
>
> Now I've been trying to add a command to Outlook 2002 and have had only
> partial success. What I would like to do is have it run either a shell
> extension of AVG (avgse.exe) so as to scan only the inbox of Outlook, or
> only a single message that may or may not have an attachment.
>
> The preferred approach (and simpler) would be a right click menu context
> item that would have the already existing possibility of "scan with Avg".
> The second approach would be to have a second tool button -which I have
> already created with success- Scan with Avgse.exe to scan a single email or
> inbox only.
>
> I have done the latter, but the result is doubtful. After initiating the
> scan, the shell extension box appears on the taskbar only. When I restore it
> to view, the message box states "Test Finished- no suspicious files or virus
> detected..." BUT, there is no file name in the field for "last file tested".
> This makes me doubt that it has actually scanned anything. This is the
> command I created:
>
> Sub ScanItemAVG()
> Shell ("C:\Program Files\Grisoft\AVG6\\AVGSE.exe""%1\")
> End Sub
> -----------------------------------
>
> I even did an "Eicar virus" test with it, and the scan found nothing!!!
> Something is not right with that, this is for certain.
>
> Short version is: Can I add a R-Click Item, or can I find and add the
> "filename to the command" by VBE to make this work?
>
> Thanks,
> --
> LuckyStrike
> (E-Mail Removed)
> ----------------------------------------------------------------------
>
>

 
Reply With Quote
 
LuckyStrike
Guest
Posts: n/a
 
      13th Sep 2003
Hi Sue,

Thanks for the reply. I am presently doing that which you have suggested as
the first option. Inbox>open message>save as>Items to scan for virus>scan.

It probably sounds picayune, but it is such a "lengthy" process. Sure, I
realize the "small" effort entailed in this is definitely worth it, and to
not be so lazy about this in light of the consequences and even "lengthier"
recovery time if something should go awry.

Now, regarding the second "custom form", and "custom actions"; would you be
so kind as to elucidate on the what you mean by this? How one may (if
possible) go about obtaining/implementing/enabling such an item?

I appreciate the links BTW. Naturally, the information will be of great
value and has been added to my burgeoning reference folders.

Thanks again,
--
LuckyStrike
(E-Mail Removed)
----------------------------------------------------------------------------
-
"Sue Mosher [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Try saving the message as a file to the system first (MailItem.SaveAs), then
scanning the resulting file.

Outlook does not expose the right-click context menu in its CommandBars
collection. AFAIK, the only time you'll see a new right-click command is
when the item is using a custom form with one or more custom actions.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"LuckyStrike" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Hi,
>
> Previously I added to Outlook 2002 (by using VBE) a Toolbutton for AVG AV

so
> as to be able to start my AV program with one click. Success.
>
> Now I've been trying to add a command to Outlook 2002 and have had only
> partial success. What I would like to do is have it run either a shell
> extension of AVG (avgse.exe) so as to scan only the inbox of Outlook, or
> only a single message that may or may not have an attachment.
>
> The preferred approach (and simpler) would be a right click menu context
> item that would have the already existing possibility of "scan with Avg".
> The second approach would be to have a second tool button -which I have
> already created with success- Scan with Avgse.exe to scan a single email

or
> inbox only.
>
> I have done the latter, but the result is doubtful. After initiating the
> scan, the shell extension box appears on the taskbar only. When I restore

it
> to view, the message box states "Test Finished- no suspicious files or

virus
> detected..." BUT, there is no file name in the field for "last file

tested".
> This makes me doubt that it has actually scanned anything. This is the
> command I created:
>
> Sub ScanItemAVG()
> Shell ("C:\Program Files\Grisoft\AVG6\\AVGSE.exe""%1\")
> End Sub
> -----------------------------------
>
> I even did an "Eicar virus" test with it, and the scan found nothing!!!
> Something is not right with that, this is for certain.
>
> Short version is: Can I add a R-Click Item, or can I find and add the
> "filename to the command" by VBE to make this work?
>
> Thanks,
> --
> LuckyStrike
> (E-Mail Removed)
> ----------------------------------------------------------------------
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add image to Context Menu Strip Menu Item in code Joe Cool Microsoft C# .NET 2 29th Jul 2009 02:16 AM
How to add new item to outlook's context menu? pankaj.gharge@gmail.com Microsoft C# .NET 0 6th Sep 2007 07:13 AM
How to add new item to outlook's context menu? pankaj.gharge@gmail.com Microsoft C# .NET 0 6th Sep 2007 07:12 AM
Is it possible to add an item to the R-Click menu in Outlook (2002) ©® Microsoft Outlook Discussion 1 13th Mar 2004 07:00 PM
Is it possible to add an item to the R-Click menu in Outlook (2002) ©® Microsoft Outlook 1 13th Mar 2004 02:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 PM.