HardwareEng.
HardwareEng.

Reputation: 99

Binding enabled also when minimized Tcl/Tk

I'm looking for a way to make key binding always active even when the top level is minimized. In other words, when the Wish app is in the background. I work in Windows.

Any ideas?

Upvotes: 0

Views: 70

Answers (2)

Colin Macleod
Colin Macleod

Reputation: 4382

Since you're on windows, get the TWAPI package (Tcl Windows API) and use twapi::register_hotkey. Documentation is at http://twapi.magicsplat.com/v4.0/input.html#register_hotkey and there's a blog article on this at http://www.magicsplat.com/blog/hotkeys-on-demand/ .

Upvotes: 1

Donal Fellows
Donal Fellows

Reputation: 137797

Tk is not designed to work that way. You'll need something like AutoHotkey instead.

Upvotes: 0

Related Questions