Tu sei qui
Home › Forum home › NSISDialogDesigner › General discussions & questions › How add a control key shortcut and function when key used ›How add a control key shortcut and function when key used
Please let our ADS show!
This sites offers only FREE software and it's supported by a few advertisement boxes (no intrusive popups).
Please:
- disable your AdBlocker by adding CoolSoft website to whitelist
- give the proper cookie consent
- enable JavaScript for this website
This seconds wait is to let you update your browser configuration...
Ok, I've done the required changes... now show me your content!- Jean Louis
- Anonymous user
- coolsoft
- Posts: 1978
- Joined: 25 Mar 2012 - 01:19
By setting a shortcut like CTRL+0 you need to tell your users how to use it, i.e. by adding an help label.
IMHO there is a better way:
- place 2 buttons whith these texts: "Check &all" and "Check &none"
the & before a character makes that char accessible with the combination ALT+char, so clicking the Check none button or pressing ALT+n shortcut will lead to the same result - set the onClick property value of the two buttons to custom functions that check/uncheck all checkboxes
this function should better stay in your own script and not in .nsdinc generated one
As for the original question, I don't know how to register for an hotkey, but I suppose it requires calling some Win32 API function like RegisterHotKey() and it shouldn't be so easy...
The best place to ask for help on this is the official NSIS forum: http://forums.winamp.com/forumdisplay.php?forumid=65
- Jean Louis
- Anonymous user
Thank you, I use your solution and works like a charm !
Greetings.
Navigazione
Login
Clicca qui per supportare il mio lavoro con PayPal
oppure offrimi un caffè