add items to the start menu?

Windows specific forum
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

add items to the start menu?

Post 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?
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Why don't you just put a shortcut file in the startmenu folder?
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

oops, i should b more specific....
i meant xp's start menu - the start panel......
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Post 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
-jb
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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?
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Post 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.
-jb
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post 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)
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

Try GetSpecialFolderLocation from the Droopy Lib to know where StartMenu is .
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post 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?
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
jb
User
User
Posts: 37
Joined: Wed Jul 14, 2004 11:58 pm
Location: United States

Post 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.
-jb
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post 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"
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Philippe-felixer76
User
User
Posts: 57
Joined: Mon Dec 18, 2006 2:02 pm
Location: Holland

Post 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.
;)
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post 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? ;)
Post Reply