#1493 EM/SCI_REPLACESEL Problem

Bug
closed-rejected
scintilla (249)
5
2013-07-21
2013-07-01
SourceX
No

I'm trying to use a AutoHotkey macro to send an EM_REPLACESEL message (194 or 0xC2) to a Scintilla control to insert text in an application that I am using. Although it works with standard edit controls, in any Scintilla control I try using it on, it only sends the first character in the string to be sent (it inserts two ASCII characters if the first character in the sent string is Unicode). I've tried using its counterpart specifically designed for Scintilla (SCI_REPLACESEL, 2170), but that always causes an access violation and crashes the application. According to the Scintilla documentation, EM_REPLACESEL should still be supported. Are these expected behaviors?

Discussion

  • Neil Hodgson

    Neil Hodgson - 2013-07-01
    • labels: --> scintilla
    • status: unread --> open-rejected
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2013-07-01

    The use of EM_* messages is deprecated. They were only included to get started back when most code used ANSI calls. They won't be updated to accept UTF-16.

    The main Scintilla API never uses UTF-16. For Unicode, UTF-8 is used after setting the code page.

     
  • SourceX

    SourceX - 2013-07-01

    How do I know if I'm using UTF-16 or UTF-8?

     
  • Neil Hodgson

    Neil Hodgson - 2013-07-01

    You should read the documentation for AutoHotkey to see what format it uses for strings.

     
  • Neil Hodgson

    Neil Hodgson - 2013-07-21
    • status: open-rejected --> closed-rejected
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks