Page 2 of 2

Re: SimulateKeyEvent

Posted: Mon Jun 03, 2024 12:10 am
by jc4golf
I think I've found a solution. Instead of sending individual keystrokes, I've found I can use the following javascript to enter a value into an input element:

Code: Select all

  TempJavaScript := 'document.execCommand("insertText", false, "jc4golf@outlook.com");';
There is a potential problem with this because document.execCommand() is deprecated, although it still works, and if it doesn't still work in the future I'll have to try something else.