用剪贴板粘贴F12 [英] Pasting from clipboard with F12

查看:421
本文介绍了用剪贴板粘贴F12的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用F12键从剪贴板粘贴,请举一些例子,因为我无法理解我读过的任何Key Remapping。

I want to paste from clipboard with the F12 key please give some examples because i cannot uderstand any Key Remapping i have read.

推荐答案


我想用F12键从剪贴板粘贴,请举几个例子,因为我无法理解我读过的任何Key Remapping。
I want to paste from clipboard with the F12 key please give some examples because i cannot uderstand any Key Remapping i have read.



在KeyDown事件中写下如下内容:

In the KeyDown event write something like:

展开 | 选择 | 换行 | 行号



在KeyDown事件中写下类似的内容:

In the KeyDown event write something like:

展开 | 选择 | Wrap | 行号



感谢您的快速回复,但我不确定粘贴到所选内容的语法,我使用Clipboard.GetText吗?如果是这样的话。


感谢您的帮助:)

狼吞虎咽。
Thanks for your prompt reply but i am unsure about the syntax of pasting to what ever is selected , Do i use Clipboard.GetText ? if so how.

Thanks for your help :)
Gobble.



好​​吧,这取决于你选择了什么,如果它是一个文本框,例如:

textbox1.paste

应该足够了。

记住keydown事件发生在控件或表单具有焦点并且你按任意键时,所以你必须在控件的'keydown事件中写一些东西,你想要这个功能。


现在,如果您想要的是一个重新映射键盘的小程序,那么可能需要一个读取键盘事件的Timer。但我认为如果只有一行,我们需要使它复杂化:

well, it depends on what you''ve selected, if its a textbox, something like:
textbox1.paste
should be enough.
Remember the keydown event occurs when the control or form has the focus and you press any key, so you''ll have to write something in the controls'' keydown event, that you want to have this feature.

Now, if what you want is a little program that ''remaps the keyboard'' all the time, that''ll probably need a Timer that read the keyboard events. But i dont think we need to complicate it if a single line:

展开 | 选择 | Wrap | 行号


这篇关于用剪贴板粘贴F12的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