C# Simulate Key Press

前端 未结 3 730
我在风中等你
我在风中等你 2020-12-03 13:02

I was looking for a way to simulate pressing the right Ctrl key in C#, it must be the right one. I know this can be done for the left one but I couldn\'t find any

3条回答
  •  猫巷女王i
    2020-12-03 13:40

    If you are usign AutoHotKey try looking here. with {RControl} you should get what you want

    Update: For .NET try looking at this for more info, but AFAIK you can't send right Ctrl key. guess you must use win32 to accomplish it

提交回复
热议问题