开发者

Driver to simulate keypresses into another process

How can I simulate a key being pressed in a given process on Linux? Xorg isn't running, the inputs are handled by D开发者_运维百科irectFB


I'm not entirely sure what you are trying to accomplish here... more information about your goals would be very helpful.

To communicate between different processes you either need to use signals (or here) or that specific program's API (e.g., Xorg's development wiki).


I would think that you'd want to use a pipe to input info to other processes. What your program could do is close the stdio input file descriptor and open a new file descriptor that your program uses to write to the process. A good source you may like is beejs guide to posix programming. look it up, it has what you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