Craig Small
asked on
How do I access a context menu programmatically?
I have a third-party written dll with no documentation. It is "registered", and implements a context menu item when right-clicked on a particular file type. I'd like to be able to both identify the entry point for the dll, and be able to simulate the context menu option programatically, e.g., via VBScript.
The dll is written is C++, and I do have the source code, but it is quite opaque to me (my exposure to C is limited). If the code would be useful, I'm quite prepared to post it up.
The dll is written is C++, and I do have the source code, but it is quite opaque to me (my exposure to C is limited). If the code would be useful, I'm quite prepared to post it up.
Not sure about VBSCript but you can hook into your application using windows hooking APIs and trap certain events before they are actually handled...!!!!
ASKER
That sounds really promising. What are the examples of such hooking APIs that I might be able to use? I'm a complete novice with the API interface, except for some failrly dodgy stuff that I've implented in VB to manage some tasks that VB can't do natively. And most of that I copied directly from web posts. So please, if you will, share your wisdom! Does this require a hike in the points rate for this question?
As I said earlier, I have not idea how you can achieve this using VBScript, you can use hooking win32 APIs. Hooking is nicely explained over here,
http://msdn.microsoft.com/en-us/library/ms997537.aspx
I can help you with whatever information I have.... !!! I didn't say anything about hike in points even in my first post...!!!
http://msdn.microsoft.com/en-us/library/ms997537.aspx
I can help you with whatever information I have.... !!! I didn't say anything about hike in points even in my first post...!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Haha, no, the change in points was all my own idea! It's just that if you needed to expend a lot of time and effort, I wanted to make it worth your while. This is my first post, so I'm feeling my way a bit. I'll have a look at that link and see what I can work out.
Thanks so much!
Thanks so much!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Expert was not fully aware of how to implement in VBScript.