Opened 7 months ago

Last modified 6 months ago

#3723 new Bug

Odd problem with _GUICtrlRichEdit_ReplaceText

Reported by: qwert Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: RichEdit ReplaceText Cc:


After months of observing an odd problem when clearing the text in a RichEdit control, I isolated the statements involved:
_GUICtrlRichEdit_SetSel($hEdit, 0, -1, True)
_GUICtrlRichEdit_ReplaceText($hEdit, "")

The odd part is that every now and then (a third of the time?) the text of the button I use to invoke those statements replaces the contents of the windows clipboard. In other words, if "Clear Text" is the text on the GUI button, then "Clear Text" shows up on the windows clipboard. Strange.

I replaced those statements in the particular script I am working on with: _GUICtrlRichEdit_SetText($hEdit, "") ... which works.

I realize this is an obscure problem, but the next time someone works on the _GUICtrlRichEdit features, they might want to look at it. For now, I'm fine.

Attachments (0)

Change History (1)

comment:1 Changed 6 months ago by BrewManNH

Can you post an example script that demonstrates the problem? This way we don't have to reinvent the wheel, and might not be doing it the same way as you are doing it.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as new The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.