Registry Key Toggle (for Command Prompt!) - Touch Pro2, Tilt 2 Windows Mobile General

Hello friends,
I am trying to figure out how to script a specific registry change which I can toggle off and on on my Rhodium without manually running a registry editor. The registry key I want to be able to toggle between 0 and 1 is:
HKEY_LOCAL_MACHINE\Drivers\Console\OutputTo
I have searched heavily, and read about MortScript, but I feel there must be a better way to get this very simple task done.
The reason I want to be able to toggle the above registry key between 0 and 1 is to properly run a Command Prompt (like DOS prompt) on our lovely Rhodium. If you happen to be interested in getting the Command Prompt on your Rhodium see the web site listed below (everything will work as soon as we can toggle the above registry key, without being able to toggle the key the Rhodium's boot process will get clogged by the command prompt window, which is quite a nuisance).
http://dalelane.co.uk/blog/?p=122
If anyone has any ideas I would be very great full. Thank you!

Can't you just cab up two separate registry tweaks and then create shortcuts to them?

Making Cabs from two registry tweaks would be ideal, and I am asking someone for a hint on how to accomplish this.
If anyone has any idea on how to create/write a registry tweak and 'compile' it into a Cab please advise.
Thank you in advance

i could make up a simple EXE to do this will that help?
please PM me more info regardign it

Thank you for the offer, I actually spent more time on it and figured out how to create two .CAB files, one would set the registry to "0" and the other would set the registry to "1", but I was not able to create an .EXE file.
If you have a minute to create an actual .EXE file that would be superb to my solution of two .CAB files.
I am attaching the two .CAB files for the group.

try the attached exe and let me know
just copy to device and run it

I appreciate the attempt, but unfortunately the application you wrote does not produce consistent results in my quick testing. Sometimes pressing Visible changes the registry key and sometimes it doesn't, it seems like pressing the Invisible key has no change upon the registry at all.
If you could revisit the code that would be great.
Thanks

Related

WM6 registry key(s) for Network and Roaming - What are they?

I am a web programmer on the norm and would like to take a stab at creating something for myself on WM.. How would I find out what registry key(s) are modified when I switch my WM6 phone (HTC Touch) from "Network" to "Roaming" modes?
This will assist me greatly as I must manually switch this option on a daily basis... Would like to make it much easier and a 1 click feature.
Any help finding the necessary registry key(s) is greatly appreciated.
Funny you should ask... dcd just provided very good instructions on how to do this in another thread. For your convenience I have copied them below:
(dcd) Let me explain how I accomplish this:
1. Export entire PPC registry (I use resco)
2. Make desired change(s)
3. Export entire PPC registry
4. Compare before and after registry exports on my PC (i use WinMerge)
5. Copy desired registry keys/values to .reg/.rgu
Enjoy! Oh, and if it is something "cool" you are making then share with the community.

a few specific ROM issues

i have been compiling my own ROM using the available tools. it is almost at what i would call perfect, except for a few issues that i am unable to solve. any knowledge and help would be highly appreciated!
1) in the Control Panel, i would like to remove the following items:
encryption
managed programs
usb to pc
2) setting the IE homepage: I have set (by adding to an .rgu file)
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Abouturls]
"home_0409"="http://www.google.com/m/classic"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Abouturls]
"home"="http://www.google.com/m/classic"
but no matter, after i flash, it always goes to "http://mobile.htc.com"
obviously my settings are being overridden elsewhere, but i have searched for hours and have not found where from.
3) i am trying to delete the registry entry:
[HKEY_LOCAL_MACHINE\Comm\InternetSharing]
"Extension"="Rilphone.dll"
i have placed in an .rgu file the following entry:
[HKEY_LOCAL_MACHINE\Comm\InternetSharing]
"Extension"=-
but no matter, the first entry is always present after flashing.
4) i cannot figure out where the Resco Explorer registration info is located so i can have it registered from the start. i have search and found that i am by no means not the only one with this problem, but no one has reported success.
5) i am using the Vista Cube, and somehow the name entries for the "email" and "sms" tiles have been switched. once, again, i have placed correcting entires, but they are apparently being overridden.
other than these issues, i have created my perfect rom! if anyone can help on any of these, please do report. thank in advance.
P.S. I have posted the same here and here.

a few specific ROM issues

