How to Rotate the Screen? Apps, Registry, HTCsensorsdk.dll? - Windows Mobile Development and Hacking General

I have a Windows Mobile device with WVGA resolution 800x480 Landscape.
It's a Toshiba, I want to pass from Landscape to Potrait.
Normally the screen can not be rotated. But I think it's possible because all Windows Mobile devices can do this.
1---I downloaded a lot of application (RotateScreen, RotateMe, Gyrator2, GSen...and also others apps)... but the screen doesn't rotate
I have always received error messages like "Error in the program"... or
2---Unable to find HTCSensorSDK.dll...Where can I download this dll? I think that these apps don't work because they use accelerometer and my smartphone doesn't have it.
3---I have also tryed to modify the registry with Memmaid (...Gdi/Rotation/HideOrientation...) I changed values but the registry seems locked...
I changed the value from 1 to 0 , but the value return to 1...
Can Anyone Help Me???
Apps that don't use sensors, Where download this dll, How to Unlock the Registry...
I tryed a lot of way... Help!:crying:

---This is the error reportage that appears whit an app:
in Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)
in Microsoft.WindowsCE.Forms.SystemSettings.set_ScreenOrientation(ScreenOrientation value)
in RotateMe.Program.Main()
---And this is another...
in Microsoft.AGL.Common.MISC.HandleAr()
in Microsoft.WindowsCE.Forms.SystemSettings.set_ScreenOrientation()
in RotateScreen.Form1.PictureBox1_Click_1()
in System.Windows.Forms.Control.OnClick()
in System.Windows.Forms.Control.WnProc()
in System.Windows.Forms.Control._InternalWnProc()
in Microsoft.AGL.Forms.EVL.EnterMainLoop()
in System.Windows.Forms.Application.Run()
in RotateScreen.Form1.Main()

4---Can Anyone develop a software that rotate the screen or an option that allows me to rotate the screen in Java Software?
This can inspire you: I have a Toshiba G910 and the G900 is almost identical to my device.
Neither of the two have Sensors, but the G900 can rotate the screen when the keyboard is pulled out... (the G910 don't and it's strange because is newer)
...In W.M. 70 % of Application and games work only in Portrait mode.
The biggest problem is that I download a lot of Java games in High Resolution 480x800 and they don't work in 800x480 res.
One of the few advantages that my device has is its screen, but so what is the use?

