PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2

Notices



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-2011, 03:37 AM
Robert's PDA's Avatar
Lurker
Offline
Pocket PC: Touch Pro2
Carrier: Sprint
 
Join Date: Nov 2008
Posts: 9
Reputation: 10
Robert's PDA is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Question Changing a Registry Key Automatically on Startup.

Hi everyone. Trying to find a way (if possible) to automatically change a registry key every time the device reboots. Every time I reboot I have to go in and change one registry key manually, I know it's not that bad but I would love it if it could do it by itself. The key is to Enable Audio Booster without using a headset (I use a stereo bluetooth).

The key is: HKLM/System/State/Hardware/Headset

The default is 0, and I have to change it to 1 after a reboot.
__________________
Sprint Touch Pro2


Last edited by Robert's PDA; 02-06-2011 at 06:25 AM.
Reply With Quote
  #2 (permalink)  
Old 02-06-2011, 08:34 AM
quick99si's Avatar
Halfway to VIP Status
Offline
Pocket PC: Nexus S - E3GT - Epic 3G
Carrier: SERO $30
Location: Chicago, IL
 
Join Date: Dec 2007
Posts: 631
Reputation: 1245
quick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Changing a Registry Key Automatically on Startup.

Mortscript can do this with relative ease along with placing the resulting script in Windows/Startup (it can be done via notifications as well, but the Startup directory is easier as well as more compatible with Sashimi/XDA_UC)

Here is the Mortscript Manual that will teach you how to set registry keys: HTML manual for MortScript - xda-developers

You can also set it to wipe out that pesky oversized HTC Album cache folder (Device/Application Data/HTC Album/cache)
Reply With Quote
  #3 (permalink)  
Old 02-06-2011, 06:33 PM
Robert's PDA's Avatar
Lurker
Offline
Pocket PC: Touch Pro2
Carrier: Sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 9
Reputation: 10
Robert's PDA is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Changing a Registry Key Automatically on Startup.

Thanks Quick, I don't know anything about creating scripts but there's no harm in trying. I might learn something new! I hope I can figure it out. Thanks again. By the way, that album cache, why would I want to delete it? Wouldn't it just rebuild itself the next time I looked at the "Photos & Videos" tab?

Last edited by Robert's PDA; 02-25-2011 at 04:54 PM.
Reply With Quote
  #4 (permalink)  
Old 02-06-2011, 08:27 PM
Robert's PDA's Avatar
Lurker
Offline
Pocket PC: Touch Pro2
Carrier: Sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 9
Reputation: 10
Robert's PDA is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Talking Re: Changing a Registry Key Automatically on Startup.

I looked at some scripts that were close to what I wanted and just through trial & error whittled it down to what I needed & it worked!

For anyone who wants it I posted the file here, because I can't be the only one who needs this. You just need to place it in the "StartUp" folder. I named the file ABWBTH.mscr (Audio Booster With Bluetooth Headset).

The Script is very simple:

RegWriteDword ("HKLM", "System\State\Hardware", "Headset",1)
Attached Files
File Type: mscr ABWBTH.mscr (60 Bytes, 19 views) Click for barcode!
Reply With Quote
  #5 (permalink)  
Old 02-06-2011, 09:04 PM
quick99si's Avatar
Halfway to VIP Status
Offline
Pocket PC: Nexus S - E3GT - Epic 3G
Carrier: SERO $30
Location: Chicago, IL
 
Join Date: Dec 2007
Posts: 631
Reputation: 1245
quick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Changing a Registry Key Automatically on Startup.

Nice man, glad you got it working. As far as HTC's cache, yes it does rebuild itself, but I rather have it rebuild in pieces than use 18-20mb of phone storage on me. That's a lot of space on this device if you do storage intensive things like record phone calls.
Reply With Quote
  #6 (permalink)  
Old 02-07-2011, 06:43 AM
Robert's PDA's Avatar
Lurker
Offline
Pocket PC: Touch Pro2
Carrier: Sprint
Threadstarter
 
Join Date: Nov 2008
Posts: 9
Reputation: 10
Robert's PDA is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Changing a Registry Key Automatically on Startup.

Hey Quick, I started to work on a script to clear out the HTC Album folder on startup but I found a much simpler way. Since I already have & use "Space Reclaimer" I used that. It allows you to do many things during startup including clearing out folders. The software cost $9 but I've had it since I was using Windows Mobile 2003 & it still works just fine. It does what you want it to do then closes itself. I never used that option before (deleting everything in a folder) but now I guess I will.

That software can be found here: ValkSoft Space Reclaimer

Last edited by Robert's PDA; 02-08-2011 at 07:39 PM.
Reply With Quote
This post has been thanked 1 times.
  #7 (permalink)  
Old 02-07-2011, 11:36 AM
quick99si's Avatar
Halfway to VIP Status
Offline
Pocket PC: Nexus S - E3GT - Epic 3G
Carrier: SERO $30
Location: Chicago, IL
 
Join Date: Dec 2007
Posts: 631
Reputation: 1245
quick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Changing a Registry Key Automatically on Startup.

Thanks for the pointer, but this thread has inspired me to make my own script with a few settings and file/directory removals at Windows startup. Some of my backups apps leave unsightly traces behind that I'm tired of seeing lol

But yeah, mortscript has fuctions like delete (file/folder), DelTree, RmDir, copy/move, etc.. Now if only I could upload my backups to my FTP server, I'd be pretty set!
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 01:45 PM.


Powered by vBulletin® ©2000 - 2020, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com