[APP] Control Panel Settings to Links (.lnk) - Windows Mobile Development and Hacking General

Hi guys,
I know it's a 10 seconds job to create a link for items inside the control panel (settings) such as "Usb to PC" or "Power" but I'm too lazy to do it every time I try a new rom,
also I found some of the values change from rom to rom, so I create a really simple app that goes through the registry key which holds the settings items (KLM\Security\Shell\StartInfo\Start) and creates a .lnk file for each of these entries.
Having a direct link allows me to add that option as a quick link which is handy 8)
Anyway, here is the tool in case someone wants it.
The exe must be installed in "\Program Files\CplLinks" (Device). It only takes 11.5 kb. The only reason the .exe is needed after the lnk are created is to provide an icon.
When you run it, it reads the HKEY mention above and creates .lnk for each item in the "Settings" menu. The lnks are created in "\Windows\Start Menu\Programs\CplLinks" so are directly accessible through the Programs menu.
There are no messages, it runs and creates the links, no interaction whatsoever so do not expect any nice popup window 8)
Next version will use specific icons for each item, right now, all the links use the same icon from the cpllink.exe executable.
The icons for most of the Settings are .png files rather than .ico, and WM doesn't have an easy way to convert from .png into .ico, the idea for a "future version" is to collect all the .png files,converted to icons and create a dll on the fly with the icons as resources, so they can be referenced from the .lnk files
Couple of screen shots from the emulator.

Great application! It works like a charm! Thank you for this convenient time saver
EDiT (another time saver)
After applying a Hard Reset WE have to reinstall all programs if you have previously installed them in the memory card. Often it is sufficient to recreate the shortcut in the start menu. ShortCutCreator helps you to recover the exe files and to recreate the desired shortcut.

Thanks for sharing!

I guess would be better if I manage to provide a different icon for each link, but Icon support is quite limited inside VM. Need to work in the PNG to Icon -> .dll routine 8)
I though having the app in internal memory was a better solution than in \Storage Card, so it will take less time to load the icon from the program, but I can change it and allow that option, so the icons in the links are pointing to \Storage.. rather than \Programs..
Anyway, it just a time-saver thingy 8)

Nice app. It does not seem to work on WM6.1 though.
It does create a new folder structure: CplLinks\System inside the Start Menu.

Very nice. It does seems to create a bunch of redundant or non-used links though

Yep, I saw it only works on WM6.5, on WM6.1 there are no "StartInfo\Start" in the "KLM\Security\Shell\". Not sure where it keeps that info, maybe somewhere else in the registry.
I finally managed to convert PNG to ICO, so I think next version would allow you to choose which items you want to create links for rather than just dump everything 8)

dubidu said:
Yep, I saw it only works on WM6.5, on WM6.1 there are no "StartInfo\Start" in the "KLM\Security\Shell\". Not sure where it keeps that info, maybe somewhere else in the registry.
I finally managed to convert PNG to ICO, so I think next version would allow you to choose which items you want to create links for rather than just dump everything 8)
Click to expand...
Click to collapse
WM6.1 control panel is "HKLM\ControlPanel" if I remember correctly. There will be numbers for the mycpl stuff and words for some other control panel items like backlight, etc.

I think this post got lost in the last database disaster 8)
I wrote a new version of this tool that now gives you the icons for the control panel settings, check it out here:
http://forum.xda-developers.com/showthread.php?t=791682

Related

map programs folder to hardkey?

