Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Iv'e been thinking about this, and it occurs to me that we could use an old technique from the Win32 days (Pre OLE, COM+ and all that jazz) called 'Sendkeys'</p> <p>Essentially what you need to do is use the win32 API to find the window handle of the live writer main window, then from there traverse the object hierarchy of the app until you find the web control.</p> <p>Once you have the handle to that object (spy++ will show you if it's accessible or not) you should in theory be able to then send any key combination you like to it, which in turn would get handled by the apps message pump as though the key press originated from the app itself.</p> <p>I did have a look at trying the approach, but it does depend on the app itself actually handling and acting on a key press to perform the required function in it's code. As I've found out by testing it, there appears to be no handling code in the parent app that does react to the zoom, so I'm not sure if the approach would work.</p> <p>However, expanding on this a little, It's not difficult to write plug-ins for live writer, once you have the SDK, so I think the avenue to explore to solve this problem will be a mixture of:</p> <p>A Live writer plug in to accept commands sent from a remote agent</p> <p>A remote agent using a method along the same lines as send keys to send messages to the plugin</p> <p>Code in the plugin, based on the code in my sample project that finds the browser control in situ, then calls it's zoom methods where needed.</p> <p>I've not got time however to peruse this at the moment :-(</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload