Screen rotation for SQ 320x320 - Windows Mobile Development and Hacking General

I did a great many searches and have tried every screen rotate program I could find but none of them work on my Saga. Even enabling the orientation settings in the registry via Adv Config did nothing. So am I right in assuming this feature is disabled on square screens? I ask because a some software change the orientation to landscape which is just annoying on a qwertybar phone. Is there any solution to this? Maybe a small launching app that traps a programs call to flip the screen, or would that throw of stylus coordinates? If I knew what to look for I wouldn't even mind Hex editing the few particular apps that do this (not many work on my phone period) and just nop-ing the call in the exe. My experience with winmo coding is virtually non-existant though so I'm not sure what to look for. Guess I can hook it to a debugger in the emulator and just start poking around but I'd prefer a simpler solution if anyone knows one.

Related

disallow screen rotation

Hello!
I need to write software that disallows any screen rotation on my Wizard.
How can I do it? I didn’t found any registry settings for this. The best way
that I see is hooking ChangeDisplaySettingsEx. But unfortunately, SetWindowsHookEx
doesn’t works on WM 5.0, at least it said on some topics. Please, give me any solution for this problem or example code to hook some API function.
wm5: [HKLM\System\GDI\Rotation]
Angle=dword:0
00000000 portrait
0000005a righthanded landscape
0000010e lefthanded landscape
then RegistryNotifyCallback will do
tanks a lot
I will try this way.
But I afraid it will be notified after screen rotation starting.
Adjusting this registry value in regedit tool did't help.
So I suppose this value is changing after rotation is done.
You can delete the start up service of ScreanRotate.
Go to HKLM/Services/ScreanRotate and delete it.
I think before you doing this,you can export it to a reg file
It's not bad idea.
but delete this key leading to system restart for apply
I just try to stop this service.
Not luck : (
This key not present in the registry storage.
I am under WM 5.0
Maybe you talk about some early system.
Hi hoblano, I'm experiencing the same problem, did you find a solution ?
thanks,
Scalposcarno
use task manager 2.7 and stop service...if you know it is service...
same way to stop kbd lights...btw,
I tried, but the result is the same as the one obtained by manually deleting the Screen Rotate voice within the services voices in the registry: avoiding the load of the service providing the icon on the task bar enabling the user to rotate the sceen one or more times by tapping on it.
I still don't understand ... at this point the most probable thing is that the service that rotate the OS screen when rotating by hand the HW screen, is invisible with respect to registry voices and to applications like Task Manager 2.7 or MemMaid. Apart from criticizing the constructor choice (why didn't they thought that someone should have been more comfortable using only one view mode ? e.g. landscape one), is there a way to obtain a list of core services and to avoid one of those to be loaded ? or, otherway, is there a way to intercept the event thrown when manually rotating the screen of the terminal ?
By the way, I'll have to do it with Java ...
thanks all

How to change the "Active Window" Name

Does anyone know how to do this? I have an app idea that im trying to make work that I posted about a few days ago and no one seemed to respond. Im tackling the problem with mortscript and am almost there. I just need to figure out how how to change the spbmobileshell's active window name since it is blank and doesnt have one. It makes my script work for every program....
Is it possible to change this?
If not... Does anyone know how to make a script run that will execute only when mobile shell is active in portrait. waiting for a key board slide and will launch secondtoday... and minimize second today anytime if it is closed to portrait from a landscape position. this may seem a bit tedious, but the idea here is to make a simple script that will allow keyboard slides to open and close apps quick and easily without taking up too many resources
thanks for the help....

Landscape in Diamond 2?

