A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Trigger event on explorer right click (unselected item)?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 21st 06, 09:48 PM posted to microsoft.public.outlook.program_addins
james
external usenet poster
 
Posts: 8
Default Trigger event on explorer right click (unselected item)?

(reposted from microsoft.public.win32.programmer.messaging)

Is there any way to catch the event for the user action of
right-clicking on an unselected explorer item, and clicking "reply"?

I have an add-in working in OL2003 / W2KPro whe
* Reply event _is_ triggered from an open inspector.
* Reply event _is_ triggered after user has selected an item in the
explorer

But:
Reply event is _not_ triggered if the user right-clicks on an
(unselected) item in the explorer and selects Reply.

Is there any way to trigger this event?

As the item isn't yet in an inspector, nor is it selected, it doesn't
seem as if we have an item that we specify events for.

Any ideas?

James

Ads
  #2  
Old February 21st 06, 09:52 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Trigger event on explorer right click (unselected item)?

Did you try to use the Application.Inspectors.NewInspector event?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"james" wrote in message
oups.com...
(reposted from microsoft.public.win32.programmer.messaging)

Is there any way to catch the event for the user action of
right-clicking on an unselected explorer item, and clicking "reply"?

I have an add-in working in OL2003 / W2KPro whe
* Reply event _is_ triggered from an open inspector.
* Reply event _is_ triggered after user has selected an item in the
explorer

But:
Reply event is _not_ triggered if the user right-clicks on an
(unselected) item in the explorer and selects Reply.

Is there any way to trigger this event?

As the item isn't yet in an inspector, nor is it selected, it doesn't
seem as if we have an item that we specify events for.

Any ideas?

James



  #3  
Old February 21st 06, 10:28 PM posted to microsoft.public.outlook.program_addins
james
external usenet poster
 
Posts: 8
Default Trigger event on explorer right click (unselected item)?

Yes, that works, I do get the item with this event, but I want to catch
the original item and manipulate it before it gets to the Inspector.

The tasks is:
Clean the subject line before it is presented in the Inspector window
(ie remove instances of specific strings)

james

  #4  
Old February 22nd 06, 12:39 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Trigger event on explorer right click (unselected item)?

You can look at the ConversationIndex property. If the length is 44 chars,
it is an original message. Otherwise remove 10 trailings chars and look for
a message with that value of ConversationIndex.
Not very efficient, but this is the best you can do IMHO.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"james" wrote in message
ups.com...
Yes, that works, I do get the item with this event, but I want to catch
the original item and manipulate it before it gets to the Inspector.

The tasks is:
Clean the subject line before it is presented in the Inspector window
(ie remove instances of specific strings)

james



  #5  
Old February 22nd 06, 02:26 AM posted to microsoft.public.outlook.program_addins
james
external usenet poster
 
Posts: 8
Default Trigger event on explorer right click (unselected item)?

Dmitriy, thanks for tip.

What about setting the reply event on *each* message in the open
explorer. I could see this would work well for mailboxes with small
numbers of messages, but would be quite painful when the number of
messages was in the 100's.

Also inefficient, but doesn't seem as if we have a direct method.

  #6  
Old February 22nd 06, 09:12 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Trigger event on explorer right click (unselected item)?

That wouldn't be a good idea - besides being inefficient, you can also run
out of 255 RPC channels/process limit in case of Exchange as each referenced
item would open its own RPC channel.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"james" wrote in message
oups.com...
Dmitriy, thanks for tip.

What about setting the reply event on *each* message in the open
explorer. I could see this would work well for mailboxes with small
numbers of messages, but would be quite painful when the number of
messages was in the 100's.

Also inefficient, but doesn't seem as if we have a direct method.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get OFFICE 97 to OPEN Internet explorer Lost Outlook - Installation 1 February 12th 06 06:22 AM
Handling Task Item Delete Event AtulSureka Outlook - Using Forms 0 January 24th 06 10:25 AM
form and event click ivanoe Outlook - Using Forms 1 January 17th 06 08:40 PM
Outlook Addin CommandBarButton Click Event Not Firing Stu Add-ins for Outlook 0 January 17th 06 02:10 AM
Denied Outlook "Send" access via Explorer when DSL Yahoo service Ken Steen-Olsen steen-olsen@sbcglobal Outlook - Installation 0 January 11th 06 11:17 PM


All times are GMT +1. The time now is 06:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.