i have been compiling my own ROM using the available tools. it is almost at what i would call perfect, except for a few issues that i am unable to solve. any knowledge and help would be highly appreciated!
1) in the Control Panel, i would like to remove the following items:
encryption
managed programs
usb to pc
2) setting the IE homepage: I have set (by adding to an .rgu file)
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Abouturls]
"home_0409"="http://www.google.com/m/classic"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Abouturls]
"home"="http://www.google.com/m/classic"
but no matter, after i flash, it always goes to "http://mobile.htc.com"
obviously my settings are being overridden elsewhere, but i have searched for hours and have not found where from.
3) i am trying to delete the registry entry:
[HKEY_LOCAL_MACHINE\Comm\InternetSharing]
"Extension"="Rilphone.dll"
i have placed in an .rgu file the following entry:
[HKEY_LOCAL_MACHINE\Comm\InternetSharing]
"Extension"=-
but no matter, the first entry is always present after flashing.
4) i cannot figure out where the Resco Explorer registration info is located so i can have it registered from the start. i have search and found that i am by no means not the only one with this problem, but no one has reported success.
5) i am using the Vista Cube, and somehow the name entries for the "email" and "sms" tiles have been switched. once, again, i have placed correcting entires, but they are apparently being overridden.
other than these issues, i have created my perfect rom! if anyone can help on any of these, please do report. thank in advance.
P.S. i have posted the same here and here.

[REQ] Wake On Lan

