-
Dan Cooperstock
- PowerBuilder
- Wednesday, 26 March 2025 01:00 PM UTC
I need to build a mini email HTML editor and am considering the new PB2022 WebBrowser control based on WebView2.
It's easy to put it into DesignMode (so users can edit) with:wb_1.EvaluateJavascriptSync("document.designMode = 'on'", REF lsResult, REF lsError)
However, we also use a great tool called FlashPaste, which holds snippets of tech support answers in a menu format (and can also prompt for inputs), for pasting into emails etc. It does that pasting/inserting into more or less any text editing area automatically, using one of three selectable methods: paste from clipboard, keystroke simulation via VK_Packet, or keystroke simulation via SendKey.
Unfortunately, although it works in Outlook, in the old MS WebBrowser control (the basis of IE) embedded as an ActiveX into a PB window, and even in Edge (which uses WebView2!) put into DesignMode via the Console, none of the three methods work in the new PB WebBrowser control in a window, and I have no idea why! Pasting from the clipboard manually into the control in the window does work.
I know it's a longshot, but does anyone have any ideas about this? I'm also going to write FlashPaste about it, but of course they will likely have no knowledge of PB. It really seems to me that if it works in Edge, it should work in the PB WebBrowser control.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.