03-11-2015, 05:03 PM
My question is :
Is there a way to memorise the last caret position on a window, before clicking a toolbar's button?
More specifically the problem is as it follows :
I need to run a macro by clicking on a toolbar, that needs the caret position just before the macro initiation.
If the window is a notepad like client window you can get it through a SendMessage- EM_GETSEL statement. I try to find a solution in the case of a OE client window (Internet Explorer_Server class window).
I understand that you can by-pass this issue if - instead of using a toobar - you use a right click menu item.
Any advice is mostly welcome.
Is there a way to memorise the last caret position on a window, before clicking a toolbar's button?
More specifically the problem is as it follows :
I need to run a macro by clicking on a toolbar, that needs the caret position just before the macro initiation.
If the window is a notepad like client window you can get it through a SendMessage- EM_GETSEL statement. I try to find a solution in the case of a OE client window (Internet Explorer_Server class window).
I understand that you can by-pass this issue if - instead of using a toobar - you use a right click menu item.
Any advice is mostly welcome.