System.Windows.Forms.SendKeys .... [英] System.Windows.Forms.SendKeys....
问题描述
大家好,
我想找到类似System.Windows.Forms.SendKeys.SendWait(string);的东西.使用MonoMac将unicodechars和键发送到焦点窗口.我首先尝试模拟按键,但这不是我想要的,但是事件模拟按键让我很烦恼(经过3天的努力,我终于找到了答案).模拟按键不是一个好方法,因为启用Caps Lock时无法模拟"a".我无法发送Unicode字符,因为事实是按键功能就像用户按下键盘上的键一样.
我在MonoMac中使用了System.Windows.Forms.SendKeys.SendWait(因为System.Windows.Forms已移植到Mono),但现在可以使用了.我检查了代码,发现SendKeys没有经过优化,无法在MAC OS X上使用.
因此,我真的厌倦了搜索并发现无用的东西.
请以这种方式帮助我.
问候,
PK DEVELOPER
Hi all,
I want to find something like System.Windows.Forms.SendKeys.SendWait(string); to send unicodechars & keys to focused window using MonoMac. I first tried to simulate key press but that is not what I am looking however event simulating key press bothered me alot(and after 3 days hard working, I finally found the answer). Simulating key press is not a good way because I can''t simulate "a" when Caps Lock is on. I can''t send Unicode characters because the fact is that Key press acts like the user presses a key on his keyboard.
I used System.Windows.Forms.SendKeys.SendWait in MonoMac (because System.Windows.Forms is ported to Mono) but did now worked. I checked the code and I figured out the SendKeys is not optimized to use on MAC OS X.
So I am really tired of searching and finding nothing useful.
Please help me in this way.
Regards,
PK DEVELOPER
推荐答案
我不知道以下内容是否可以在MonoMAC上运行,但在Windows上当然可以正常运行.而且它是免费的,并且有文档记录和其他好东西.
http://inputsimulator.codeplex.com/
I don''t know if the below will work on MonoMAC but it certainly works well on Windows. And it''s free, and it''s documented and other good stuff.
http://inputsimulator.codeplex.com/
这篇关于System.Windows.Forms.SendKeys ....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!