Hi Guys & Gals,
Quick question.....
Has anybody come across a Wake On Lan app for WM6. I have a small home network that I start up from a central PC using Wake On LAN function in the system BIOS. I would like to be able to start my PC's from the Blackstone over my WLAN.
Everything within the LAN & WLAN is running reserved DHCP from the router side so all IP's are constant including the Blackstone.
Cheers for any replies.........
Gilgamesh.......
I don't know if any solution exists but I've read a tutorial (in french sorry) on how to make a wake on line application for wm
http://blogs.msdn.com/pierreca/archive/2009/03/19/wake-on-lan-depuis-votre-t-l-phone.aspx
Hope that could help you
Try this..
jpl69 cheers.........The app works like a charm but is a little basic. Needs the full MAC to be entered manually each time.
What would be really nice is some way of associating the MAC to a short meaningful name that could then be listed so it could just be selected from a list rather than enter the full MAC each time. In this way multiple PC's coud be listed.
While we're at it would also be nice to have a standby button as well so PC's within the LAN could be started and shut down form the app.
I've never written an app before and would either like a few pointers to see if I could do it or see if anyone out there would consider building on the app already posted.
Any suggestion welcome.......
Besides developing an app to that (no time) i could sugest make several shortcuts using resco and parsing the mac as parameter. At least you only had to make it once.
Thanks jpl69 for your continued replies...much appreciated.
I have seen Resco but not realy sure which component to download to edit the exe. I have used PEG (parsing) in other apps at work but just need something to get me started on WM6. I could the replicate the exe per MAC and create a single file or each PC
Might be worth looking at vxUtil: http://www.cambridgevx.com.
This has Wake-On-LAN (among other things), and I think it remembers previously entered values. You can't give things memorable names but it might help.
Gilgamesh1066 said:
Thanks jpl69 for your continued replies...much appreciated.
I have seen Resco but not realy sure which component to download to edit the exe. I have used PEG (parsing) in other apps at work but just need something to get me started on WM6. I could the replicate the exe per MAC and create a single file or each PC
Click to expand...
Click to collapse
i think he means, like, create new shortcut with parameters. Just for example the same as on pc creating a shortcut to c:\quake\quake.exe and use the string "c:\quake\quake.exe" +bind mouse1 shoot +set mode opengl blablabla
Again thanks for the continued replies.....
Downloaded vxUtil and had a play and it does have a working WOL option but again it's messy and not really the simple solution I was looking for. It does have some other features (ping/sweep, tracert & DNS lookup) but I don't really have a use for these.
Still really after a single icon to start each PC as per the shortcut suggestion above.
All suggestions still welcome and appreciated.
I will just try to clarify what was the idea of jpl69.
Please read the README file included in the attached archive (posted by jpl69).
It says:
"Command Line:
===============
Please use as following:
WakeOnLan.exe [MACAddress]
MacAddress can be either 01E4523AEE22 or 01:E4:52:3A:EE:22 "
Now with Resco Explorer (or with Total Commander, which is freeware) one can make several different shortcuts to WakeOnLan.exe, each ending with the specific MAC.
In Total Commander, after creating the shortcut, one must select it, choose "properties", then "shortcut" tab, then manually add the MAC at the end of the "target" line.
Copy the ready shortcut several times, name the new copies whatever you want and place those shortcuts in a folder. Dont forget to change the MAC for each machine.
Hope it helps.
Now I get it......Sorry for the slow uptake but been a busy boy and head has been fried by other things. Will have a play tomorrow and post back results.
Many thanks..........
I dont know if you still looking to do this but I got this working & figured I would reply here for future reference.
First i have a linksys DD-WRT router, so I followed these steps:
http://www.dd-wrt.com/wiki/index.php/WOL
Then I downloaded the attached cab & its one click & works great!
RichTJ99 said:
I dont know if you still looking to do this but I got this working & figured I would reply here for future reference.
First i have a linksys DD-WRT router, so I followed these steps:
http://www.dd-wrt.com/wiki/index.php/WOL
Then I downloaded the attached cab & its one click & works great!
Click to expand...
Click to collapse
I have been using the WakeOnPocketPC from Depicus happilly with WM 6.1. Now, after upgrade to WM 6.5 (Dutty ROM Leo Holy Grail), the cab fails to install ("...installation was unsuccessful.")
Any other program with capability to send WOL packets to a particular IP address (and not just broadcast over LAN)?
Although this thread is about one year old, before I developed my WoL everywhere program, I searched for programs like mine here and came to this thread... None of the programs I've found fit my requirements, so I made a program myself...
So I hope your search is over and you've found what you need with my little WoL everywhere... you can download it here:
http://forum.xda-developers.com/showthread.php?t=695524
Greetings @ all!
LichtiMC
Create a shortcut to WakeOnLan with a MAC address
Hi,
I'm pasting to this old thread since I found the WakeOnLan tool here and want to share my tips with others.
If you want to create a shortcut so that you have a separate executable (say in your Start Menu) then follow these steps:
Install WakeOnLan from the above link. I put it in "\Program Files\WakeOnLan\WakeOnLan.exe"
Browse to this location with explorer on your PPC. Select the WakeOnLan executable and click "copy"
Browse to where you want the shortcut to appear:
"\Windows\Start Menu" will show in your start menu
"\Windows\Startup" will be run when you reset or power cycle the device
"\Windows\Programs" will apear in your Start Menu > Programs folder
"\Windows\Settings" will appear in your system settings
Select on some empty space (not an existing file) in your chosen folder and choose "Paste shortcut"
Use a text editor on Windows / Linux to edit this new file, or one on your device (I didn't have any that would open on my device so I copied it to Linux, edited in emacs, then copied it back)
Edit the line that looks like:
Code:
40#"\Program Files\WakeOnLan\WakeOnLan.exe"
essentially this is a character count, a "#", the location the shortcut points to, and arguments. Add your MAC address like this and take note of the quotes:
Code:
58#"\Program Files\WakeOnLan\WakeOnLan.exe" AA:BB:CC:DD:EE:FF
count the characters of the shortcut, mac address, and space, then add one. This is your new number (in my case, 58).
An easy way to do this is to use "wc" on Linux:
Code:
echo "\Program Files\WakeOnLan\WakeOnLan.exe AA:BB:CC:DD:EE:FF" | wc -c
57
(remember to add 1!)
Now you can repeat the process and paste as many different WoL shortcuts as you like! I've made just one and called it "WoL MythTv" to wake up my media centre at home. Neat
I'll post my sources in the next post since new users aren't allowed to post links...

[Q] How to deal with Self Registering Dlls while Cooking

While Cooking for LEO, many CABs has a self registering Dlls which runs fine from the cab file but when you try to convert the cab to OEM package, this dll looses it self registering functionality because there wasn't any code grabbed to the OEM package that tells the Kitchen to mark it for self registering.
Is there any solution for such a case?
To Make it clear:
I'm trying to cook "MOBiDIV_PrayerTimes_Diamond2_B15_TSD_Jun1.Cab " but the problem with the included "fileosp.dll" which requires self registration that is been automatic done while installing the .CAB
So, is there any kind of solution to do it while COOKING the ROM?
Use kheb to grab all the registry keys that are installed during the cab install/reset process. Then put them in your package. Or just search for the keys. We're talking the HKCR\clsid keys, aren't we? They're usually easy enough to find, if you dump and search your registry.
Farmer Ted said:
Use kheb to grab all the registry keys that are installed during the cab install/reset process. Then put them in your package. Or just search for the keys. We're talking the HKCR\clsid keys, aren't we? They're usually easy enough to find, if you dump and search your registry.
Click to expand...
Click to collapse
Thanks for your idea.
I did already and got all clsid and inject them in the package but still the same.
It seems emulator is behaving differently than actual device, what you think?
InCities.cdb
After ROM Booting, i re-install the Original Application, it works.
This is normal because the original application is doing something with InCities.cdb file.
I knew that my registry entries is correct because:
1- I checked everything in registry before and after my modification.
2- I checked everything before and after Original Program Change.
changes are identical
BUT
BUT
WHEN I PLAYED WITH (CHANGED) THE REGISTRY ENTRIES:
FROM
[HKEY_LOCAL_MACHINE\Software\Apps\Shared]
"\\Windows\\InCities.cdb"=dword:00000001
TO
[HKEY_LOCAL_MACHINE\Software\Apps\Shared]
"\\Windows\\InCities111111111.cdb"=dword:00000001
then copied another file as the same name
then tried to change it back to original, THE APPLICATION FAILED.......................................
So, Here is the trick but i don't know how to fix.

Categories

Resources