Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Conversation

@Versatilus
Copy link

This adds two keyword arguments to BringApp, target and title.

target allows specifying an alternate executable to use when determining which window to bring to the foreground. This is useful in the case of programs which must be initiated by a separate launcher program. An example of this Emacs.

BringApp(r"C:\emacs\bin\runemacs", target="emacs")

title allows refining which windows are brought to the foreground based on matching a substring of a window title. Keeping an unsaved "scratchpad" open in notepad would be an example of this.

BringApp(r"notepad.exe", title="untitled")

daanzu pushed a commit to daanzu/dragonfly-old that referenced this pull request Mar 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant