Skip to content

[Feature Request] Send keys to minimized or inactive windows #125

@smalleel

Description

@smalleel
  • Robotgo version (or commit ref): 0.48.0
  • Go version: go 1.10
  • Gcc version: 7.3.0
  • Operating system and bit: Windows 10 64bit / Linux manjaro 4.14.27 64bit
  • Can you reproduce the bug at Examples:
    • Yes (provide example code)
    • No
    • Not relevant

Description

Is there a workflow available for sending keystrokes to background or inactive windows? Keystrokes sent with KeyTap() or TypeString() trigger the key events fine, and SetActive() can work to bring a window to the front to receive keystrokes, but I was wondering is there any way to send keys to an inactive or minimized window.

There seem to be some ways to do this with C# on Windows per this SO question's solutions. I'm not sure what complexity is involved with other OSes or with Golang though.

Is sending keys to minimized or inactive windows something that could ever be supported by Robotgo? Is there already a way that I missed?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions