From: Googie on
Hi,

Does anybody know extension (or just a way) for X11 under Unix system to
make HotKeys bindings available under Tcl?

I have a system-tray application and I need to bind some global hotkey to
show a window of that application.

Anyone?

Thanks,
--
Pozdrawiam! (Regards!)
Googie
From: John Seal on
"Googie" <no(a)spam.0rg> wrote in message
news:hovjv7$k1m$1(a)node1.news.atman.pl...
> Does anybody know extension (or just a way) for X11 under Unix system to
> make HotKeys bindings available under Tcl?

The only way I found to do that was to write a little helper app, in C for
example. Configure your .mwmrc or dtwmrc to run that app when the hotkey is
pressed. In my case it also passed in an argument saying which key was
pressed. The app would determine what host it was running on, then connect
to my Tcl app and send a message saying what key was pressed on what host,
then exit. The app launches and quits for each hotkey press.

You could write the helper app itself in Tcl, if you wanted to.