flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > Monitor clipboard for changes, Win64, MathML |
Author |
|
bitRAKE 28 Mar 2013, 01:48
Just a simple example to get the MathML from the Math Input Panel (Win7+).
Besides using SetClipboardViewer/ChangeClipboardChain, the important bits are: Code: _WM_CHANGECBCHAIN: mov rcx,[hNextCBView] cmp rcx,r8 jnz .1 mov [hNextCBView],r9 .0: xor eax,eax ret .1: jrcxz .0 invoke SendMessage,rcx,rdx,r8,r9 jmp .0 _WM_DRAWCLIPBOARD: invoke SendMessage,[hNextCBView],rdx,r8,r9 . . (do something) . xor eax,eax ret The Math Input Panel only exposes it's translating in a custom format. Which prevents it from being pasted into any regular text editor, so this is also a mildly useful tool. v0.1 - added hook to center MessageBox's.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup Last edited by bitRAKE on 28 Mar 2013, 14:28; edited 1 time in total |
|||||||||||
28 Mar 2013, 01:48 |
|
bitRAKE 28 Mar 2013, 13:02
MathML is going to be more popular in time, too. (Added to HTML5.) I was surprised how easy it was to enter a matrix - it looks like it isn't going to work and then MIP makes the right interpretation. I've tried it on a touch screen - felt more like writing, but the processor was very slow (couple years ago) and made the interpretation sluggish.
|
|||
28 Mar 2013, 13:02 |
|
MHajduk 28 Mar 2013, 13:11
bitRAKE wrote: MathML is going to be more popular in time, too. (Added to HTML5.) |
|||
28 Mar 2013, 13:11 |
|
bitRAKE 28 Mar 2013, 14:08
http://www.mathjax.org/ - works in all browsers right now.
|
|||
28 Mar 2013, 14:08 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.