In HTC home plug, I can set one of the soft buttons on the launcher to "launch programs folder". Is there a way to map this function to a hardkey? I don't want to download a third party launcher--I just want to be able to press a button and open the programs folder (and not in the file explorer view).
Any help would be wonderful.
Another folder in which I could put shortcuts in would also work. I just want the icons large and finger friendly like the programs folder.
Is it possible to use folderview.exe to do this?
Check here for the solution...
http://forum.xda-developers.com/showpost.php?p=1644004&postcount=7
I used this to create a shortcut in each and every sub folder under Programs so once in a sub folder, I can easily go back to the Programs folder without having to close the window and open the Programs again from the HTC Home App.
I called the shortcut '!Back to Programs.lnk' so it appeard at the beginning of every folder and the shortcut is setup as follows...
Code:
53#\Windows\folderview.exe #?\Windows\shellres.dll,-8208
Copy the above into simple binary text editor and save to have your shortcut.
I guess you wouldn't need the '53#' and '?\Windows\shellres.dll,-8208' bits to link to hardkey. This is more to give the shortcut a nicer icon in the folder view.
Been looking for this. google search "launch programs folder" found this thread. Ought just be a 'icon view' option in file explorer dontcha think? Thanks!
Hmmm... it's not doing quite what I'm after...
As the FolderView is an application, when you click the X in the top right corner, it closes the window. If you were in the 'Start' => 'Programs' folder and were in a sub folder, pressing the OK button would simply return you to the previous folder.
I counter acted this by adding a shortcut to the FolderView app in every folder as mentioned above but for some reason this no longer works correctly. I think it has something to do with the HTC Task Manager I have upgraded to (v 2.0.30995). Works better than previous version but for this one thing, I think it's stopping multiple instances of the FolderView app.
So, this brings me to... How can you load the Programs Folder so you can go back from a sub folder?
Can anyone hack the FolderView app? A simple 'Up' button could be added to the lower left of the window, similar to the view of File Explorer. This way, the X can still be used to close the FolderView App and the 'Up' button takes you back up the Programs list.
In case your wondering, I have various apps loaded on my Pocket PC and have categorised them and placed into sub folders. I've then created an icon association to each folder so it looks a little more pleasent when viewing. However, I want to freely browse the folder. See attached Tumbnail...
the link works on sprint touch. I call it "_Up" so it always appears at first position.
I note that folderview when you close it doesn't appear in task menu like file explorer and most other app.
folderview with some options would be great because it's a fast finger friendly interface ... must faster and easier to configure than various cubes.
ps
I came across this in another thread. I haven't tried it yet but I'm gonna take a look when I get a chance.
Possibly it could be used to add some features to folderview:
http://www.angusj.com/resourcehacker/
I'm glad I stumbled across this thread because I think it's exactly what I want to do...I just need a little help as I'm not as savvy as some of you guys might be.
What I'm wanting to do is create sub directories in my programs folder like viglante_xix does (grouping Office, GPS Programs, Media Programs, etc.) and point to it as a shortcut in rlToday. I think I might have been able to figure this out on my own after tinkering, but I don't have the folderview.exe in my windows dir. Can someone send me a copy or know of an alternative?
Also, I'm not completely ignorant to programming; I know a little VB, Java, and C++. I understand how the code above works, but what program do I use to make this shortcut...preferably something free.
Thanks in advance.

HELP. How to: control panel entry?

