AHK HTML Editor test (W.I.P.)

Post your working scripts, libraries and tools for AHK v1.1 and older
m3user
Posts: 235
Joined: 17 Jan 2014, 18:11

Re: AHK HTML Editor test (W.I.P.)

13 Apr 2022, 15:40

I know it's old but this script is GREAT! Almost ready to be used as a Html edit control.
Any idea why copy and paste shortcuts (Ctrl+C and Ctrl+V) don't work?
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: AHK HTML Editor test (W.I.P.)

13 Apr 2022, 15:42

@m3user, it's been several years since I looked at it. I'll take a look, I seem to remember that problem.
Regards,
burque505
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: AHK HTML Editor test (W.I.P.)

13 Apr 2022, 16:50

@m3user, I have kludgy fix. The code changed is below, full new version is attached to OP. No 'Paste' button yet, though it should be *relatively* (famous last words) to add.

Code: Select all

^x::
ButtonCut:
doc.execCommand("Cut", false, null)
Gui, Submit, NoHide
return

^c::
ButtonCopy:
doc.execCommand("Copy", false, null)
Gui, Submit, NoHide
return

^v::
doc.execCommand("Paste")
Gui, Submit, NoHide
return
Regards,
burque505
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: AHK HTML Editor test (W.I.P.)

15 Apr 2022, 16:21

Bug fixes and re-add 'Paste' button. April 15, 2022. Version 0.0.4 attached to first post in thread.
Regards,
burque505
m3user
Posts: 235
Joined: 17 Jan 2014, 18:11

Re: AHK HTML Editor test (W.I.P.)

18 Apr 2022, 10:00

Thanks burque505, this is great!

I think the same easy fix could be made for Undo/Redo. Also it would make sense to disable the right click context menu as choosing some of the options disables the focus.
I also noticed that delete key sometimes doesn't delete the selected text, not sure why, I'll test it further.

Is there a way to save the html source to a variable? I see you can view the source by using a context menu (View source).
burque505
Posts: 1736
Joined: 22 Jan 2017, 19:37

Re: AHK HTML Editor test (W.I.P.)

20 Apr 2022, 16:29

@m3user, thanks for your input. I'll try to work on your requests this weekend.
Regards,
burque505
m3user
Posts: 235
Joined: 17 Jan 2014, 18:11

Re: AHK HTML Editor test (W.I.P.)

02 Jun 2022, 16:29

Just checking if there was any further improvement made on this great script. Thanks. :)

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 164 guests