Boost the Brightness of Your Sony Xperia Z1’s LED

I think the last time anyone has ever used a physical torch to find their earphones, … more

XDA Xposed Tuesday: Modify the Look of Your Volume Control – XDA TV

How many screenshots have you seen with a volume status bar in the … more

Prepare Your Nokia X2 for Battle with Nokia X2 Tools

Unveiled in June this year, the Nokia X2 is the Finnish companys second crack at an … more

Increase the Speaker Volume of Your Samsung Gear 2 with Tool and Tutorial

I think its pretty safe to say that any sound coming out of a … more
Post Reply

[APP] Control Panel Settings to Links (.lnk)

14th September 2010, 07:06 PM   |  #1  
OP Senior Member
UK
Thanks Meter: 130
 
210 posts
Join Date:Joined: Apr 2006
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.
Attached Thumbnails
Click image for larger version

Name:	Captures01.gif
Views:	887
Size:	31.5 KB
ID:	401074   Click image for larger version

Name:	Captures02.gif
Views:	871
Size:	32.3 KB
ID:	401075   Click image for larger version

Name:	Captures03.gif
Views:	866
Size:	34.8 KB
ID:	401076  
Attached Files
File Type: cab CplLinks.CAB - [Click for QR Code] (13.4 KB, 1035 views)
The Following User Says Thank You to dubidu For This Useful Post: [ View ]
17th September 2010, 10:00 AM   |  #2  
Senax's Avatar
Senior Member
Flag Arnhem
Thanks Meter: 41
 
373 posts
Join Date:Joined: Aug 2009
More
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.
Last edited by Senax; 17th September 2010 at 10:08 AM. Reason: Because editing is fun
17th September 2010, 10:14 AM   |  #3  
orb3000's Avatar
XDA Portal Team / Senior Moderator
Flag T r a v e l i n g Likes: HTC & XDA Dislikes: apples...
Thanks Meter: 3,037
 
22,285 posts
Join Date:Joined: Feb 2007
Donate to Me
Thanks for sharing!
17th September 2010, 12:31 PM   |  #4  
OP Senior Member
UK
Thanks Meter: 130
 
210 posts
Join Date:Joined: Apr 2006
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)
17th September 2010, 08:54 PM   |  #5  
mccune's Avatar
Senior Member
Thanks Meter: 51
 
2,677 posts
Join Date:Joined: Nov 2005
Donate to Me
More
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.
18th September 2010, 06:26 AM   |  #6  
NRGZ28's Avatar
Retired Senior Mod & Senior RD - (old) King of WinMo
Flag XDA-Developers
Thanks Meter: 10,010
 
10,452 posts
Join Date:Joined: Apr 2007
More
Very nice. It does seems to create a bunch of redundant or non-used links though
18th September 2010, 09:33 AM   |  #7  
OP Senior Member
UK
Thanks Meter: 130
 
210 posts
Join Date:Joined: Apr 2006
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)
18th September 2010, 01:27 PM   |  #8  
RoryB's Avatar
Recognized Developer
Flag Lexington
Thanks Meter: 683
 
2,777 posts
Join Date:Joined: Sep 2008
Donate to Me
More
Quote:
Originally Posted by dubidu

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)

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.
Last edited by RoryB; 18th September 2010 at 01:31 PM.
7th October 2010, 10:51 AM   |  #9  
OP Senior Member
UK
Thanks Meter: 130
 
210 posts
Join Date:Joined: Apr 2006
Cool
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

Post Reply Subscribe to Thread

Tags
control panel settings, cpl links
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes