Sciter › Forums › Bug reports › Clipboard text not copied
- This topic has 8 replies, 3 voices, and was last updated 1 month ago by
RomanAsylum.
-
AuthorPosts
-
-
March 30, 2026 at 12:47 am #90051
RomanAsylum
ParticipantSciter: 6.0.3.11 (also checked on 6.0.3.15)
OS: Windows 10/11If I try to copy selected text inside any
<input type="text">control it not happened, clipboard stay same state as was before. I also checked example sciter.samples/clipboard/test-clipboard.htm, buttonPut textnot working correct also.Thanks
-
This topic was modified 1 month ago by
RomanAsylum.
-
This topic was modified 1 month ago by
RomanAsylum.
-
This topic was modified 1 month ago by
RomanAsylum.
-
This topic was modified 1 month ago by
-
March 30, 2026 at 7:22 am #90055
Andrew
KeymasterCannot reproduce the problem. Checked on Windows, MacOS and Linux / Ubuntu.
CTRL+C / CMD+C works as also
Clipboard.write({})call. -
March 31, 2026 at 2:30 am #90060
RomanAsylum
ParticipantFirst screenshot I press on button
Read clipboardand it have some text added from another app before. I select text in textbox and press on Ctrl-C. After it I press on buttonRead clipboardonce again, result on screenshot 2. I checked scapp and there all works correctly, it reproduced only if I run it from sciter.dll, not idea why it so.-
This reply was modified 1 month ago by
RomanAsylum.
-
This reply was modified 1 month ago by
RomanAsylum.
-
March 31, 2026 at 7:15 am #90065
Andrew
Keymaster-
March 31, 2026 at 8:14 am #90067
RomanAsylum
Participant"Is it in your own application? Do you call sciter::application::start(0, nullptr); like here ?"
yes my code below (it C#)
m_basicApi.SciterExec ( ApplicationCommand.SCITER_APP_INIT, 0, 0 ); // run loop for waiting close all windows var code = m_basicApi.SciterExec ( ApplicationCommand.SCITER_APP_LOOP, nint.Zero, nint.Zero ); // deinitialize engine m_basicApi.SciterExec ( ApplicationCommand.SCITER_APP_SHUTDOWN, nint.Zero, nint.Zero );"If "yes" try the same in usciter.exe on your machine."
Inside usciter all works. -
March 31, 2026 at 10:21 am #90070
Andrew
KeymasterOn Windows clipboard (and D&D) uses OLE mechanisms.
Among other things
SciterExec(SCITER_APP_INIT,...)calls OleInitialize.Try to call
OleInitialize()before thatm_basicApi.SciterExec ( ApplicationCommand.SCITER_APP_INIT, 0, 0 );and check its return value. If it fails it means that your app initializes COM environment in conflicting to OLE manner (OleInitialize needs single-thread apartment).
-
-
This reply was modified 1 month ago by
-
March 31, 2026 at 3:04 pm #90072
nsd22
ParticipantI am experiencing a similar issue. Copying from input controls within the C# application does not work. However, copying text from an external source and pasting it into the application's input fields works correctly.
Adding a call to OleInitialize at the start of the program did not resolve the issue:
[DllImport("ole32.dll", CallingConvention = CallingConvention.StdCall)] private static extern int OleInitialize(IntPtr pvReserved); ... OleInitialize(IntPtr.Zero);Note that in the "scapp" application, everything works perfectly.
-
March 31, 2026 at 3:28 pm #90075
-
March 31, 2026 at 11:24 pm #90079
RomanAsylum
ParticipantThanks Andrew and nsd22, it all works now
-
-
AuthorPosts
- You must be logged in to reply to this topic.



Build RSS channel
Sciter Twitter channel