digitalmars.D.learn - TKd handling of custom events
- univacc (8/8) Nov 19 2014 Hello,
- univacc (6/15) Nov 20 2014 Nevermind.
- Gary Willoughby (6/15) Nov 20 2014 I don't think this is possible in Tcl/Tk without installing an
Hello, I am using TKd to dray my linux/windows app which works very good! I would like to add a global Hotkey to my program via the Win32 API function RegisterGlobalHotkey. Is there a possibility to access Tk's event loop so that you can Handle the WM_HOTKEY message, the WinAPI sends you? Regards, univacc
Nov 19 2014
On Wednesday, 19 November 2014 at 23:44:00 UTC, univacc wrote:Hello, I am using TKd to dray my linux/windows app which works very good! I would like to add a global Hotkey to my program via the Win32 API function RegisterGlobalHotkey. Is there a possibility to access Tk's event loop so that you can Handle the WM_HOTKEY message, the WinAPI sends you? Regards, univaccNevermind. If someone has the same issue: Just create another Win32 API Window, that is hidden and let that one receive your hotkey message! Regards
Nov 20 2014
On Wednesday, 19 November 2014 at 23:44:00 UTC, univacc wrote:Hello, I am using TKd to dray my linux/windows app which works very good! I would like to add a global Hotkey to my program via the Win32 API function RegisterGlobalHotkey. Is there a possibility to access Tk's event loop so that you can Handle the WM_HOTKEY message, the WinAPI sends you? Regards, univaccI don't think this is possible in Tcl/Tk without installing an extension as discussed here: http://computer-programming-forum.com/57-tcl/c9af2b9def3914c2.htm Tkd doesn't rely on any extensions and is just using vanilla Tcl/Tk.
Nov 20 2014