Certainly not all windows mobile phones have the capability to auto-rotate, your device needs to have a g-sensor (I googled and this Toshiba G900 hasn't). Check if it has one on the site of your manufacturer. But all windows mobile phones can be put in landscape mode, although most of the time this option, located under settings > system >screen > general, is hidden. You can unhide it by setting the following registry key to 0:
Ok forget the key, can't find it anymore, but there is some program called "Advanced configuration tool" which enables this. Search it here on the forums
Now you say that you can't edit your registry, strange ... Which program do you use for editing?
I have also added the HTCSensorSDK.dll. However, I don't think it will work and that it's only for htc devices... But you can always try, you just have to put in the /windows/ directory. Of course it will never work if you don't have a g-sensor...

Mich-C said:
I have a Windows Mobile device with WVGA resolution 800x480 Landscape.
It's a Toshiba, I want to pass from Landscape to Potrait.
Normally the screen can not be rotated. But I think it's possible because all Windows Mobile devices can do this.
Click to expand...
Click to collapse
Only possible IF display driver supports rotating. Probably you have to install another display driver.
EDIT:
Install a Flash Player. Tons of landscape oriented SWF-files available.
FlashPlayer
FlashGamesCollection

MXT3 said:
Certainly not all windows mobile phones have the capability to auto-rotate, your device needs to have a g-sensor (I googled and this Toshiba G900 hasn't). Check if it has one on the site of your manufacturer. But all windows mobile phones can be put in landscape mode, although most of the time this option, located under settings > system >screen > general, is hidden. You can unhide it by setting the following registry key to 0k forget the key, can't find it anymore, but there is some program called "Advanced configuration tool" which enables this. Search it here on the forumsNow you say that you can't edit your registry, strange ... Which program do you use for editing?
I have also added the HTCSensorSDK.dll. However, I don't think it will work and that it's only for htc devices... But you can always try, you just have to put in the /windows/ directory. Of course it will never work if you don't have a g-sensor...
Click to expand...
Click to collapse
Thanks you MXT3, but I don't have a G900 (read my 3rd post).
---I edit the registry with Memmaid (from Dinarsoft) and Today I also tryed with TotalCommander.
They don't want to work (maybe is a their problem...) Which registry editor do you use?
---I inserted the .dll file in my device. Apps seem not work (probably because my device doesn't have sensor)
---I tryed Advanced Configuration Tool but it doesn't work.
And then I don't understand the other 2 options : Landscape Mode (0°/90°/180°/360°) and Lanscape Fixed (yes/no)
Help me!

jwoegerbauer said:
Only possible IF display driver supports rotating. Probably you have to install another display driver.
Install a Flash Player. Tons of landscape oriented SWF-files available.
Click to expand...
Click to collapse
Thanks for your advice. I download and Installed Flash Player. But I still want Portrait mode.
---Can I download and install another display driver? (Maybe I can simply modify the current driver).
Can I put the G900 driver into my device?
---Do you know other W.M. Device (without sensor) that have only 1 Screen Orientation?
Probably their owners found a way to pass from Lanscape to Portrait and viceversa...

Mich-C said:
---Can I download and install another display driver? (Maybe I can simply modify the current driver).
Click to expand...
Click to collapse
Don't know whether this display driver does the job, never used it: wr1_ddi_v2.5
Mich-C said:
---Do you know other Device (without sensor) that have only 1 Screen Orientation?
Click to expand...
Click to collapse
Typically almost all GPS/Navigators, as I use/have used ...
BTW: You should correct this thread's TAGS, this because your issue is Toshiba G910 related, not HTC

jwoegerbauer said:
Don't know whether this display driver does the job, never used it: wr1_ddi_v2.5
Typically almost all GPS/Navigators, as I use/have used ...
Click to expand...
Click to collapse
I will install the file you posted. I hope I will not damage my device.
But I want to try softwares for W.M devices similar to mine (they will work better)
Because the IPAQ 314 has W.ce and not exactly W.M...

Now I installed this file.
I can't rotate the screen, the app always tells me to soft-reset the Device...(I can't also open some .exe files)
Maybe I make some errors, but it looks promising.

...

Request
I have an idea!
If you have a phone that can rotate the screen go to "Windows" folder, copy "DDI.dll" and "wr1_ddi.dll" and upload them in this thread.
I will replace the files of my phone with those working ones
(This drivers can also have other names, if you know them write it)

Related

want run app in HIRES mode without change WM5 mode...

Nice application... Check it out...
http://discussion.brighthand.com/showthread.php?threadid=105793
I have been tried with DestinatorPN working great...
Hi,
Correct me if I'm wrong, but if I understand this correctly, this "hack" recompiles any .exe I want to run on my Universal to default to a VGA screen.
The end result is that I can have everything in QVGA mode except those I specifically modify. eg
- WM5 and phone dialer as normal but when I start a modified Internet Explorer to automatically defaults to full VGA mode?
Is this correct?
Also I noticed the reference to this site below...
http://www.tweaks2k2.com/portal/forum/viewtopic.php?forum=8&showtopic=62
I am wondering what they mean by the "HI_RES resource file", having never owned a window's based PDA before, I'm not familiar with the file.
Is this a generic system resource file that can be duplicated into any folder we need and renamed appropriately?
Where do I begin to locate such a file to copy and rename?
This seems like a neat solution if its just a matter of copying this into any program folder I want to run in VGA mode.
Regards
Michael
Looks like it, time to do a bit of playing around........
......Well, I couldn't get any of it to work. No great surprise there.
This app modify you ppc apps to work in HIRES(VGA) mode, when all my WM5 in QVGA mode only the apps that i modified will work in VGA mode.
What i know (i tried) on this app, When i modify DestinatorPN and it's works great but on Resco Explorer (5.1) it's not working.
And about the Internet Explorer i didnt found way to copy/move/replace the file "iexplorer.exe" so i didnt check it.
Resco Explorer and PIE are allready high-res aware. They do a method called double-pixelling. This means that you don't get more screen estate but doubles each pixel both horizontally and vertically...
Btw, first post. Hi all! Been lurking around on this forum for ages... Well since the Magician came out.

VGA without Soft Reset?

Just a dream or is it reality?
See the attached pictures. 1 pictures show O2SMS is in VGA mode when my PPC is in QVGA mode, the other shows O2SMS when my PPC is in VGA mode.
Anyone has any idea how this can be done?
How what can be done? Live switch from QVGA to VGA?
V
I do not know how, it is in the O2SmsPlusV1.1.
Maybe you can check it out and enlighten all of us.
Or someone who wrote this software can release the O2SmsPlusV1.1 Source Code.
Attached is the ZIP file of the exe files. just copy into anywhere and run or create a shortcut link and run.
Sorry, think I may misunderstand. Are you saying that on a VGA device the app looks the same, ie hires, when the device is in either QVGA or VGA mode?
This is a choice of the coder, who merely has to code his app to support the true native resolution of the device, ie VGA, rather then "emulating" QVGA on a VGA device using Pixel Doubling, which is the normal path suggested by Microsoft. Any app can be made to support VGA on a VGA device if the programer wants it to, whether you're "apparently" running in QVGA or VGA, by use of the hi res aware resource and appropriate coding. Look up "dpi aware" on msdn.
Pocket Internet Explorer can do it I think. Some other apps to.
V
Ok, now I understand. Thanks.
But the PIE smallest resolution is still not small enough to see the whole width of the explorer.
There was a tool once (can't remember it's name now) that hacked individual apps to work in real VGA. It didn't always sit well with the app, but if you really want to try this same functionality can be achieved with resource hacker.
Just add a binary resource of type "CEUX" called "HI_RES_AWARE" with the following value 01 00 to the exe of the app (note this will mess app the signature if it is a commercial software for WM 5 and may make the file unusable).
CWKJ said:
But the PIE smallest resolution is still not small enough to see the whole width of the explorer.
Click to expand...
Click to collapse
Wait for crossbow. PIE is improved on hi-res devices.

MaxHome (replacement of Today)

PROGRAM IS NOT WORKING AT 100%! AT THIS MOMENT ONLY FUCTIONS LISTED BELOW ARE WORKING. OTHER FUNCTIONS UNDER DEVELOPMENT.
Current Version
- [NEW] Birthdays button/indicator works
- [NEW] A little bit more comfortable clock setting
- [NEW] Fade-in effect now depends on your device speed
- Clock Settings
- Clocks, Indicators
- Balance update
- BlueTooth, GPRS/EDGE, WiFi, GSM on/off
- Support for all resolutions (hope so )
- Support for scale components of main window (may be useful for big resolutions)
Install: unpack to Program Files to your device.
Scale factor and balance setting are in HKCU\Software\MaxHome
Day's period to search birthdays in the same regestry.
To Do Next: sort birthdays in order of days, alarm settings, maybe screenlock
Hmmmm. so i'l be the first one
I'me more into icons and launchers but nice icons
I'm sure that a lot of people will like this
Very nice...can't wait to take it for a spin
It's amazing ! I really want this ! Good job !
Thos application seems to be verry good.
nice!!! quite tired of the normal todays screens..too much cluttered plugins...
hope you could share with us soon very much interested to try out...
nice work keep it up =) hope it is also support VGA..coz many developers develop QVGA soft huhu
looks good, keep it up!
I'm begginer in programming. So dont promise a VGA version. I wrote it with Windows Mobile 6 SDK. I think it will work with 5.0 and 6.0 of coarse.
Actually I doing it for my personal using (QTek S200, WM6).
Will be glad if some one else will can to use it
hi MaxKysh, im a beginner too. Is possible to use grafic libs like XFlib in your project?
Don't know I use only API functions.
Please, try it
Here it is if somebody want to try Please report of your try.
Tested on QTEK S200 - works well.
Tested on Asusu p525 - don't work BlueTooth swith (will try to fix it).
WiFi switch don't realised yet.
Place into Program Files on your device.
The balance USSD request message stored in HKCU\Software\MaxHome\Balance\Message.
http://forum.xda-developers.com/attachment.php?attachmentid=72766&stc=1&d=1204001375
I've got an normal htc elf p3450
And the program doesn't work correct, the background doesn't load therefore the transparant icons doesn't show.
I can enter the settings tab but i don't think any of the settings work.
I know you are a starting programmer (and i can't program anything so i have deep respect for you) but could you concider something like total customization
Greetz
Did you extract it to Program Files? (I meen Program Files\MaxHome\, and not to Storage Card (!)). Don't promise full customize but will work on it
MaxKysh said:
Did you extract it to Program Files? (I meen Program Files\MaxHome\, and not to Storage Card (!)). Don't promise full customize but will work on it
Click to expand...
Click to collapse
As i have a dutch elf i don't have the program files folder but i made one by hand and copied the whole MaxHome folder to that directory but it still didn't work.
Greetz,
Hmm... That is my big mistake Will try to fix it
hi, just tried it, unzipped to device/Program Files/Max Home
tried running MaxHome01b.exe and comes up with error:
"the file 'MaxHome01b' cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. You might need to reinstall or restore this file."
I clicked on accept when it said it wasnt signed...
Not working for Wizard
Date and time displayed correctly, the "Comm Manager" displays correctly but the Bluetooth button is the only one functioning, the rest do not have any effect.
Icons at the bottom do not work at all.
Anyhow, good idea, keep the good work!
Forget to say:
realized at this moment only:
- Clocks
- BlueToot, GSM, GRRS switch (WiFi - not yet)
- Balance Update
The bottom icons just for full view They are not working.
Please tell me, which Software to programm do you use??
Can you post the source code, so that we can help you to make a realy realy good home screen?
Thanks

WMP 10 Landscape Mode

Hi All,
I am running the latest dcd's ROM 3.2.3 on a Verizon XV6800. This is my first time playing with WMP 10 mobile. I have the classic landscape issue. I've seen this solved using the registry mod (HKLM\System\GDI\Rotation, set Ladscape to 1). This works , but when I slide open the keyboard the registry value is changed back.
I've tried some other players, but I need *.wmv files working so it's limited my choices a bit.
Any advice would be greatly appreciated!
WMPLandscape
Since noone has an answer for this I created my own. This is a hack that works around the WMP limitation. I call it WMPLandscape.
WMPLandscape is basically just a lightweight window that monitors the state of the display. It changes the LandscapeMode reg entry, then posts a message to Windows Media Player. This causes WMP to play in landscape mode when in full screen.
To Install:
Just install the cab and start the app or issue a soft reset.
WMPLandscape runs in the background and is auto-started after reset.
If the app is already running, clicking the app shortcut will open the app so it can be closed or the about box can be viewed.
WMPLandscape should work on any ARM device running Windows CE 4.2 or higher, but only QVGA devices are currently supported. (this was really meant for the Titan.)
This is a pretty ugly hack, but it does seem to work fairly well.
Sometimes WMP will revert to portrait mode after the keyboard is closed. I am still trying to resolve this issue. If this happens, just open the keyboard and close it again and things should be back to normal.
I hope someone finds it useful.
Rob
**Edit: I removed this file after finding a nasty bug. See below for an updated version.
Here's a new copy. There were some memory issues with the first version. I still haven't figured out how to make it work everytime, but this one is a step in the right direction.
***Edit: The final version is below.
I was finally able to get this working more reliably, so here is the final version.
If you are having trouble getting Windows Media Player to play full screen in landscape, start by setting the registry key HKLM\System\GDI\Rotation\LandscapeMode to 1 . For many phones, this is all you'll need to do and is better than having a background application running (even if it is very small).
For Titan phones (and probably others as well) the registry value is reset each time the keyboard is opened and closed, making the above fix only temporary. This app will make sure that the key stays at the correct value.
It is compatible with Windows Mobilw 5.0 and above.
Just install the cab file and soft reset the device.
Enjoy!
Rob
View attachment WMPLandscape_1_0_2.CAB

How do I get landscape mode in Remote Desktop Mobile?

Hi! I just checked out HD2's Remote Desktop client and it works perfectly on my Win7 box. Actually, it's the best mobile remote desktop client I've ever used!
There is only one minor flaw; is there no landscape mode, or am I just not seeing the option?
Give Gyrator a try. You can set which apps to allow auto-rotate or not.
http://gyrator.brins0.net/
johncmolyneux said:
Give Gyrator a try. You can set which apps to allow auto-rotate or not.
http://gyrator.brins0.net/
Click to expand...
Click to collapse
Thanks for the tip. Although I Google'd a little and read that it doesn't work very well with the HD2.
Shouldn't this be as simple as a small registry tweak? I'm sure there is a value somewhere in the registry that makes Remote Desktop Mobile start in landscape mode.
pcprono said:
Thanks for the tip. Although I Google'd a little and read that it doesn't work very well with the HD2.
Shouldn't this be as simple as a small registry tweak? I'm sure there is a value somewhere in the registry that makes Remote Desktop Mobile start in landscape mode.
Click to expand...
Click to collapse
I'm not certain why you are "sure there is a value somewhere in the registry that makes Remote Desktop [...]" because I know there IS NO such reg-value to make your app start in one orientation or another .
However, there is a registry entry to make it respond to orientation changes as perceived by the G-Sensor, then you can simply turn your device to sideways to switch your program between portrait/landscape/etc...
The easiest way is to use G-Config. The full manual procedure is to make new entries for your program as follows:
1. Navigate to reg key: "HKCU\Software\HTC\HTCSENSOR\GSensor\Module"
2. Create a new string reg-value with name of program, and its path for the value.
3. Navigate to reg key: "HKCU\Software\HTC\HTCSENSOR\GSensor\WhiteList"
4. Create a new string reg-value with the name of program, and its class name for the value.
5. RESET your device (turn off then on).
Hope this helps,
Cheers...
shirreer said:
The easiest way is to use G-Config.
Click to expand...
Click to collapse
How do you use G-Config with a HD2? I thought it needed a stylus to recognize new applications.
shirreer said:
I'm not certain why you are "sure there is a value somewhere in the registry that makes Remote Desktop [...]" because I know there IS NO such reg-value to make your app start in one orientation or another .
However, there is a registry entry to make it respond to orientation changes as perceived by the G-Sensor, then you can simply turn your device to sideways to switch your program between portrait/landscape/etc...
The easiest way is to use G-Config. The full manual procedure is to make new entries for your program as follows:
1. Navigate to reg key: "HKCU\Software\HTC\HTCSENSOR\GSensor\Module"
2. Create a new string reg-value with name of program, and its path for the value.
3. Navigate to reg key: "HKCU\Software\HTC\HTCSENSOR\GSensor\WhiteList"
4. Create a new string reg-value with the name of program, and its class name for the value.
5. RESET your device (turn off then on).
Hope this helps,
Cheers...
Click to expand...
Click to collapse
Awesome, I will try it tonight. Thanks a lot!
johncmolyneux said:
How do you use G-Config with a HD2? I thought it needed a stylus to recognize new applications.
Click to expand...
Click to collapse
My dear friend, there are SO many apps that do automatic orientation: the most versatile, easiest, and customizable is Change Screen. Get it off of the diamond/raphael forums. Otherwise look for:
Zensor2 (easier), Gsens(lighest), or gyrator (heaviest).
Cheers
shirreer said:
3. Navigate to reg key: "HKCU\Software\HTC\HTCSENSOR\GSensor\WhiteList"
4. Create a new string reg-value with the name of program, and its class name for the value.
Click to expand...
Click to collapse
What is its class name? I see its a different value for each program. When I want to add a new app, is there anyway I can find out for myself what its class name is?
Hi
download app "Change Screen 2.78".
once you install it set default rottation as portrait.it is important cos you don't want any other apps to rottate.(if you do want others,just set the exeptions)
Then go to exeptions and and create new with name "wpctsc" and set it only for landscape.now every time you start Remote Desktop it will be opened only in landscape mode.i use this app since i had my old Touch Pro and now i am using it on LEO and it always 100% worked for me.tried more of them but this one is far the best.
adding some pictures for you to help with settings.
hope that this will help you a bit.
Well, if anybody still needs it...
Code:
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\ModuleName]
"Remote Desktop Mobile"="\\Windows\\wpctsc.exe"
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\WhiteList]
"Remote Desktop Mobile"="TSSHELLWND"
how do i find out class names for other programs?
Until we get another solution like Gyrator's neat stylus-out/stylus-in, you can check on the net or use a task manager. I personally use Dotfred's task manager, which shows window classes opened by a program (Applications tab/long tap on applications/Details button/Windows tab).
Now you need to find the right one (Usually the one with the window title, but not necessarily), and type it away.
Real quick example attached.
polystirenman said:
Hi
download app "Change Screen 2.78".
once you install it set default rottation as portrait.it is important cos you don't want any other apps to rottate.(if you do want others,just set the exeptions)
Then go to exeptions and and create new with name "wpctsc" and set it only for landscape.now every time you start Remote Desktop it will be opened only in landscape mode.i use this app since i had my old Touch Pro and now i am using it on LEO and it always 100% worked for me.tried more of them but this one is far the best.
adding some pictures for you to help with settings.
hope that this will help you a bit.
Click to expand...
Click to collapse
Wow! Works perfectly. Thanks a lot! This app made remote desktop even more awesome than it already is.
So easy to use too and it worked like a charm. Thanks again!
pcprono said:
Wow! Works perfectly. Thanks a lot! This app made remote desktop even more awesome than it already is.
So easy to use too and it worked like a charm. Thanks again!
Click to expand...
Click to collapse
not a problem.glad to help.
Yunabeco said:
Until we get another solution like Gyrator's neat stylus-out/stylus-in, you can check on the net or use a task manager. I personally use Dotfred's task manager, which shows window classes opened by a program (Applications tab/long tap on applications/Details button/Windows tab).
Now you need to find the right one (Usually the one with the window title, but not necessarily), and type it away.
Real quick example attached.
Click to expand...
Click to collapse
Beautiful, just what i was looking for. Thank you.
Works Great
Yunabeco said:
Well, if anybody still needs it...
Code:
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\ModuleName]
"Remote Desktop Mobile"="\\Windows\\wpctsc.exe"
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\WhiteList]
"Remote Desktop Mobile"="TSSHELLWND"
Click to expand...
Click to collapse
Tnx man, works great.
Can someone put this into a cab, for non technical users?
Grga
I recommend BsB tweaks for rotating apps (and many other tweaks).
Thanks a lot Yunabeco! Great tip!
Grga001 said:
Tnx man, works great.
Can someone put this into a cab, for non technical users?
Grga
Click to expand...
Click to collapse
I too recommend BsB Tweaks, but here's a CAB file anyway. Just run it and then reset for the changes to take effect
Great. It's was I needed.
I've just a problem with the keyboard language.
I'm French and Leo keyboard is in french. but when I connect to my Windows Server 2008 (also with a french version), the keyboard is detect as english and it's a big problem for key entry.
and changing Leo keyboard to english don't resolve the problem.
any idea?

Categories

Resources