I have searched heaven and hell to find a way to get the D2 running in landscape view, that is for it to switch to landscape view when you rotate the screen. So far I have found apps that allows everything but manilla and its tabs (including home page) run in landscape.
Is there a way to do this?
Lorddeff07 said:
I have searched heaven and hell to find a way to get the D2 running in landscape view, that is for it to switch to landscape view when you rotate the screen. So far I have found apps that allows everything but manilla and its tabs (including home page) run in landscape.
Is there a way to do this?
Click to expand...
Click to collapse
You can make use of the Topaz drivers itself to do auto-rotation. You do not need to install additional application running in background.
There're some registry editings to be done. Nevertheless, you can use this application to help you enter those into the whitelist. You need to soft-reset after inputting all the applications you'd like to auto rotate.
http://forum.xda-developers.com/showthread.php?t=487991
furi_k said:
You can make use of the Topaz drivers itself to do auto-rotation. You do not need to install additional application running in background.
There're some registry editings to be done. Nevertheless, you can use this application to help you enter those into the whitelist. You need to soft-reset after inputting all the applications you'd like to auto rotate.
http://forum.xda-developers.com/showthread.php?t=487991
Click to expand...
Click to collapse
I tried that, along with changescreen. I still can't bet the tabs screens to rotate. I don't know what I am doing wrong.
Lorddeff07 said:
I tried that, along with changescreen. I still can't bet the tabs screens to rotate. I don't know what I am doing wrong.
Click to expand...
Click to collapse
Landscape manila for d2 is more annoying then useful, if you tilt the phone past the tilt point either way (portrait or landscape) it will rotate and take at least half a second to change screen, and it enerally takes more to come back to portrait. This makes it difficult to immediately read stuff or accept calls as the screens changing layout and the buttons end up in different places.
Landscape would only be useful on phones like the pro2 and it's previous variants when you need landscape while the keyboards out. Other than that just make your mail programs etc landscape capable.
There are other threads with reg keys and apps to use, just follow those and see if they give you success.
Cheers,
Scott
Graphics from the manila tabs aka TD2 homescreen are not designed for lanfscape view, therefor its like Scott (post #4) sayd, more annoying than usefull.
Thanks a lot guys. I think I see your point. Funny thing is that it was my recently installed S2U app that drove it home. It was annoying as hell when it kept switching to views.

auto rotate not working in apps and startmenu?

has anyone experienced this...?
autorotation works in some apps like: music and phototab, messaging, opera....
but like the start menu NOT! and also apps like Resco file explorer...
is this possible? to make rotation work in all apps???
Apps rotation
Good point
It should be.
There is a white list that lists which apps auto rotate.
Never used it, but I might need to for this one.
kurniawan77 said:
has anyone experienced this...?
rotation works in some apps like: music and phototab, messaging, opera....
but like the start menu NOT! and also apps like Resco file explorer...
is this possible? to make rotation work in all apps???
Click to expand...
Click to collapse
You might want to look at Gyrator.
You "just" have to add application entries in the registry. Their was a tool that do it for olders phones (Diamond2, etc.). G-Config was its name. The problem is the app using the "stylet entered" event.... That, obviously, cannot be used by our HD2... Maybe the author may change things to work with HD2
alright... i thought i have read it somewhere about the whitelist... but i just can't find it.
One of u knows the .exe for startmenu? to start with...
The sensor whitelist exists on registry keys HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\WhiteList for Window classes or HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\ModuleName for program names.
For instance, sensor can be enabled in the Start Menu (default/honeycomb one) and S2U2 with the following:
Code:
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\WhiteList]
"Start"="MSSTARTMENU"
"S2U2"="S2U2"
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\ModuleName]
"S2U2"="\Program Files\S2U2\s2u2.exe"
Hopefully, Gyrator will work without stylus one day.
Hopefully, Gyrator will work without stylus one day.
Click to expand...
Click to collapse
Gyrator works on HD2 as long as you know the Windows Class Names of apps. Some are given on the website of Gyrator.
Yunabeco said:
Hopefully, Gyrator will work without stylus one day.
Click to expand...
Click to collapse
bartveld said:
Gyrator works on HD2 as long as you know the Windows Class Names of apps. Some are given on the website of Gyrator.
Click to expand...
Click to collapse
He was referring to the fact that you used to be able to "teach" Gyrator a new class/window name by running the app in question and removing the stylus. This prompted Gyrator to get said info from the topmost application. Was a very nice feature. I don't know if there's any spy type applications for windows mobile, but you need one if you don't know this info.
Yes, that particular function was what I was referring to. As for finding out window class names, I'm using Dotfred's Task Manager, which has a tab showing window class names, although it involves looking in a long list instead of just pressing a button while in the window.
EDIT: Correcting my mistake quickly: Tap-holding a process name, tapping Details and choosing the Windows tab shows the windows opened by that particular process. Why I didn't find that out before is beyond me.
alright... tried a few things but no go
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\WhiteList]
Name: Start
String: MSSTARTMENU (Didn't find MSSTARTMENU in HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Rai either.....
and tried
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\ModuleName]
Name: RescoExplorer
String: \Program Files\Resco Explorer\Explorer.exe
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\WhiteList]
Name: RescoExplorer
String: RescoExplorer
But still no go!!
I don't know if this is me just being stupid or just the program.
I have the navipanel activated on my HD2 and can access copilot etc in landscape.
however when I select the dial feature the phone app comes up but it is still in portrait mode.
I installed Gyrator and the phone app does now rotate whenever I turn the phone to landscape or portrait.
But when I call the phone app up while the phone is in landscape it still opens it in portrait.
What I would like to know is is there any way of calling the phone app up and for it to immediately appear in landscape format?
Would using the rotatescreen.exe file be more useful for me?
I hope that makes sense and appreciate any advice you may have.
Paul.
Yunabeco said:
The sensor whitelist exists on registry keys HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\WhiteList for Window classes or HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\ModuleName for program names.
For instance, sensor can be enabled in the Start Menu (default/honeycomb one) and S2U2 with the following:
Code:
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\WhiteList]
"Start"="MSSTARTMENU"
"S2U2"="S2U2"
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\ModuleName]
"S2U2"="\Program Files\S2U2\s2u2.exe"
Hopefully, Gyrator will work without stylus one day.
Click to expand...
Click to collapse
excellent! Thanks that works. Btw, what would be teh modulename and whitelist name for the messaging (SMS/MMS)? I'm assuming for the modulename is TMAIL? What about for whitelist name? THanks again
Works for me too!
Shame there is no nice rotating animation like in photo veiwer but at least it works!
Cheers!
I'm using Zensor2 for auto rotating. Works well for me.
this app is amazing, thanks for the tip!!!
only thing I'm still wondering is how to disable the auto-rotation for the WM6.5 lock screen. I've been googling to find out the window class name but have been unable to find it, and I cant run dotfred task manager once the device is locked- anybody else that might know how to prevent the lock screen from rotating??
thanks a lot in advance!
I upgraded to the HD2 this week from a Tytn 2 and use my phone in my car usually for the sat nav and have the phone set sideways in the holder to give me widescreen.
However, whenever I needed to use the phone on the HD2 the dialer screen would always appear in portrait and so I have had to learn to dial with my head tilted to the side!!!
After posting about my problems with getting the phone app to rotate I did a bit of detective work and think I have fixedd it.
I added the following registry key to whitelist in the GSensor bit of the registry.
Name Data
Phone \Windows\cprog.exe
After a restart voila, the phone dialer will now open up in landscape.
I hope this is helpful to others who want to use the phone in landscape.
Paul
How well does zensor2 work here, and does it autostart with the phone? It is possible to set up exceptions in zensor2?
hi, nice to see that im not the only one expirience problems with it. i switch back to use 'changescreen' app to turn the screen. i used it bevore on athena and it has some real nice options.
its working well on hd2 so i keep it.
regards mad
firstandlast said:
I upgraded to the HD2 this week from a Tytn 2 and use my phone in my car usually for the sat nav and have the phone set sideways in the holder to give me widescreen.
However, whenever I needed to use the phone on the HD2 the dialer screen would always appear in portrait and so I have had to learn to dial with my head tilted to the side!!!
After posting about my problems with getting the phone app to rotate I did a bit of detective work and think I have fixedd it.
I added the following registry key to whitelist in the GSensor bit of the registry.
Name Data
Phone /Windows/cprog.exe
After a restart voila, the phone dialer will now open up in landscape.
I hope this is helpful to others who want to use the phone in landscape.
Paul
Click to expand...
Click to collapse
Thanks! It's helped me!!
firstandlast said:
I upgraded to the HD2 this week from a Tytn 2 and use my phone in my car usually for the sat nav and have the phone set sideways in the holder to give me widescreen.
However, whenever I needed to use the phone on the HD2 the dialer screen would always appear in portrait and so I have had to learn to dial with my head tilted to the side!!!
After posting about my problems with getting the phone app to rotate I did a bit of detective work and think I have fixedd it.
I added the following registry key to whitelist in the GSensor bit of the registry.
Name Data
Phone \Windows\cprog.exe
After a restart voila, the phone dialer will now open up in landscape.
I hope this is helpful to others who want to use the phone in landscape.
Paul
Click to expand...
Click to collapse
I have done this, and it works great... except for when opening the phone app whilst in the Navi Panel.
When the Navi Panel is in Portrait, and you access the phone, it starts in Portrait, but allows you to rotate to landscape. However, when you use Navi Panel in landscape, and access the phone, the phone screen opens in Portrait and does not rotate! I'm sure there is a logical reason, but i'm afraid i'm not that clever...

