User forums > Nightly builds
The 11 February 2008 build (4872) is out.
Pecan:
--- Quote from: sika on February 14, 2008, 10:02:42 am ---...
CB with the plugin:
-copy text outside CB, paste inside CB -> doesn't work
--- End quote ---
Fixed: http://www.savefile.com/files/1380387
MouseSap001.zip. Make sure all editor windows are closed when you do the install, else MouseSap cannot see the window until the next CB startup.
Source: http://www.savefile.com/files/1380404
sika:
Ok, Thomas. Now I see why it isn't as simple as I thought.
Now I'm just wondering how do the other apps and native controls achieve this.
Thanks Pecan for the new version of your plugin! now the first problem is ok (the only problem that I see is that if you select something in CB, then something outside, it is the later that should be pasted.)
There's still the problem for selecting inside CB to paste outside. I agree that it should only be implemented for linux as this is quite a linux specific feature.
As for the scintilla code you gave, it seems to be the code for pasting with middle click inside scintilla (from what I understand). Do you know if you can do the opposite (from scintilla to outside world) with scintilla?
thomas:
--- Quote from: sika on February 14, 2008, 07:46:21 pm ---Now I'm just wondering how do the other apps and native controls achieve this.
--- End quote ---
Well, a native control doesn't have to worry, it's coded into it, it just happens. Console programs don't have to worry either, as the shell window does that.
--- Quote ---Do you know if you can do the opposite (from scintilla to outside world) with scintilla?
--- End quote ---
Yes, that's trivial, you only need to get the current text range and copy it to the clipboard. The problem is that you must do it every time the application loses focus, just in case. Actually, if you want to be able to copy from a text editor to somewhere else inside the application (file selector or whatever), you must do it every time the editor loses focus, or every time the user has made a new selection.
Pecan:
--- Quote from: sika on February 14, 2008, 07:46:21 pm ---
There's still the problem for selecting inside CB to paste outside. I agree that it should only be implemented for linux as this is quite a linux specific feature.
As for the scintilla code you gave, it seems to be the code for pasting with middle click inside scintilla (from what I understand). Do you know if you can do the opposite (from scintilla to outside world) with scintilla?
--- End quote ---
Yes, with this version, selected code is copied to the primary clipboard when an editor loses focus.
The selection is also copied to the clipboard if the user middle-mouse-clicks inside the selection.
This plugins performs the same on both msw and linux.
http://www.savefile.com/files/1382874
sika:
Thanks a lot!
This is getting great :D I'm currently testing the latest version.
I see a little problem remaining: copy/paste using middle click works ok now, but using keyboard (ctrl-c/ctrl-v) doesn't work correctly if you copy from inside CB to CB itself or any other app.
Do you think it can be solved?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version