Send a key code to an application without activating it first?

前端 未结 5 591
野性不改
野性不改 2020-12-24 11:59

I\'m trying to send the spacebar key to an application without activating it first. The following code almost does what I want but it brings the application to the foregroun

5条回答
  •  一整个雨季
    2020-12-24 12:33

    Position is offscreen to prevent it from flashing where the user can see it or reduce its opacity.

提交回复
热议问题