You need the modifier flags of the WM_SETHOTKEY Message (http://msdn.microsoft.com/en-us/library/ms646284%28v=vs.85%29.aspx)
HOTKEYF_ALT 0x04 HOTKEYF_CONTROL 0x02 HOTKEYF_SHIFT 0x01 So the modifier Ctrl + Alt is 0x6. And the Virtual-Key Code of S is 0x53. You combine it to 0x653 and convert to decimal 1619 and that's it. Regards Malte > -----Ursprüngliche Nachricht----- > Von: Dsilva, Pramod [mailto:pramod.dsi...@philips.com] > Gesendet: Donnerstag, 17. März 2011 10:01 > An: wix-users@lists.sourceforge.net > Betreff: [WiX-users] How to assign Hotkey for a shortcut which is deployed > through Wix > > I am trying to assign an HotKey (Ctrl+Alt+S) for a shortcut I deploy on > Windows Desktop using Wix. Below is how I tried to assign the value. > However the compiler says that the Hotkey value has to be a integer value. > > <Shortcut Id="ToolsShortcut" WorkingDirectory="System" Icon="icon.vbs" > Directory="DesktopFolder" Hotkey="Ctrl+Alt+S" Description="Shortcut to > Launch the Tools Framework" Name="Tools.lnk" Advertise="yes"> > > > > Please could anyone tell me how to determine the equivalent integer value > for Ctrl+Alt+S > > Currently I know that I have to somehow combine the Hex equivalent for the > individual keys to create the Hotkey. > > Here's a link to Virtual-Key Codes<http://msdn.microsoft.com/en- > us/library/ms927178.aspx>. > > Below are the Hex values for the individual keys: > > Ctrl: 11 > > Alt: 12 > > S: 53 > > Any help would be greatly appreciated. > > > > Thanks, > > Pramod > > Philips Healthcare > > > ________________________________ > The information contained in this message may be confidential and legally > protected under applicable law. The message is intended solely for the > addressee(s). If you are not the intended recipient, you are hereby notified > that any use, forwarding, dissemination, or reproduction of this message is > strictly prohibited and may be unlawful. If you are not the intended > recipient, > please contact the sender by return e-mail and destroy all copies of the > original message. > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit for your > organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users