View Full Version : Make Shortcut makes keyborad not work?
8th February 2007, 06:50
OK useing the
CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$INSTDIR\My Program.exe" \
"some command line parameters" "$INSTDIR\My Program.exe" 2 SW_SHOWNORMAL \
ALT|CTRL|SHIFT|F5 "a description"
is seems to omit the Start In information on the created shortcut every time this incomkplete shortcut turns into a malicious file and casues the spacebar to stop functioning. I'm just curisous if this is happnd to anyone else or if this is just me being a noob at this.
8th February 2007, 07:30
A quick forum search returned a related thread that you might want to check,
8th February 2007, 22:37
Umm no i mean it makes the spacebar stop working system wide
9th February 2007, 10:02
You might want to read the windows help about:
"Provides a space for you to type a keyboard shortcut that you press to start or switch to a program. Shortcut keys automatically include CTRL+ALT. Press the key you want to add to this combination. For example, to define the shortcut key combination CTRL+ALT+H, press H. You cannot use ESC, ENTER, TAB, the SPACEBAR, PRINT SCREEN, DELETE, or BACKSPACE.
No other program can use this key combination. If the shortcut key conflicts with an access key in a Windows-based program, the access key does not work. An access key is a letter or number that, when used in combination with the ALT key, carries out the same command as clicking the command with the mouse."
Following example works perfect for me:
ReadRegStr $0 HKLM "Software\NSIS" ""
CreateDirectory "$SMPROGRAMS\My Company"
CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$0\nsis.exe" \
"" "$0\nsis.exe" 0 SW_SHOWNORMAL "ALT|SHIFT|F12" "a description"
22nd February 2007, 09:54
well can i ask then what i should so do if i dont want to include a shourtcut key for the shourtcut? i just want it to point to the specified file would simply "" work? (still a noob as this >_< )
22nd February 2007, 19:52
Originally posted by Sara Greorov
well can i ask then what i should so do if i dont want to include a shourtcut key for the shourtcut? i just want it to point to the specified file would simply "" work? (still a noob as this >_< ) You may skip one or more parameters simply by adding "" for every parameter that you wish to skip :)
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.