If you execute this Script:
Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus
#NoEnv
#SingleInstance, Force
SendMode Input
html =
(
<html>
<body>
<input type="text" id="edit">
</body>
</html>
)
Gui, Add, ActiveX, w200 h100 vIE, HTMLFile
IE.write(html)
Gui, Show
IE.getElementById("edit").focus()
Send, 1234{left}{left}{del}
Return
; Das funktioniert:
; ~del::
; msgbox del
; Return
GuiClose:
ExitApp
You get an Gui with an Inputbox containing 1234.
The cursor is in the middle.
It should be 12.
Also the Del key isn't responing.
The user Joe reported this behaiour an I can confirm this.
viewtopic.php?f=9&t=85
I'll test again with AHK 1.1.13 once I come home.
ActiveX doesn't respond to Del Key.
-
- Posts: 1
- Joined: 09 Sep 2018, 22:56
- Contact:
Re: ActiveX doesn't respond to Del Key.
I don't know why ActiveX ignores it (pressing the key itself is ignored, too), but at least in this case, you could probably workaround with {backspace}.
If it would work, I would rather expect 124 as a result, because you are sending del only once.It should be 12
Re: ActiveX doesn't respond to Del Key.
Hi,
Try this:
Hope this helps.
Try this:
Code: Select all
#NoEnv
#SingleInstance, Force
SendMode Input
html =
(
<html>
<body>
<input type="text" id="edit">
</body>
</html>
)
Gui, Add, ActiveX, w200 h100 vHTMLDoc, HTMLFile
HTMLDoc.write(html)
Gui, Show, AutoSize
HTMLDoc.getElementById("edit").focus()
sleep, 100
Send, 1234{Left 2}
Send, {Shift Down}
Send, {Right 2}
Send, {Shift Up}
sleep, 2000
HTMLDoc.ExecCommand("delete") ; https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
sleep, 1000
ExitApp