Forums: ZeniSynth 2.0への要望 (Thread #28868)

クリップボード機能 (2011-03-16 00:57 by jado #56262)

クリップボードの読み書き関数があると便利かと思います。

追加(push)のようなAPIがあると、EmacsのC-k的な動作もできます。
リングバッファ的に作れれば、C-y / M-y のエミュレーションもできそうですね。

まぁ、最低読み書きは欲しいです。

Reply to #56262×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: クリップボード機能 (2011-03-30 19:23 by mnemoto #56479)

ご提案ありがとうございます。
現在のLuaエンジンはUnicodeに対応していないため、日本語文字列の読み書きができません。
YueliangというUnicodeに対応したLuaの実装があるとのことですので調査してみます。
Reply to #56262

Reply to #56479×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: クリップボード機能 (2011-04-01 01:07 by jado #56507)

別スレッドで、Ctrl+Cのようなキーイベントを吐かせる際の問題について書きましたが、このケース、Lua側でクリップボードをいじってしまうという解法もあるな、とも考えています。

つまり、セレクションの内容を取得→それをクリップボードにpush のような処理ができれば、苦労してCtrl+Cのイベントを発生させなくてもいいということになりますよね。

このような処理だと、unicode対応である必要はなさそうですが(もちろん対応していたほうが便利ですけどね)、そもそもWin32APIでこのような処理は可能なのでしょうか? もし可能ならそういうAPI(セレクション部分の文字列を取得?)も用意していただけるとすごく便利ですね。
Reply to #56262

Reply to #56507×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login