Deleted 40C5 From Registry - JAMin, XDA Neo, S200 General

Please help me! I deleted 40C5 from Registry ( under ...SOFTWARE\Microsoft\ShellKeys ) and now clicking on start->settings->buttons I can't see anything ( the list of buttons is empty! )

This is the original code from a german device:
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys\40C5]
"Flags"=dword:00000000
"ResetCmd"="\"\\Windows\\AppButtons\\Aufnahme.lnk\" -b"
"Icon"="\\windows\\HotVoice.exe, 0"
"Name"="Taste 4(Lang)"
@="\"\\Windows\\AppButtons\\Aufnahme.lnk\" -b"
For english devices you have to change both shortcuts (Aufnahme.lnk) and the name.

Related

start/settigns/buttons... help

hi i uploaded a pic of my xda2..
there should be 4 buttons to choose from.. but now 1 left and the othr three are gone. how can i get it back?? help asap! tnx!!!
Registry
Below is the registry entries for Xda II.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys\40C1]
"WndCls"="Calendar"
"BtnWnd"=dword:002C76C0
@="\"\\Windows\\AppButtons\\Calendar.lnk\""
"Flags"=dword:00000000
"Name"="Button 1"
"Icon"="\\windows\\outres.dll, -10002"
"ResetCmd"="\"\\Windows\\AppButtons\\Calendar.lnk\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys\40C2]
"WndCls"="Contacts"
"BtnWnd"=dword:00334670
@="\"\\Windows\\AppButtons\\Contacts.lnk\""
"Flags"=dword:00000000
"Name"="Button 2"
"Icon"="\\windows\\outres.dll, -10000"
"ResetCmd"="\"\\Windows\\AppButtons\\Contacts.lnk\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys\40C3]
@="\"\\windows\\AppButtons\\Camera.lnk\""
"Flags"=dword:00000000
"ResetCmd"="\\windows\\AppButtons\\Camera.lnk"
"ResetFlags"=dword:00000001
"BtnWnd"=dword:00000000
"WndCls"=""
"Name"="Button 3"
"Icon"="\\windows\\CameraIcon.exe, 0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys\40C4]
@="\"\\Windows\\AppButtons\\Record.lnk\" -b"
"Flags"=dword:00000000
"Name"="Button 4"
"Icon"="\\windows\\hotvoice.exe, 0"
"ResetCmd"="\"\\Windows\\AppButtons\\Record.lnk\" -b"
Import the *.reg or run the *.cab file attached.
start button still missing
hi the .cab files wont run..
my xda2 version is 2.66... radio 1.18
.reg wont work too..
the .reg and .cab wont work.. i reg it but still only button 1 available..
other launcher
hi !
perhaps you could try alternative launcher such as double launcher / mortbutton / vito button mapper ... or else. I donno if they see only 1st button just like built-in button mapper or not.

Where is HKEY?

I'm using Total Comander to edit my registry and I'm in the ///registry folder and only see:
HKCR
HKCU
HKLM
Where is the HKEY group of entries?
THE HK is HKEY
HKCR is HKEY Classes Root
HKCU is HKEY Current User
HKLM is HKEY Local Machine
same as in Windows on a PC..
*kicks self*
Ha! Thanks bud.
One more ting if anyone has a sec:
I am trying to change the keyboard mapping to Chinese (I have a Taiwanese phone with an Engish ROM) and I found a thread that says for Japanese do this:
Do the Japanese Keyboard Hack
The key thing to remember is that even though your Hermes speaks English, the keyboard uses a Japanese layout. The code for Japanese is 0x0411
[HKEY_CURRENT_USER\ControlPanel\Keybd] "Locale"= 0411 (Hex, not String)
[HKEY_LOCAL_MACHINE\Software\Oem\Qwerty] "Layout"= 20411 (Hex)
[HKEY_CURRENT_USER\keyboard layout\Preload] "Default"= e0010411 (Hex)
[HKEY_CURRENT_USER\keyboard layout\Preload\1] "Default"= e0010411 (Hex)
But to make it Chinese do this:
Japanese is 0x0411 but you need to use 0x0404 for Chinese.
I don't see any of these entries in my registry so I'm assuming I need to add them. I go to the place where the reg entries are and double click on "+Add Value+" it then asks me to name it, so for example I name it "Locale" but then it asks me for a Type (string, DWORD, Binary, Multi-string, expandable string). Am I doing this right? And if so what type should I choose?
Thanks in advance.
What is it in Dutch????
No, origianlly in Chinese now in English. I just changed my keyboard layout for special characters to English as well. THis member http://forum.xda-developers.com/member.php?u=337823 had thw solution for me.
Marlz said:
. . .
[HKEY_CURRENT_USER\ControlPanel\Keybd] "Locale"= 0411 (Hex, not String)
[HKEY_LOCAL_MACHINE\Software\Oem\Qwerty] "Layout"= 20411 (Hex)
[HKEY_CURRENT_USER\keyboard layout\Preload] "Default"= e0010411 (Hex)
[HKEY_CURRENT_USER\keyboard layout\Preload\1] "Default"= e0010411 (Hex)
. . .
Click to expand...
Click to collapse
Yes, you're doing the right thing. The type for all four above values should be DWORD, and enter the values as hexadecimal as indicated.

