Guest Michael122w Posted October 25, 2008 Report Posted October 25, 2008 Hi Guys, I was sick of having some of my omnia screens flip back and forth from the auto screen rotation. I found it particularly annoying on the home screen and S2U2 - where I would pick up my phone from a desk or from my pocket and wait till it figured out which way I was holding the phone. So I wanted some way of controlling rotation for those screens. I have written the following short script which checks which screen your on every second and will turn off the auto rotate if you are using S2P, S2U2 or on the home screen. It has a quick check to make sure you want to initialise the script - as the only way to stop it is to soft reset :lol: It works perfectly for the samsung today screens and other standard plug ins. If(question("Control rotation?","UnRotate","OkCancel")=1) endif while( 1 ) If ( wndActive( "Desktop" ) or wndActive( "S2U2" ) or wndActive( "S2p" ) ) RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",0 ) Else RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",1 ) EndIf Sleep( 1000 ) endwhile[/codebox] Unfortunately, I cant get it to work for Manila 2D home. Which is a pain, as it is the one I am using at the moment! I think the trouble with Manila 2D is that it doesn't bother to name the screen which its using to cloak the Desktop. So I would have to use wndActive("") - which interacts with all the windows default screens. Does anyone have any bright ideas to figure out if Manila 2D is the active window? Michael
Guest Paul (MVP) Posted October 25, 2008 Report Posted October 25, 2008 Why not do the flipside, and ONLY rotate in specific apps? P
Guest Michael122w Posted October 25, 2008 Report Posted October 25, 2008 Why not do the flipside, and ONLY rotate in specific apps? P I accept your point :lol: I was trying to avoid controlling lots of programs - give I only wanted to stop three! But shall give it a try with the ones I need rotation on and see how it works. Thanks Michael.
Guest finaldestiny Posted October 25, 2008 Report Posted October 25, 2008 While you're digging through those settings, did you happen to find anything that can cause the rotation to speed up? I wouldn't mind the constant flipping if it did so quickly enough for me to not really notice the delay.
Guest dasa Posted October 25, 2008 Report Posted October 25, 2008 S2P now auto rotates into landscape mode so you can flick through the albums the only thing that is Peeing me off is the pin lock in landscape is too small i don't even know where the stylus is wanted it to be bigger can anyone do a skin or hold it in portrait mode with may be auto accept on entry of last number of four digit pin?
Guest Michael122w Posted October 26, 2008 Report Posted October 26, 2008 (edited) While you're digging through those settings, did you happen to find anything that can cause the rotation to speed up? I wouldn't mind the constant flipping if it did so quickly enough for me to not really notice the delay. There is a registry key under HKLM\System\GWES\UsefastRotation which should be set to 1. But to be honest- when I tried changing this value I didn't notice much difference @Dasa - Paul's idea of changing the mortscript to only work on those programs which you want to change might fix the pin lock. I think there are three conditions which you would probably want to have in the mort script: 1) default is Portrait and no screen rotation 2) specific Landscape and no screen rotation 3) specific auto screen rotation I think if you controlled those with rotation and forced the rest into portrait then you will end up with the large pin entry screen (I agree its too small in landscape!) I will try and dig out the landscape/portrait registry key - after that the rest should be easy. Edit: OK the following mortscript reverses the concept around. Which gives a default of don't rotate unless I explicitly tell it to rotate. It also allows either default landscape to be identified. If(question("Control rotation?","UnRotate","OkCancel")=1) endif while( 1 ) If ( wndActive( "Opera" ) or wndActive( "Touch Player" ) or wndActive( "Media Album" ) or wndActive( "S2P" )) RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",1 ) Elseif (wndActive( "TomTom Navigator" )) RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",o ) Rotate(90) Else RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",o ) Rotate(0) EndIf Sleep( 1000 ) endwhile[/codebox] All looks good....... except: there are a range of windows which don't seem to be identified eg the touch player library which will be forced into portrait even if touch player itself is in landscape. Other problems - Opera changes the name of the active window to be the name of the website! eg "Google" - so the script will treat the "Google" window as not specifically identified, even though Opera is! Finally it seems to fight with the BisCard reader. Edited October 26, 2008 by Michael122w
Guest Patestinglang Posted October 26, 2008 Report Posted October 26, 2008 Hi Guys, I was sick of having some of my omnia screens flip back and forth from the auto screen rotation. I found it particularly annoying on the home screen and S2U2 - where I would pick up my phone from a desk or from my pocket and wait till it figured out which way I was holding the phone. So I wanted some way of controlling rotation for those screens. I have written the following short script which checks which screen your on every second and will turn off the auto rotate if you are using S2P, S2U2 or on the home screen. It has a quick check to make sure you want to initialise the script - as the only way to stop it is to soft reset :lol: It works perfectly for the samsung today screens and other standard plug ins. If(question("Control rotation?","UnRotate","OkCancel")=1) endif while( 1 ) If ( wndActive( "Desktop" ) or wndActive( "S2U2" ) or wndActive( "S2p" ) ) RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",0 ) Else RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",1 ) EndIf Sleep( 1000 ) endwhile[/codebox] Unfortunately, I cant get it to work for Manila 2D home. Which is a pain, as it is the one I am using at the moment! I think the trouble with Manila 2D is that it doesn't bother to name the screen which its using to cloak the Desktop. So I would have to use wndActive("") - which interacts with all the windows default screens. Does anyone have any bright ideas to figure out if Manila 2D is the active window? Michael wow good thing your cellphone's sensor is working. Mine? its not working after upgraded to my current version. pda:i900dxhh1/dxhh1, phone:i900dxhh1.
Guest Omnia_1 Posted October 26, 2008 Report Posted October 26, 2008 wow good thing your cellphone's sensor is working. Mine? its not working after upgraded to my current version. pda:i900dxhh1/dxhh1, phone:i900dxhh1. Have you tried reflashing it?
Guest ivanxxx Posted November 1, 2008 Report Posted November 1, 2008 There is a registry key under HKLM\System\GWES\UsefastRotation which should be set to 1. But to be honest- when I tried changing this value I didn't notice much difference @Dasa - Paul's idea of changing the mortscript to only work on those programs which you want to change might fix the pin lock. I think there are three conditions which you would probably want to have in the mort script: 1) default is Portrait and no screen rotation 2) specific Landscape and no screen rotation 3) specific auto screen rotation I think if you controlled those with rotation and forced the rest into portrait then you will end up with the large pin entry screen (I agree its too small in landscape!) I will try and dig out the landscape/portrait registry key - after that the rest should be easy. Edit: OK the following mortscript reverses the concept around. Which gives a default of don't rotate unless I explicitly tell it to rotate. It also allows either default landscape to be identified. If(question("Control rotation?","UnRotate","OkCancel")=1) endif while( 1 ) If ( wndActive( "Opera" ) or wndActive( "Touch Player" ) or wndActive( "Media Album" ) or wndActive( "S2P" )) RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",1 ) Elseif (wndActive( "TomTom Navigator" )) RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",o ) Rotate(90) Else RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",o ) Rotate(0) EndIf Sleep( 1000 ) endwhile[/codebox] All looks good....... except: there are a range of windows which don't seem to be identified eg the touch player library which will be forced into portrait even if touch player itself is in landscape. Other problems - Opera changes the name of the active window to be the name of the website! eg "Google" - so the script will treat the "Google" window as not specifically identified, even though Opera is! Finally it seems to fight with the BisCard reader. Wow, this looks like a good work and would be very, very usefull, especially for the games that have troubles with auto screen rotation.. but one bad thing is, I dont know what is mortscript and how to get it work. Is it a part of s2u or homescreen or winmo ? Where is it and how can I edit it or what should I do totally?? Thnx in advance and sorry for my bad english and I want to emphasis that it is very nice to customize autorotation and begging to developers to turn it into a simple program :'((
Guest Helix Posted November 1, 2008 Report Posted November 1, 2008 While you're digging through those settings, did you happen to find anything that can cause the rotation to speed up? I wouldn't mind the constant flipping if it did so quickly enough for me to not really notice the delay. I agree, if it was faster, I wouldnt mind it rotating when it wasnt meant to etc. I like the ability to auto-rotate in other programs. The ability to rotate whilst even doing some of the most basic tasks like writing a message, is one of the reason why I liked the Omnia. Especially when comparing the limited features of the rotate on the iPhone 3G.
Guest ivanxxx Posted November 2, 2008 Report Posted November 2, 2008 Please could anyone explain how do we edit or use this mortscript thing??
Guest LGDP Posted November 3, 2008 Report Posted November 3, 2008 Please could anyone explain how do we edit or use this mortscript thing?? I suppose just create a file on your computer with notepad and copy and paste the script. Then modify the apps you want or not... Then save as .mrsc Then make sure you have Mortscript installed on your Phone... Then copy this file using ActiveSync to /Windows/Startup Then Soft Reset (or just launch manually the file by going to Explorer and clicking on it...)
Guest JEJE2 Posted November 3, 2008 Report Posted November 3, 2008 Really a great work, thanks a lot! I wish there was a script to disable cleartype, anyone (I have not found a key that works in the registry)? And... thanks again Michael! Jérôme
Guest pp56825 Posted November 3, 2008 Report Posted November 3, 2008 is this mort script solution power consuming? has anyone observe battery problems?
Guest ivanxxx Posted November 3, 2008 Report Posted November 3, 2008 I suppose just create a file on your computer with notepad and copy and paste the script. Then modify the apps you want or not... Then save as .mrsc Then make sure you have Mortscript installed on your Phone... Then copy this file using ActiveSync to /Windows/Startup Then Soft Reset (or just launch manually the file by going to Explorer and clicking on it...) Thanks for your reply fellow :lol: :D
Guest wasraw Posted December 5, 2008 Report Posted December 5, 2008 I like the rotation of the screen, just not while S2U2 is up because 99% of the time I'm unlocking it in 1 kind orientation. PLUS, as I lock the phone and put it in my pocket, it flips 180 degrees upside down. During this transition, the screen will go from Portrait -> Landscape -> Upside down portrait. It's at that point everything gets wonky. The entire screen and slider get all distorted and when I press the key to awake, the slider is hanging off the side of the screen so it's impossible to unlock. I have to play a puzzle game of rotations to get the screen correct and slider fully visible/functional. My question is: Is there a fix for this OR alternatively, what kind of effect does constantly running a script like the aforementioned in the background have on the processor and battery? Will I notice a performance hit or drain my batt quicker? Thanks Thanks.
Guest Michael122w Posted December 5, 2008 Report Posted December 5, 2008 I like the rotation of the screen, just not while S2U2 is up because 99% of the time I'm unlocking it in 1 kind orientation. PLUS, as I lock the phone and put it in my pocket, it flips 180 degrees upside down. During this transition, the screen will go from Portrait -> Landscape -> Upside down portrait. It's at that point everything gets wonky. The entire screen and slider get all distorted and when I press the key to awake, the slider is hanging off the side of the screen so it's impossible to unlock. I have to play a puzzle game of rotations to get the screen correct and slider fully visible/functional. My question is: Is there a fix for this OR alternatively, what kind of effect does constantly running a script like the aforementioned in the background have on the processor and battery? Will I notice a performance hit or drain my batt quicker? Thanks Thanks. The mort script will work, and isn't too bad on battery. But a better solution is to install qbus' RotationService which is an executable which sits in the background and doesn't consume as any power while not in use. You can just pop S2U2 onto the blacklist: http://www.modaco.com/content/i900-omnia-h...otationservice/
Guest webcrush Posted December 5, 2008 Report Posted December 5, 2008 I got tired of this as well, but for lots of apps. I disabled the auto-rotate and assigned to the hold feature of the main menu button.
Guest Cutefox Posted January 19, 2009 Report Posted January 19, 2009 Hey guys, i know there is rotationservice now to solve this issue of not allowing autorotation at certain progs.. now what if we make a prog that activates and this activates the registry tweak for autorotation. so rather than having a prog that auto does it, i prefer to have a prof link to a button which i can press when i want auto rotation to works and disable it after im finish with it. can that be done?
Guest Michael122w Posted January 19, 2009 Report Posted January 19, 2009 Hey guys, i know there is rotationservice now to solve this issue of not allowing autorotation at certain progs.. now what if we make a prog that activates and this activates the registry tweak for autorotation. so rather than having a prog that auto does it, i prefer to have a prof link to a button which i can press when i want auto rotation to works and disable it after im finish with it. can that be done? Just make a mscr file which checks the registry value and changes it appropriately: If ( RegRead ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation") =1) RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",0 ) Else RegWriteDWord ( "HKCU", "ControlPanel\MotionSensor", "AutoOrientation",1 ) EndIf [/codebox] I haven't tested this code so let me know if it doesn't work! Then create a short cut to the .mscr file in the Windows\Start Menu\Programs - I use Total Commander for creating links. You will be then able to use the Omnia's Button mapper to assign it to a button. It should toggle between the two states each time the button is pressed. Michael
Guest Cutefox Posted January 19, 2009 Report Posted January 19, 2009 I tired that and paste it onto a text file and rename it into mscr.. it didnt work. i got an error.. can you use the default notepad in winxp? can you post the mscr file in here.. thanks man.
Guest Cutefox Posted January 19, 2009 Report Posted January 19, 2009 I managed to do it.. the text file somehow format it wrongly. anyway after i create a link, i cant assign it to a button though. it kept saying error when trying to launch the link.
Guest Michael122w Posted January 19, 2009 Report Posted January 19, 2009 I managed to do it.. the text file somehow format it wrongly. anyway after i create a link, i cant assign it to a button though. it kept saying error when trying to launch the link. Hey there - what does the error say? I have checked the Mortscript that I posted against the manual and it should work OK. Which version of Mortscript have you installed (as this should work with V4.0)? Cheers Michael
Guest Cutefox Posted January 19, 2009 Report Posted January 19, 2009 i use aebutton plus, somehow wouldnt work with mortscript. i had to assign it to non aebutton plus buttons..
Guest yiitcakir Posted January 20, 2009 Report Posted January 20, 2009 there is an option to turn off the screen rotation when the device is locked in s2u2 if I'm not wrong
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now