Page 1 of 1

add items to the start menu?

Posted: Wed Sep 28, 2005 2:23 pm
by lexvictory
is it possible to add items to the start menu?
i have figured out that i tuse a few "syslistview32"s, is there a way to hook the start menu thread (ive done that bit) and add items to the start menu, and then detect when they have been clicked?

Posted: Wed Sep 28, 2005 2:41 pm
by Trond
Why don't you just put a shortcut file in the startmenu folder?

Posted: Fri Sep 30, 2005 4:44 am
by lexvictory
oops, i should b more specific....
i meant xp's start menu - the start panel......

Posted: Fri Sep 30, 2005 7:28 pm
by jb
I think you should be able to do that by creating a shorcut in the following directory.

C:\Documents and Settings\All Users\Start Menu

Posted: Fri Sep 30, 2005 7:49 pm
by Trond
Image

Do you mean together with Internet and Email? Or together with all the "My xxx" folders? Or together with the Control Panel and Printers? Or together with help, search and run?

Posted: Fri Sep 30, 2005 8:56 pm
by jb
If you create a shorcut in the C:\Documents and Settings\All Users\Start Menu directory it will appear on the left side of the Start menu under your Internet Explorer and Outlook icons. If you want your program to appear in the All Programs menu just create the shortcut in the C:\Documents and Settings\All Users\Start Menu\Programs directory. You can also create your own program group if you like by creating a new directory in the C:\Documents and Settings\All Users\Start Menu. You will get different results depending on if you are using the Classic Start menu or not.

Posted: Sat Oct 01, 2005 9:03 am
by lexvictory
well, jb if u put it in allusers\start menu, it will only appear on the left side wen the user has clicked it enough.....
more specifically, i would like to make a submenu bit on the right side, preferebly in the run command section
by submenu i mean like when u hav the control panel set to b a menu (in start menu properties)

Posted: Sat Oct 01, 2005 12:12 pm
by Droopy
Try GetSpecialFolderLocation from the Droopy Lib to know where StartMenu is .

Posted: Sun Oct 02, 2005 3:04 am
by lexvictory
i keep telling u people I DONT WANT IT IN THE START MENU BIT WITH ALL THE PROGRAMS i know how to add items to that bit, the bit u guys are all talking about is the bit that is under "all programs" in the picture that trond posted, i want this submenu BELOW the run command.
get it NOW?

Posted: Mon Oct 03, 2005 12:58 pm
by jb
I found this tip. I haven't tried it yet but I think this may be what you are looking for. It should display your program under the Run... menu option.

1. Start up Notepad and create a new registry file (*.reg) and copy and paste the following into it:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}]
@="YOUR TITLE HERE"

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\DefaultIcon]
@="YOUR ICON HERE"

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\InProcServer32]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
64,00,6f,00,63,00,76,00,77,00,2e,00,64,00,6c,00,6c,00,00,00
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance]
"CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag]
"CLSID"="{13709620-C279-11CE-A49E-444553540000}"
"method"="ShellExecute"
"Command"="YOUR TITLE HERE"
"Param1"="YOUR FUNCTION HERE"

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\shellex]

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\shellex\ContextMenuHandlers\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}]
@=""

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\shellex\MayChangeDefaultMenu]
@=""

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\ShellFolder]
"Attributes"=dword:00000000

2. Edit where it says YOUR ICON HERE to a path to an icon (ex. c:\\icon.ico), it must be 24x24 pixels and in *.ico format. Use double back slash for path names.

3. Edit both places where it says YOUR TITLE HERE to what you want it to say in the Start Menu (ex. PureBasic Forums).

4. Edit where it says YOUR FUNCTION here to what you want it to do when you click it, it can be anything... your website, a local HTML document, a program, a Windows funtion, whatever your imagination can provide (ex. http://www.forums.purebasic.com/english/).

5. Save this file as brand.reg, double-click it to enter in your information, and refresh Explorer (log off/on) to see it in the Start Menu!! This works in both Home and Professional (and probably 64-Bit Professional) Editions.

Posted: Thu Oct 13, 2005 12:41 pm
by lexvictory
hey cool!
is there a way to have more than one item this way? or a menu that pops up when the item is hovered over?

btw for the icon u can use the same format as an autorun.inf file - "explorer.exe, 1"

Posted: Thu Apr 19, 2007 2:13 pm
by Philippe-felixer76
lexvictory wrote:i keep telling u people I DONT WANT IT IN THE START MENU BIT WITH ALL THE PROGRAMS i know how to add items to that bit, the bit u guys are all talking about is the bit that is under "all programs" in the picture that trond posted, i want this submenu BELOW the run command.
get it NOW?
I do now a way to get it in the start menu bit with all the programs.
;)

Posted: Thu Apr 19, 2007 10:00 pm
by SFSxOI
Philippe-felixer76 wrote:
lexvictory wrote:i keep telling u people I DONT WANT IT IN THE START MENU BIT WITH ALL THE PROGRAMS i know how to add items to that bit, the bit u guys are all talking about is the bit that is under "all programs" in the picture that trond posted, i want this submenu BELOW the run command.
get it NOW?
I do now a way to get it in the start menu bit with all the programs.
;)
Well, don't keep us all in suspense.....what is it? ;)