hi there.. i've searched for long (google and here) and still haven't got any answer..
i was wondering how can i put or create my own control panel entry or how to move control panel applets say from System to Personal..
is it possible to place shortcuts to EXE files in the Control Panel/Settings applet?
i would like to place all configuration applications (S2u2 settings, FtouchFLO Config, Battery Status Config, etc) in the Control Panel, since these are all settings/configurations, i feel that they should be within the control panel in one place and not scattered among other programs.
also, i would like to move the SRS WOW and MEMORY applets to the personal tab, because i always use them.. it saves me more clicks..
thanks in advance and i hope someone can help me..
any files with exe etension wont appear in control panel only cpl extensions will appear
scousemartin said:
any files with exe etension wont appear in control panel only cpl extensions will appear
Click to expand...
Click to collapse
aah.. ok.. thanks.. then how can i link cpl extensions to exes? because some (default) control panel entries (ctpnl.cpl) are actually linked to exes like Power, Backlight, Beam, Clock, etc (which are all in \Windows directory)..
is there a way to do the same?
also, how can i move (place into other tabs) some other 3rd party entries in the control panel?
i found in the registry (\HKLM\Control Panel\) that SOME entries can be moved, by changing the 'Group' DWORD vaue in each key(0=personal, 1=system, 2=Conn)..
though some are still missing, such as Clock, Add/Remove Programs, and 3rd party applets (except Wisbar's Theme manager applet)..
where can i find these entries?
also, thanks for the quick reply.. i was afraid that this li'l question will reach the second page without any replies at all..
Go here http://forum.xda-developers.com/showthread.php?t=340974
just copy the location and paste it in your Notepad and save it as .LNK
ather90 said:
Go here http://forum.xda-developers.com/showthread.php?t=340974
just copy the location and paste it in your Notepad and save it as .LNK
Click to expand...
Click to collapse
no, i don't want a shortcut of control panel entries anywhere.. i want shortcuts of PROGRAMS in my CONTROL PANEL..
you got it the other way around sir..
Hi kabayan! just to clarify:
He wants to learn how to make a .cpl file that opens up an .exe file.
I would personally like to know how that's done myself. Maybe I'll try opening a cpl file in Notepad or something..
tried opening a cpl in notepad.. and.. uhhm.. it just shows garbage tetx.. i think it is not unicode or anything readable by notepad..
thanks kabayan.. ehehe.. nice to see someone near home in an international forum..
Put a .lnk file in \Windows\Start menu\settings
_TB_TB_ said:
Put a .lnk file in \Windows\Start menu\settings
Click to expand...
Click to collapse
Hello,
I was also trying to add a new entry in Control Panel and followed your instruction... It worked, I made one shortcut appear in System tab, under Settings. However, I wanted it to appear in Connections tab. Already tried to add the following entries in registry, but it didn't work.
Code:
[HKEY_LOCAL_MACHINE\ControlPanel\APP_NAME]
"Group"=dword:00000002
Any ideas?
Can anyone please help?

How can i create a shortcut to Program & Setting Folders in Start menu

How can i create a shortcut to "Program Folder " & for "Setting Folder" in Start menu .. as example make the right soft key open setting folder and the left one open programs
Bro' use this - WM 5 NewMenu
Programs > Create shortcut to \Windows\Start Menu\Programs
Dr.Mazika said:
How can i create a shortcut to "Program Folder " & for "Setting Folder" in Start menu .. as example make the right soft key open setting folder and the left one open programs
Click to expand...
Click to collapse
You should have two programs in your \Windows folder, one called "htcPrograms.exe" and the other is "htcSettings.exe" These programs open the folder that is implied in their name, so if you create a shortcut to these programs it should work. Thay are down a bit.
T M Z
tmz said:
You should have two programs in your \Windows folder, one called "htcPrograms.exe" and the other is "htcSettings.exe" These programs open the folder that is implied in their name, so if you create a shortcut to these programs it should work. Thay are down a bit.
T M Z
Click to expand...
Click to collapse
No htcSettings.exe Or htcPrograms.exe
Any Help
Without that htcsettings file I don't think anything will work. And I also don't have that file. I just know that I've tried making a shortcut to the "settings folder" before and no one seemed to know how. The problem is its not actually a "folder". It's something else. You can make shortcuts to the individual .cpls but not the whole "folder"... The programs folder is actually a folder so you can just make a shortcut to that but the settings is a whole other ball game. If you figure it that that'll be great!
Do you have the file \Windows\folderview.exe? If so, this works on my Touch XL to shortcut to the programs listing - icon list, just as if you press programs in the start menu.
Hey guys, these two shortcuts exist. Go to windows, it's not in a folder, but down below the folders. Use your sidebar and scroll it half way down. Start looking for those two. Their about 3 to 4 files apart from each other. Roughly in alphabetical order. After you find them hold down on them with your stylus and copy them to whereever your like to create a shortcut for them. i copy them both to my documents and had no problem creating shortcuts to both of them. Hop that helps. I tried posting a picture. I just can't get it to copy in this bo
This is it.
not exist in my windows folder
Dr.Mazika said:
not exist in my windows folder
Click to expand...
Click to collapse
what WM are you running?
am i missing something here, or can't tmz just post those two files from his/her windows folder? it'd be much faster than going through asking people what ROM they're running, etc.
tmz said:
This is it.
Click to expand...
Click to collapse
This? T M Z
I'm some what new at this. I don't know what you mean by "post the files." I thought the picture showing the files in windows is what you were looking for.
try these apps. copy them to any folder and create a shortcut. works perfectly
here are the two programs
just install them where you want
woops, someone already posted files!
asefsef said:
woops, someone already posted files!
Click to expand...
Click to collapse
This is the one.
The setting icons have a quite large text, but it is ok.
Folderwiev for programs looks perfect on duttys rom 3.x
Number of icons per row
Thanks - great applications.
In my regular settings, I have changed registry settings so that I get 4 icons per row (Horizontal icon spacing, vertical icon spacing). How do I do that for these programs? Is there a parameter I can pass to them? Or can your program read those values from the registry and adapt the display accordingly?
Hi, Guys, if you don't want to add any additional apps to your phone, here's the pure-shortcuts way:
Please check these two threads for more info:
In this thread ([Guide] How to create .LNK files and use parameters) you'll know how to make a full set of shorcuts for all control-panel settings items, and a ready-made set already there.
In this thread (Control Panel links and icons wm2003se and higher) you can also know how to associate those shortcuts with system icons.
Hence, for 'settings', just creat a new folder in \windows\start menu\programs\ named 'settings' and put inside all the control panel shortcuts.
Edit: The advantage of this wayis: You can map any single item of settings into the softkeys or a hardware button. So shortcuts become shortcut to your target within one touch.
For 'programs', just create a shortcut for the folder \windows\start menu\programs\ inside the folder itself.
Thank you egoist6 for Files
You saved me from HardReset
My problem was crushed manila and no settings shortcut in ROM, there is no htcsettings.exe , no settings.exe , no cplmain.cpl
thank you

Adding Programms to "TF3D-Programs-Tag"

Hello,
i think it's just a simple problem, but i couldn't solve it till now lol.
On the one hand there's the program-path on windows, and on the other hand there's another on tf3d, which u can reach by the tf3d icons (2 pics to show at attachments).
I just wanna know how to add programs to the way with tf3d. Or isn't that possible?
Just click on the empty gray icon with a plus in it. Then you get the "add program" dialogue.
well ye, i'm sorry, my bad english in this thread is leading for missunderstandings.
U r right ofc, but that's not my problem. I meant how to add programs which r not in the list!
So for example: i installed mobile navigator and i wanna have the program in that path. There're just about 10 programs in the list and no button like 'add more programs'.
4varic3 said:
well ye, i'm sorry, my bad english in this thread is leading for missunderstandings.
U r right ofc, but that's not my problem. I meant how to add programs which r not in the list!
So for example: i installed mobile navigator and i wanna have the program in that path. There're just about 10 programs in the list and no button like 'add more programs'.
Click to expand...
Click to collapse
I see.
I think the list of "Add programs" applications comes from the \windows\start menu\programs directory.
So, if you want to add a program to TF3D program Tab you first need to copy a short-cut link to the program into the above directory.
UPDATE: It looks like the TF3D collects all programs in the \windows\start menu directories (not just the "Programs" directory). So, make sure there is a link to the application you want somewhere there.
Then, add using the empty grey icon. Finally, if you wish, delete the link to the file.
thx for ur answer, but it didn't solve the problem. As it seems, it hasn't anything to do with each other. The files in \windows\start menu\programs r just for the start-menu, and the files in \windows\start menu\ i dunno what they r for. Neither putting an app in the first, nor putting it in the second path causes anything.
I had a closer look at the folders in the \windows folder, but didn't found anything which could have to do with touchflo!
The most important thing i noticed:
When i go for the icon on touchflo, first there's the screen which program i wanna start. Now i can tab on the 'plus' which normaly therefor is used to add more programs, such as everyone would expect it. Normally so far! but now: in the next screen (look attached pic #2 from first post) there's no dialoge like 'add more applications' (like i said before). So the only way to fix this problem is about windows. But there's no folder i saw. I think finding the right place for the apps is the only way to fix it.
4varic3 said:
thx for ur answer, but it didn't solve the problem. As it seems, it hasn't anything to do with each other. The files in \windows\start menu\programs r just for the start-menu, and the files in \windows\start menu\ i dunno what they r for. Neither putting an app in the first, nor putting it in the second path causes anything.
I had a closer look at the folders in the \windows folder, but didn't found anything which could have to do with touchflo!
The most important thing i noticed:
When i go for the icon on touchflo, first there's the screen which program i wanna start. Now i can tab on the 'plus' which normaly therefor is used to add more programs, such as everyone would expect it. Normally so far! but now: in the next screen (look attached pic #2 from first post) there's no dialoge like 'add more applications' (like i said before). So the only way to fix this problem is about windows. But there's no folder i saw. I think finding the right place for the apps is the only way to fix it.
Click to expand...
Click to collapse
Hi, sorry it did not work - we need a better expert to understand this than me !
clearly TF3D is getting a list of possible applications from somewhere. I thought this was the \windows\start menu directory.
I don't know where else - maybe the registry, etc ???
well, me neither, else i wouldn't have started this topic.
I wondered founding nothing with the search function. I can't believe that i'm the only one with this question. In my opinion the function of that "Apps-Site" is a luxurious advantage of the phone, also having the fact to reach it that simply by tf3d, and not over the start-menu.
But, i really dunno how to fix it... registry could be a possibility, but i dunno much about it, so i'll keep my hands out of it, at least with self-testing..
Well, maybe another one can help me?
Ok, i concentrated on the registry now, but didn't find anything which could have to do with my problem.
So no1 can help me with this problem?
*push*
Cheesy Dave said:
So, if you want to add a program to TF3D program Tab you first need to copy a short-cut link to the program into the above directory.
Click to expand...
Click to collapse
This is the way it should (and does) work.
Adding a shortcut to the windows\startmenu(\programs) folder will also show the application in the WM program path, so check there to verify if you added an application shortcut or perhaps did something else.
Also make sure you don't have more than 6 programs added to the Windows\Startmenu folder itself as it will not work properly otherwise.
If I understand the problem correctly, you want to add a shortcut of a given program in the All Programs list.
Easily done, here's the procedure :
- make sure you have installed the HouMing File Explore Extension ;
- now open File Explorer ;
- search the file you want to see in the All Programs list ;
- touch and hold the file name until a context menu appears ;
- choose 'Send Shortcut to Prog ...' ;
DONE !
Now you can choose your program and add it to the list.
omfg -.-"
i found the solution...when i tried to hit the 'plus' and reached the "all programs" screen, there have been just a few programs, like on my screen showed. I didn't know, that i can scroll down those programs!!! The whole time i thought, there would be just these 10 programs.
So the only problem was not knowing that i can scroll in that screen through all those programs...
I'm really sorry for my own stupidness!!!
Thanks to every1 for helping me... *head -> wall*
He he, good news.
I understand entirely. I was surprised ages ago by the tap & hold function !!
Georgeous2008 said:
If I understand the problem correctly, you want to add a shortcut of a given program in the All Programs list.
Easily done, here's the procedure :
- make sure you have installed the HouMing File Explore Extension ;
- now open File Explorer ;
- search the file you want to see in the All Programs list ;
- touch and hold the file name until a context menu appears ;
- choose 'Send Shortcut to Prog ...' ;
DONE !
Now you can choose your program and add it to the list.
Click to expand...
Click to collapse
Hey you guys this is off subject but it also involves this thread..
ok, so we only have about 30 shortcuts on our programs tab right? well i added more, so now i have up to 51 shortcuts on my programs tab. i click on the extra ones added and everything goes well until after selecting a primary program to add, it doesnt add.
this is what i did.. maybe i missed a step!
Open Regedit and i went to the following root
*HKLM\Software\HTC\Manila\ProgramLauncher.
i created new folders 31-51 and inside each folder i created the following strings and dword:
String Values Name: Command
String:
String Values Name: DispName
String:
String Values Name: IconPath
String:
String Values Name: Path
String:
DWORD Value Name: IsReadOnly
Data : 0
Then i went to the following root:
*HKLM\Software\HTC\Manila\ProgramLauncher\totalItemCount.
and i changed the DWORD Data to 51.
i Restarted my phone and i stopped there.
Please advice cause this would be pretty badass if we can keep adding to our programs tab.
Solutions found, thread closed

Start Menu Icons - Location

Hi All,
I've added a couple of folders into my HD2's Start Menu and sadly they resemble the old folder icon from 6.1.
Is there a location of the images for the stock folders? I noticed there is an "icon.ink" in the Games folder, pointing to:
"shellres.dll,-8229"
The other folders don't seem to have this shortcut in them, but they have the 6.5 (or Sense?) style icons also.
Does anyone know the location, physically or within the .dll mentioned above for the other folder icons?
I'm using Total Commander, so if that misses the other folders' icon shortcuts, please let me know.
Custom icons of folders and files in Start menu are assigned with string "Icon" in corresponding keys here:
HKLM\Security\Shell\StartInfo\Start
Click to expand...
Click to collapse
So if there is a stock icon in your start menu, you can look its location and copy it for your new folder.
B.Maximenko said:
Icons for folders and files in Start menu are determined by string "Icon" in
So if there is a stock icon in your start menu, you can look its location and copy to your new folder.
Click to expand...
Click to collapse
Excellent, thanks!
Will take a gander and report back.
B.Maximenko said:
Custom icons of folders and files in Start menu are assigned with string "Icon" in corresponding keys here:
So if there is a stock icon in your start menu, you can look its location and copy it for your new folder.
Click to expand...
Click to collapse
Right, Ok.
All Icons changed and a few menus reordered. Thanks for your help!
I forgot to mention that you can also use software to make it easier. I use JWMD (search it here, I can't post a link) to reorder the icons. As for icons, I saved my customization to a .reg file and import it every time I do a hard reset.
By the way it is very comvinient to gather all the preferences into one .reg to easily restore custom settings after HR. I dump entire registry before and after changing some settings and compare the two .regs with my svn client which has a good tool for looking difference between two text files. Offtopic, anyway, but I'm happy with my "idea" and hasten to share it.
Glad my reply helped.

Categories

Resources