Registry format conversor: xml to reg

I've written a small tool in perl to ease these kind of conversions between the two registry file formats (the old one (.reg) and the new one using a weird and ugly xml format (.xml)).
This is an example session:
$ cat reg-file.xml | perl xml2reg.pl > reg-file.reg
To run this script you'll need to install XML::Registry and XML:arser (depends on).
I don't know if it's useful to have a reg2xml conversor or just implement a '-i' flag on it to inverse the procedure. Maybe cool for registry diffing and parsing?
UPDATE
This is the version 0.3. I've implemented the -i flag and a bit of help with -h and applied some contrib patches. This release fixes the dec/hex bug.
$ perl xml2reg.pl -h
Usage:
xml to reg: $ cat my-reg.xml | perl xml2reg.pl > my-reg.reg
reg to xml: $ cat my-reg.reg | perl xml2reg.pl -i > my-reg.xml
Click to expand...
Click to collapse
Have phun
Thanks pancake
Works like a charm here!
Nice work man!
Pretty helpful
THX! I need this tool!
Can this pl script be used under WinXP?
I've tried it like this, but there's some wrong:
Code:
D:\temp>type 100.xml|xml2reg.pl>100.reg
no element found at line 1, column 0, byte -1 at D:/Perl/lib/XML/Parser.pm line
187
D:\temp>
Errr, it's my fault
It works perfectly!
Usage:
Code:
D:\temp>type 110.xml|perl xml2reg.pl>110.reg
Wide character in print at xml2reg.pl line 60, <STDIN> line 13.
Wide character in print at xml2reg.pl line 60, <STDIN> line 13.
Wide character in print at xml2reg.pl line 60, <STDIN> line 13.
the Wide character convert success too!
But another problem, I cant apply the '-i' flag
xml2reg v0.2 implements '-i' flag
liay said:
(...)
But another problem, I cant apply the '-i' flag
Click to expand...
Click to collapse
The -i flag was not yet implemented. I've done't and here there's the new version 0.2 with -i and -h
$ cat foo.reg | perl xml2reg -i > foo.xml
Click to expand...
Click to collapse
Great work!Tanks again!
I've writen 2 BAT cmd which can be used under winxp's command prompt.
And the perl script has modified to fix some bug, now it can convert HKCR & HKCU
thanks! i was looking for this tool for ages! you are da man
im sure is is something silly but all im getting is blank files when converting,obviously im doing something wrong...any help would be appreciated.thanks
YES! ... very useful for all this mxip_*_*.provxml inside the new roms. Thanks
faria said:
thanks! i was looking for this tool for ages! you are da man
im sure is is something silly but all im getting is blank files when converting,obviously im doing something wrong...any help would be appreciated.thanks
Click to expand...
Click to collapse
What are you exactly doing?
pancake/nop said:
What are you exactly doing?
Click to expand...
Click to collapse
im trying to convert xmls to reg.....using the bat files above...is there any other apps that are required in the pc?
in your first post you said that we need; XML::Registry and XML:arser.
can you be more specific please?
faria said:
im trying to convert xmls to reg.....using the bat files above...is there any other apps that are required in the pc?
in your first post you said that we need; XML::Registry and XML:arser.
can you be more specific please?
Click to expand...
Click to collapse
Both are perl modules, if you have ActivePerl installed there's a tool called PPM which allows you to connect to Perl modules repositories a install anyone you need.
I did:
>ppm.bat
>search registry
... showed results....
>install XML-Registry
...wait.....
...done!....
I already had XML:arser installed so no need to get it again.
Hope this helps!
WARNIGN:
I believe this app has a major bug, it doesn't convert hex to decimal:
Code:
"MainCamSupportCaptSize"=dword:2d4
gets converted to
Code:
<parm name="MainCamSupportCaptSize" datatype="integer" value="2d4" />
Now I am not an expert but from my research integer has to be specified in decimal notation, not hexadecimal.
So the converted output should be:
Code:
<parm name="MainCamSupportCaptSize" datatype="integer" value="724" />
Could someone verfiy this. If my analysis is correct anyone who used this tool should check their output. Obviously this affects the other direction as well: an integer from a XML file would be interpreted as hex and a much higher value would be written to registry.
ZakMcRofl said:
WARNING:
I believe this app has a major bug, it doesn't convert hex to decimal:
Click to expand...
Click to collapse
Try again, hope to be fixed with 'eval "0x".$2'. I have no xml-reg files to test't now, but it should be ok
Thanks for the tip.
Thanks for the very quick fix!
But you forgot the brackets at eval in line 32, I added them and now it works.
See attachment.
Thanks for your tool.
BTW: why does it write translation="filesystem" at every string? Haven't come accross this yet in my provxml files.
oops
Thanks for the PR. applied.
Default entries
Hi,
I just try r2x to convert an rgu file to xml, and it misses the default entries of keys. Eg. the rgu file has an entry as follows:
Code:
[HKEY_CLASSES_ROOT\.tiff]
@="tiffile"
and it has been converted to
Code:
<characteristic type="HKCR\.tiff" translation="filesystem" >
</characteristic>
but it should be
Code:
<characteristic type="HKCR\.tiff" translation="filesystem" >
<parm name="Default" value="tiffile" datatype="string" />
</characteristic>
Here is a workaround...
Code:
if ( defined($ARGV[0]) && $ARGV[0] eq "-i" ) {
my $level = 0;
while(<STDIN>) {
my $str=$_;
[COLOR="Red"]$str=~s/^@/\"@\"/;[/COLOR]
if ($str=~/^\"/) {
if ($str=~/"=dword:/) {
$str=~/"(.*)"=dword:(.*)/;
print "\t\t\t<parm name=\"$1\" datatype=\"integer\" value=\"".eval("0x$2")."\" />\n";
} else {
$str=~/"(.*)"="(.*)"/;
next unless defined $1;
my $value = defined($2)?$2:"";
my $key = $1;
$key="Default" if ($key eq "@");
Great code !
May I know what is the purpose of parameter ($dump = new XML::Registry) ?
I dont see any usage of this parameter throughout the source code .
liay said:
Errr, it's my fault
It works perfectly!
Usage:
Code:
D:\temp>type 110.xml|perl xml2reg.pl>110.reg
Wide character in print at xml2reg.pl line 60, <STDIN> line 13.
Wide character in print at xml2reg.pl line 60, <STDIN> line 13.
Wide character in print at xml2reg.pl line 60, <STDIN> line 13.
the Wide character convert success too!
But another problem, I cant apply the '-i' flag
Click to expand...
Click to collapse
Sorry, I have the same problem and I cannot understand the solution (I'm not a perl user) can you explain it a little better?
Thanks in advance

[Dev][WM6S]Change items in Settings.exe

Is it possible to change/remove and item in the settings list on a Windows Mobile 6 Standart phone?
I want to prevent users to run clear.exe.
Thanks
I'm not sure if this what you mean but you can add or remove items by messing with the cpl's. You'll be able to do this in the registry, 12
I just want to prevent users to reset device to factory defaults.
They are able to run clear.exe from settings .
I couldnt find anything related in registery.
All control panel (settings) items are governed by this registry group: HKLM\ControlPanel You can add/delete items by playing around with these registry entries. Total Commander will be a good tool. Just remember to make a good backup before playing around with registry. And some changes will effect only after a soft reset.
Tips: Group=0 will show up in 'Personal' tab, 1=System tab, 2=Connections tab
These registry may vary from different OS build. The following is a sample from a WM6.1 custom ROM with OS Build 21040:
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\ControlPanel]
"GPRSCompressDefault"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\1]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\10]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\2]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\25]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\28]
"Description"="HTC GPS Tool"
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\3]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\4]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\42]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\5]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\6]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\7]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\Backlight]
"DimBKLinUnlockScreen"=dword:00000000
"Redirect"="Backlight.exe"
[HKEY_LOCAL_MACHINE\ControlPanel\Beam]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\Bluetooth]
"Group"=dword:00000002
"PinEntries"=hex(7):\
30,00,30,00,30,00,30,00,00,00,38,00,38,00,38,00,38,00,00,00,00,00
[HKEY_LOCAL_MACHINE\ControlPanel\Buttons]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\Certificates]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\Comm]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\Connection Setup]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\Connections]
"GoToTab"=dword:00000001
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\Contrast]
"Redirect"=""
[HKEY_LOCAL_MACHINE\ControlPanel\Customer Feedback]
"Hide"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\Desktop]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\Dial]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\Domain Enrollment]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\Error Reporting]
"Hide"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\FixedDialing]
"DisableMenu"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\Input]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\Menus]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\MobileVPN]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl]
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\1]
"CmdLine"=""
"Description"="Advanced Network"
"File"="AdvancedNetwork.exe"
"Name"="Advanced Network"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\10]
"CmdLine"=""
"Description"="Sliding Sound"
"File"="SlidingSound.exe"
"Name"="Sliding Sound"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\2]
"CmdLine"=""
"Description"="Clear Storage"
"File"="ClearStorage.exe"
"Name"="Clear Storage"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\25]
"CmdLine"=""
"Description"="TouchFLO Settings"
"File"="TFSettings.exe"
"Name"="TouchFLO"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\28]
"Description"="HTC GPS Tool"
"File"="HTCGPSTool.exe"
"Name"="HTC GPS Tool"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\3]
"CmdLine"=""
"Description"="Device Information"
"File"="DeviceInfo.exe"
"Name"="Device Information"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\4]
"CmdLine"=""
"Description"="Power"
"File"="Powerexe.exe"
"Name"="Power"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\42]
"CmdLine"=""
"Description"="GfxBoost"
"File"="GfxBoost.exe"
"Name"="GfxBoost"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\5]
"CmdLine"=""
"Description"="Microphone AGC"
"File"="MicrophoneAGC.exe"
"Name"="Microphone AGC"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\6]
"CmdLine"=""
"Description"="USB to PC"
"File"="USBtoPC.exe"
"Name"="USB to PC"
[HKEY_LOCAL_MACHINE\ControlPanel\MyCpl\7]
"CmdLine"=""
"Description"="Wi-Fi"
"File"="WiFiSettings.exe"
"Name"="Wi-Fi"
[HKEY_LOCAL_MACHINE\ControlPanel\Network]
"Group"=dword:00000002
"Hide"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\Owner]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\Password]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\PC Connection]
"Group"=dword:00000002
"Redirect"=""
[HKEY_LOCAL_MACHINE\ControlPanel\PCConnection]
"Group"=dword:00000002
"Redirect"=""
[HKEY_LOCAL_MACHINE\ControlPanel\Phone]
"AllLang"=dword:00000001
"Flags2"=dword:00000010
"Group"=dword:00000000
"RESDLL"="tapres.dll"
[HKEY_LOCAL_MACHINE\ControlPanel\Power]
"FullState"=dword:0000004c
"Group"=dword:00000001
"HighState"=dword:00000033
"LowState"=dword:0000000b
"MedState"=dword:00000015
"Redirect"="powerexe.exe"
[HKEY_LOCAL_MACHINE\ControlPanel\SlidingSound]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\Stylus]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\System]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\Task Manager]
"Group"=dword:00000001
[HKEY_LOCAL_MACHINE\ControlPanel\TaskMgr]
"Redirect"=""
[HKEY_LOCAL_MACHINE\ControlPanel\Today]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\Voice Command]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\Volume]
"Group"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\WiFi]
"Timeout"=dword:00000000
[HKEY_LOCAL_MACHINE\ControlPanel\Wireless LAN]
"Group"=dword:00000002
[HKEY_LOCAL_MACHINE\ControlPanel\WrlsMgr]
"Group"=dword:00000002
"Redirect"="\\Windows\\CommManager.exe"
I try these on HTC SNAP with Russian ROM, but without success :=( I saw new items in settings of [ROM][MAPL][WWE][* 3VOLUTION SERIES *][WM6.5.X STD 23137][Build 3VO.3.50.122710] http://forum.xda-developers.com/showthread.php?t=551642, but only one item saw in these registry entries...
Device Info
How can i use this to get device info back ? (got .exe already)

Assign a Software to HD2 Hardware Keys

Hey guys this is my first post
I think so long for use HD2 hardkeys and find a way that explain with XDA user "rezaulkabir" And I test that and make a little change to assign voice Speed dialer to send key (Green Button) So do following :
Go to registry: you can ues resco explorer or other soft
HKLM\Software\Microsoft\Shell\
Create a new Key and named that "Keys"
Inside "Keys" create another Key named that "40C6"
Inside "40C6" create following Registry values:
1. String Value : Name= Name , value= Send key(Hold)
2. String Value : Name= Icon , value= \windows\SendKeyIcon.exe, 0
3. DWORD Value : Name= Flags , value= 0
4. String Value : Name= default , value=\windows\sddialer.exe (Or other exe files)
Now restart.
for other software you can find EXE file in windows folder and in 4 step write that.
test it and tel me how it work.

Categories

Resources