Jump to content
Sign in to follow this  
FutureDirt

[HOW TO] Rotating Apps with the G Sensor

Recommended Posts

I just wrote this little tutorial by piecing togethor bits of info from other forums. I posted it on the vodafone forum but the guys over there will have no clue what im talking about so here it is for MoDaCo!:

To get the g sensor rotating any application that doesnt do so already you will need to edit the registry on your device.

Using your preferred registry editor navigate to:

HKCU\Software\HTC\HTCSENSOR\GSensor\ModuleName

Here you must create a new string value. The name of your string is whatever you want it to be. The value of your string would be the path to the exe of the program you wish to rotate.

Once this is done you must then navigate to:

HKCU\Software\HTC\HTCSENSOR\GSensor\WhiteList

Here you must again create a new string value.

The name again is whatever you want it to be... the value would be the class name of the application you are attempting to rotate.

For example.... to get excel rotating with the G sensor:

HKCU\Software\HTC\HTCSENSOR\GSensor\ModuleName

Create new string value... i named it Excel Mobile. Value is:

windows\pxl.exe

HKCU\Software\HTC\HTCSENSOR\GSensor\WhiteList

Create new string value... again i named it Excel Mobile. Value is:

BOOKWIN

Create second new string value... i named it Excel Mobile2. Value is:

PXLMainWnd

Exit your registry editor and soft reset the device. Job done. Excel will now rotate within the open file browser (PXLMainWnd) and also within any open workbook (BOOKWIN)

For any particular app you should be able to figure out what the full path is to your exe but to get class names use dotfreds task manager:

http://www.dotfred.net/TaskMgr.htm

Once the task manager is installed.... start your app... then start the task manger... go to applications tab and long press on your app which will be listed if it is still running... select details. Go to the windows tab... this screen will list all of the classes currently accessed by your app. Ususally the ones to add into the whitelist will be the ones that are preceded by the app name but not always.

To get you guys started here are the settings for word:

windows\pword.exe

and you need to add two classes to the white list:

WordPad

Pocket Word

Remember that class names are case sensitive.

disclaimer: I TAKE NO RESBONSIBILITY FOR ANY DAMAGE TO ANYONES DEVICE BY POSTING THIS QUICK TUTORIAL. YOU CAN SERIOUSLY DAMAGE YOUR DEVICE IF YOU EDIT THE REGISTRY INCORRECTLY... IF YOU DO NOT KNOW WHAT YOU ARE DOING LEAVE IT WELL ALONE!!!!

Share this post


Link to post
Share on other sites
That's nice, but very roundabout. How about this? A continually developed app with lots of tweaks, including rotation.

I wouldnt call it roundabout... its more like straight to the damn point!

There are actually a few apps out there that can handle rotation for you automatically.

I have started to use gyrator myself. The problem with gyrator though is you can only add new classes if you take your stylus out... open the app then replace the stylus. The Leo doesnt have a stylus which prompted me to find the reg keys needed and hence this tutorial.

I havent tried the app you have linked as i already had the means to carry out all of its functions before makeveral edited his post from "coming soon" to actually releasing his product. In fact... i think i wrote this tutorial before it came out also. It looks good though... try it out!

Share this post


Link to post
Share on other sites

Another option for auto rotation that works well is ChangeScreen

It's configuration options are better than Gyrator and don't need a stylus to access. It can also be quickly turned on/off as needed with the options to easily add custom rotation options for any program (eg, you can set 'Manila' to only work in Portrait- 0 or 180 degrees, or simply at 0 degrees if needed)

I personally prefer manual rotation but that's a different story!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.