Registry Key Toggle (for Command Prompt!) - General Topics

Hello friends,
I am trying to figure out how to script a specific registry change which I can toggle off and on on Windows Mobile 6 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 Windows Mobile 5/6. If you happen to be interested in getting the Command Prompt on your Windows Mobile 5/6 device 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 Windows Mobile 5/6 boot process will get clogged by the command prompt window, forcing the user to manually close several open instances of the command prompt before going back to the Today Screen, 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!

I would say that Mortscript is the easiest way you could automate a registry edit. Dotfred's Advanced Task Manager has some shortcut parameters that can reference a given .reg file and edit the registry based off of that, but Mortscript is probably easier. And in the future, don't create duplicate threads, it's against XDA's rules.

Thank you for your response. I will look into Dotfred's Advanced Task Manager as you have stated.
Other comments or ideas are appreciated as well. Thank you.

Related

Batch files in CE?

Hello,
Is it possible to write batch files in CE? I would like to create a script to start a sequence of executables. For instance, start bluetooth, checkpoint and then TOMTOM.
Thanks,
Marco
Yes that interests me too
Yes,there was a .cab in Sin-merged Rom 2003se for Himalayas about Dos.
Try check out the post.
PS: Don't use pocket dos.
I find this
MortRunner
"With MortRunner, you can start, close, activate, and hide programs, and even remote control them to a certain degree.
It's more an hacker tool without a nifty interface, which can execute some kind of batch files..."
Here you can d/l the latest beta. There's not much new there, but it might be useful for some...
- Includes a tool to support WM's autorun on storage card insert/remove
- Rotate command
- .mortrun extension only registered when started without parameters (to avoid it's changed to the autorun folder)
(Don't worry about the German forum, the zip includes an English manual)
Mort > Thanks for your work
Is there a way to create a ".mortrun" file to mute/unmute the system sound ?
I'd like to do this to be able to use a shortcut to this file and so voice command mute/unmute via Microsoft Voice Command.
See this thread
DocteurN said:
Is there a way to create a ".mortrun" file to mute/unmute the system sound ?
Click to expand...
Click to collapse
No.

View WM5 Registry on my PC

I have made a backup of my HTC Wizard registry and I would like to view and print it out from my PC. Does anyone know of an application that would allow me to do that?
Use S-K Tools SSnap Utility.
Just copy it to your PPC and run it. Unselect all the non registry stuff and let it roll.
It will put a .snp (just a plain text file) file in the root of your device. Take that over to the PC and open it in your favorite text editor.
Or, you can jump over to PPC6700Users and grab either the Sprint or Verizon Virgin Registry from the appropriate sticky.
reddog: just open it in Notepad.
To view a live registry, use the remote tools that come with EVC or Visual Studio 2005. But for viewing an exported registry, just notepad. Don't double click on it or you'll have a very weird PC :shock:.
V
Thanks for the info folks I will try that.
You can use Registry Workshop. This small tool will let you edit your PPC registry from your PC.
More info: http://www.torchsoft.com/

TO DO TASK EDIT

Hello. I have a Qtek 8300 (SP5m), and have found that there is no way to edit the information in the tasks application (I mean, the TO DO list). Is it possible? I can only enter the text for a new task, but can't edit the due date, and the other task information. Am I correct ? Should I use an external program to handle all the task information?
Also: is there some way to reassign the three Windows Media buttons to execute a different program?
Thank you.

More precise volume control app?

At the moment i can only use the standard windows mobile 5 step volume control, and this is VERY annoying.
Like in windows media player you can change the volume from 0 to 100 with steps off 1% at the time..
Is there such app that does this for the sytem/ring volume?
Because when i'm now listening to music and it's not loud enough, i can't put it louder, because it's going REALLY loud then.. because i have only 5 steps
Using the WinMedia vol control in other applications
If you are willing to do a reg edit
here is a copy of someone else's post I saved
wish I could give "Pete S" more credit
________________________________
Using a registry editor (I use Total Commander), navigate to
HKLM\Software\HTC\VolumeOverlay\3rdPartyAPClass and you will see a list of apps which use the slimvolume control. You have to add keys (new folders in Total Commander) for all the apps you want to add.
Under these keys you have to create a String value containing the Window Classname of the app. You can get these names using a program like FdcSoft Task Manager v3.1.
I've listed a few of the common ones below to save you the time.
Create a Key: "Nitrogen" Create a String Value called “ClassName” with value "CNtgWndMain"
Create a key: "CorePlayer" Create a string value called "ClassName" with value "wCorePlayer"
Create a key: "Opera" Create a string value called "ClassName" with value
"Opera_MainWndClass"
And so on. Take care to get caps and lower case correct, and don't include ""s. If you get the window class names wrong, don't worry, it just won't work till you get it right.
The settings take effect immediately, no need to restart.
PS: If you're not confident editing the registry, best not to do it. If you do, take great care, don't accidentally delete any keys!
-------------------------------------------------------------------------------- Last edited
by Pete_S; 28th October 2009 at 07:14 AM..
________________________________________
Or if you use TD2 tools (available here on xda)
It will automate the entire regediting process and allow you to add
the 15 position vol control to other APs just by
"opening them and inserting the stylus"
Very simple to do and TD2 Tools has many other useful and powerful features
Hope that helps you or gives you some pointers to get started
in a nut shell
Yes! you can do exactly what you ask and its pretty simple
with either a reg-edit or automated with another free program
(look for Gaz TD2 Tools for WM 6.5 (Release 2c).cab)
KJL
BTW I've reported a bug with the slim sidebar control in the Tess 4.2
ROM so if your using it you might need to wait for a software fix
to use the above
workaround!!
Use advanced configuration tool
goto HTC audio manager
set music player volume to 50%
Now the music isn't too loud and the steps are smaller !!
greatings Nico
I well understand that TD2 tools is only for W6.5, but is your manual procedure to create et reg key OK with W6.1 ? I don't find the 3rdPartyAPClass in HKLM\Software\HTC\VolumeOverlay. How can I do ? Thanks in advance.
Xavier92 said:
I well understand that TD2 tools is only for W6.5,
Click to expand...
Click to collapse
I use TD2 Tools with the standard WM6.1 ROM that HTC issues. I have version 2.0.3552.42948, release 2a.
Xavier92 said:
I well understand that TD2 tools is only for W6.5, but is your manual procedure to create et reg key OK with W6.1 ? I don't find the 3rdPartyAPClass in HKLM\Software\HTC\VolumeOverlay. How can I do ? Thanks in advance.
Click to expand...
Click to collapse
The registry edit works for 6.1
If you can't find "3rdPartyAPClass", I presume you have "InhouseAPClass"? You could try putting the new entries in there instead.
In fact, TD2 tools can change these parameter only from the 2c version. But, I succeed in making manually the key as explained before. But unfortunately, no change in the volume behaviour.
For me (and it seems I not alone), the main issue is the hard button vol+ and vol- which are not able to change the volume level les than 25%.
Thanks.
Still looking for something like this
Instead of using the classical VolUP and VolDOWN buttons, just tap on the Volume bar to select a more precise Volume percentage.
Am I wrong?
Sorry for double posting.

## PRO-TIPS for your (non-pro) Windows RT ##

Well I guess this is more of a 'list of utilities, commands, and features' that might be buried so deeply into windows rt that you didn't know it was there. I don't know about other surface/winrt users but I have gotten more advanced configuring my surface rt than I ever did on an x86. Now I usually end up needing to configure my x86 devices to provide the same functionality I expect on my tablets.
So I don't think we have a list like this and I'm sure a lot of you have your own 'pro-tips', so maybe we can compile a list of hidden gems we can use with windows rt into this thread so that we collectively can reference or individually don't forget
So here is a short list to start off :
Utilities -- Many more utilities can be found by browsing c:\ProgramData\Microsoft\Windows\Start Menu\Programs
WF.msc (type at command prompt or Win-R key run window) : (Windows Firewall with Advanced Security) although they removed the control panel applet it seems they left in this mmc plugin.
gpedit.msc : group policy editor... somewhat hidden but they left this in
resmon (Resource Monitor)
msconfig (System Configuration)
msinfo32 (System Information)
steps (Steps Recorder) : this is a utility that will capture your activity as screenshots to play back or upload for others to see.
Modify whether links or html files open in Desktop or Metro versions of Internet Explorer :
Open desktop Internet Explorer, click on gear icon and choose Internet options. Now click on 'Programs' tab and select your preference from the 'Opening Internet Explorer' section dropdown.
Keyboard Shortcuts :
Metro snap via keyboard : Hold Windows and tap . (period) Keep holding down windows key and tap left, right, up, or down
Win-Tab : While alt-tab lets you cycle 'desktop' programs, Windows key + Tab cycles through 'metro' app list
Win-X : Show advanced start menu (same as right clicking start menu)
Win-D : Show/Hide desktop
Win-P : Pick from various multi-monitor configurations (duplicate/extend/pc only/external monitor only)
Console Commands
'HELP' : Show a list of all commands you can get more help on.
'WHERE' : Type where wf.msc (for example) and it will tell you where that program/file exists if it is in any of your PATH'ed folders.
'WMIC' : a very deep well of information, type WMIC /? to see list of all modules
wmic volume list brief (shows all mounted drives/volumes)
wmic qfe list brief (shows all installed windows updates)
'SYSTEMINFO' : another system info command, sort of a command line version of msinfo32
'TREE' : show an 'ascii-art' tree of sub-folders for the folder you are in.
'ASSOC' : command line ability to set file associations
'CERTUTIL' : can be used (among other things) for computing file hashes
certutil -hashfile [filename] [MD5|SHA1|SHA256] so for example :
certutil -hashfile myfile.zip sha1
Associations / Context menu / 'Send To' programs :
Create a shortcut to control.exe /name Microsoft.DefaultPrograms to quickly go to this control panel applet.
Use command line ASSOC to set file associations
Manage 'Send To' folder by opening 'windows' explorer, typing shell:sendto into the location bar to be taken to a folder showing all your 'send to' programs'. You can drop shortcuts to other programs (provided those programs accept command line arguments). Now you can right click a file in windows explorer and 'send to' programs like 7-Zip, Paint.NET, notepad++, etc.
Add an "Open with Notepad++" or other top level context menu for all files :
Open registry editor and browse to : HKEY_CLASSES_ROOT\*\shell.
Right-click on “shell” and choose to create a new key, calling it “Open with Notepad++”
Create a new key below that one called “command”
Double-click on the (Default) value in the right-hand pane and enter "c:\path_to_npp\notepad++.exe" $1
To have the menu item show the notepad++ icon do these extra steps :
Right click the "Open with Notepad++" key (which you created) and add a new string value called "icon"
Double click new "icon" value and set its string value to "c:\path_to_npp\notepad++.exe"
In all steps above make sure you enter the path to notepad++ on your machine instead of the path entered.
http://www.howtogeek.com/howto/wind...th-notepad-to-the-context-menu-for-all-files/
Make 'command prompt here' context menu when right clicking folder in windows explorer : http://www.howtogeek.com/howto/wind...-always-display-for-folders-in-windows-vista/
Enable 7-Zip Context Menu :
Run regedit (Registry Editor), and drill into / expand HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers.
Now right click on 'ContextMenuHandlers' and choose 'permissions'.
Click 'Advanced' button.
On advanced Security Settings screen (at the top) choose Change (owner) link.
When selecting a user or group screen comes up click 'Advanced', then 'Find Now', and in search results choose 'Administrators' (may need to widen column to distinguish from singular 'Administrator').
After highlighting Administrators, click OK button to go back to Advanced Security Settings screen.
Now you are able to click on 'Administrators' and click 'Edit' and select 'Full Control' and click ok to apply permission.
Keep clicking ok on dialogs till you are back at registry editor.
Now run 7-Zip as administrator, go into tools menu and select options.
Then on 7-Zip tab choose 'Integrate 7-Zip to shell context menu' and click ok to close dialog.
Context menu should now appear when right clicking on files in windows explorer.
Disabling Connected Standby :
This is only a good idea if your tablet will always be left on a charger or 'shut down' when not in use. If you turn off connected standby and set your display to turn off after... say 5 minutes, then after 5 minutes your display will really power off (backlight as well) but any desktop programs will continue to run. You might want to do this if you are running a web server or some other process in background. When you disable connected standby, many other options appear in your power options 'advanced power settings' page. If you do this I recommend you 'Create a power plan' on the 'Choose or customize a power plan screen first'.
To toggle connected standby feature on or off, modify the :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\CsEnabled key, setting to 0 for 'off' or 1 for 'on' and reboot to take effect.
Node Chakracore :
This is really an undocumented bonus 'add-on', made by Microsoft which you can run even on windows rt devices which are not in test-signing mode. For those who are not familiar, NodeJS is a console-based javascript scripting environment. Standard Node.js uses v8 javascript engine (same as google chrome), however this 'node-chakracore' version uses the chakra javascript engine (which is the latest version used in edge browsers). Microsoft is providing this for raspberry pi users running Windows 10 on ARM but they also work on Windows RT.
I made a utility here if you prefer to try an automated means of installing
Install Node.JS (node-chakracore) :
Download the latest ARM release from : https://github.com/nodejs/node-chakracore/releases
Extract that archive to (for example) c:\nodejs
Add that directory (which you extracted to) to your path environment variable.
(Optional) Install/Setup NPM (lets you install packages from npm repository) :
Download https://github.com/npm/npm/archive/master.zip, save somewhere.
Extract it to (for example) c:\npm.
Open windows explorer and type %AppData% into the address bar and hit enter.
Within your AppData directory, create an "npm" directory.
Double click on npm folder you just created from windows explorer
Click into the address bar to see the full path and remember (or copy) this path for next step and later.
Save the following to file named "npm.bat" and save into the directory you just created/copied
Code:
@node c:\npm\npm-master\cli.js %*
(If you extracted npm elsewhere, update the batch file to reflect actual location)
Create an etc directory under this appdata npm folder
Create an separate etc directory under your node folder (c:\nodejs if you used suggested default)
Copy .npmrc file from c:\npm\npm-master to c:\node
Rename and get rid of the '.' from the filename so the filename is just npmrc
edit that npmrc file In notepad and add the following lines :
Code:
globalconfig=c:\users\username\appdata\roaming\npm\etc\npmrc
prefix=c:\users\username\appdata\roaming\npm
(make sure to substitute your username in the above this base folder is the folder I told you to remember/copy in previous steps)
Having saved those changes to npmrc under c:\node\etc, copy that file to your appdata\npm\etc directory as well.
Add the path of your appdata\npm directory your path environment variable. If you install global packages they will install commands/batch files into this folder. If it is pathed you can exec them as native commands. This path is also where we put the npm.bat so it can be run from anywhere.
A useful demonstration if you have configured the both npm and node correctly is to install cash (an implementation of unix shell commands) by typing from a command prompt :
Code:
npm install -g cash
That should take a several minutes to complete (hopefully successfully). When done you can run 'cash' or just '$' at a command prompt to bring up simulated Linux prompt from which you can type 'help' to see supported commands. These commands interop with windows commands as well so you can mix (see cash link above).​
(Thanks to @black_blob for discovering this node/npm)
I will add more info or cleanup as needed, feel free to post your own, if needed I can compile it into first post to work towards a guide if anyone wanted to make one.
I modded the Windows 10 Chakra(non-core) to run on 8.1 as a part of my earlier NodeJS port. By the way, I also had Microsoft Edge running with it at a time.(EdgeHTML)
I wonder if I should continue my backports from Win10
You mean other programs/frameworks? You have brought over some great stuff, so yes absolutely! Anything you have in mind?
nazoraios said:
You mean other programs/frameworks? You have brought over some great stuff, so yes absolutely! Anything you have in mind?
Click to expand...
Click to collapse
I have in mind to backport the UWP framework, or maybe even a FrankenKernel(10 kernel, 8.1 userspace). Microsoft Edge works without needing UWP, as you can use edgehtml like mshtml for embedding
You would definitely be my hero if you could bring over Edge, preferably with somewhat recent (EdgeHTML? rendering) and Chakra javascript engine.
Not sure how FrankenKernel and UWP support could work out but both could potentially be awesome... guess its the details which I'm sure you have a better idea than me. So do you think we would be able to run (open source?) Windows 10 apps and would the 'developer mode' be brought over with the kernel or is that 8.1 userspace which would require 8.1 developer license signing (and renewing every 6 months)? Or would the UWP part just be for console or node-chakracore like it is on IOT?
nazoraios said:
You would definitely be my hero if you could bring over Edge, preferably with somewhat recent (EdgeHTML? rendering) and Chakra javascript engine.
Not sure how FrankenKernel and UWP support could work out but both could potentially be awesome... guess its the details which I'm sure you have a better idea than me. So do you think we would be able to run (open source?) Windows 10 apps and would the 'developer mode' be brought over with the kernel or is that 8.1 userspace which would require 8.1 developer license signing (and renewing every 6 months)? Or would the UWP part just be for console or node-chakracore like it is on IOT?
Click to expand...
Click to collapse
Windows 10 kernel & system, Windows 8.1 explorer.exe, dwm and other tiny GUI bits
I have a Windows Server ARM64 build, but that's not 32-bit
Yea that sounds daring... Don't brick your device please Too bad no 32bit gui bits to borrow. I doubt they would bring the Ubuntu for Windows 10 subsystem to arm, but technically i'm sure they could since Ubuntu has arm and pi2 image.... still would be neat. Also I think they added ssh server to pi2 but not sure if it would be easy to 'extract' and borrow.
We will be watching you commander...
nazoraios said:
Yea that sounds daring... Don't brick your device please Too bad no 32bit gui bits to borrow. I doubt they would bring the Ubuntu for Windows 10 subsystem to arm, but technically i'm sure they could since Ubuntu has arm and pi2 image.... still would be neat. Also I think they added ssh server to pi2 but not sure if it would be easy to 'extract' and borrow.
We will be watching you commander...
Click to expand...
Click to collapse
The Ubuntu support uses the Linux binary compatibility SubSystem, also known as Astoria
black_blob said:
I have in mind to backport the UWP framework, or maybe even a FrankenKernel(10 kernel, 8.1 userspace). Microsoft Edge works without needing UWP, as you can use edgehtml like mshtml for embedding
Click to expand...
Click to collapse
That would be even more amazing than a running build of Windows 10 Mobile. So you'd have a "full" OS with the befinits of running UWP. That would def. insure the future of Windows RT.
It would be even better if astoria would work on it too. So you'd even able to run android apps.
I need help for the nodejs and the npm instructions. Can you explain it out in details for morons?
Sorry late reply... which steps are you getting confused at (for node/npm install) ? So for starters :
- if you open a command prompt and type "node -v" does it tell you the version of node your running? If so, what version does it say?
- if you type "npm -v" does it tell you the version of npm you are running or give an error? Tell version or error.
So i'll start with that to make sure your paths are set up.
I created an installer utility to install node-chakracore along with NPM. Hopefully this will make it easier for other or myself to install or upgrade as new versions of node-chakracore and npm come out.
The final step in the process (updating the system PATH environment variable) requires admin permissions so right click executable and run 'As Administrator'. If you prefer to set the environment variables yourself, this step will tell you the paths it would add.
9/13/16 : Updated default node chakracore download link to new 7.0.0-pre9 release, added a 'Complete' tab with links to further resources and made UI fix

Categories

Resources