Full rotation

Could one of you experts guide me on how I'll make my HD2 to rotate in alla directions?? By default it rotates only 90 to the left.
I've "played" with Advanced Config but haven't manage to make it
I've tried locating posts explaining this but had no luck
Thanks in Advance
You can use either:
BSBTweaks (http://forum.xda-developers.com/showthread.php?t=589305) or
ChangeScreen (http://forum.xda-developers.com/showthread.php?t=468488)
I think BSB only allows other screens to rotate portrait to landscape, the OP wants full 360 rotation I think.
Pretty handy for riding rollercoasters
Yes, I'm talking about 360 rotation
THX
install gyrator 2
Dear Oblivion Gyrator is a pain in the *** to setup and I can't see why should I as the device follows the G-Sensor. The problem is that it does so only for 90 to the left and not all around. Any solution to this??
ChangeScreen allows an easy way to apply rotation in all directions in all programs.
Furthermore, and in order to avoid some undesirable rotations in phone, screen lock, camera..., you better add these applications to exceptions: cprog, manila, shell32, gwes, camera, digicompass, services
MarketElf said:
I can't see why should I as the device follows the G-Sensor. The problem is that it does so only for 90 to the left and not all around. Any solution to this??
Click to expand...
Click to collapse
Because HTC decided it would only follow on the left side, period. So, as there's no way to change that, there are programs like Gyrator (messy) or ChangeScreen (a bit less messy) to overcome the limitation. I'm afraid you'll have to do with that. They take a few minutes to configure and you're done, It's not too bad.
But Advanced Config, in the "screen" section, has two parameters that, supposedly, "fix" this. One is for defining if the rotation is fixed and the other arranges the angle by whitch the rotation functions. Unfortunately they don't seem to work
Can I use Changescreen along with Advanced Config and BsB Tweaks??
Yes, from what I can see ChangeScreen will simply override the rotating settings from the other programs.
ChangeScreen is a good alternative, but, like I said, configure the exceptions, otherwise some rotations could be very annoying
Thank you all for your help. Could you please give me a hand with the exceptions?? I.e. camera seems not to be possible to be excepted!!!
Igo8 and lock screen turn the screen off (simply needs to press button to "re-enlight" but it is prety annoying).... Igo anyhow seems to be excepted.
Could you guide me what to write precisely in the exceptions??
Tekflow said:
ChangeScreen allows an easy way to apply rotation in all directions in all programs.
Furthermore, and in order to avoid some undesirable rotations in phone, screen lock, camera..., you better add these applications to exceptions: cprog, manila, shell32, gwes, camera, digicompass, services
Click to expand...
Click to collapse
Do you know how to prevent the lock screen from rotating?
Open changescreen, click show app names, open the program you want to add to exceptions, its name will show up in the middle of the screen. Enter that in the exception list, tick the portrait icon only, done.
Works fine with camera here.
I do think I'll go back to gyrator though, changescreen rotates too "early" to my liking, and this is not configurable.
Thank you. I had tried that before on the Lock Screen without success. For some reason it works now. Maybe I misspelled before.
Run the program.
In "General" tab, check all options available on this page.
In "Exceptions" tab, add the following (each separately): cprog, manila, shell32, gwes, camera, digicompass, services, commanager. Check only the first option for all these applications (usual portrait direction), and save.
Restart.
By the way, since I started using the "Proximity sensor off" application (http://forum.xda-developers.com/showthread.php?t=624206), I disabled the lock screen. It has become useless.
kilrah sensitivity IS configurable.... 3rd tab "Advanced" the slider down the page

Categories

Resources