English 中文(简体)
模拟模型和关键板投入
原标题:Simulate mouse and keyboard input in C++

我正在寻找一种办法,模拟C++的模拟和关键投入。 我正在寻找一个有助于我实现这一目标的交叉图书馆。 任何建议?

目标平台是桌面平台...... 仅限LC、Mac和Windows。

最佳回答

没有,投入装置模拟就非常具体,甚至在一个平台上也是有限的。 它不是任何目的的有力技术,因此,你将找不到良好的图书馆来执行。

最为困难的那部分,一旦有了基本的信息预报系统,就使有关装置符合监督厅的要求。 你们希望,像用 mo一样,以较低频率发送逐渐改变使用运动的最新情况,并合理拖延点击和关键压力。 一个像SDL这样的游戏图书馆可能会协助执行活动时间表和进行基本的地理测量。

如果你忽视时间,则本处可删除模拟动议、解冻 but子、重新安排动议次序和点击、忽略在轨迹使用时的关键压力等。 将近10年前,我仅写了这一工具。

问题回答

I started such a Library, maybe you want cast a glance. https://github.com/pythoneer/XInputSimulator

它在早期状态和撰写假肢的时候。 但是,我希望它能做得更好:

虽然投入图书馆是具体的平台,但全球倡议也是如此,但有一些抽象的图书馆可供使用,例如WxWdigets和Qt,这些图书馆掩盖了复杂性,而且为投入,我发现这很有意义。

https://github.com/jkuhlmann/gainput”rel=“nofollow noreferer”>https://github.com/jkuhlmann/gainput





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签