Guest 3shirts Posted September 30, 2008 Report Posted September 30, 2008 I want a simple script that disables auto-rotate, runs a game then re-enables when you close the game. Can someone do it for me or show me how, I'm not familiar with MortScript scripting
Guest Juicey Posted September 30, 2008 Report Posted September 30, 2008 (edited) Not to difficult.. should be along the lines of this: # Disable auto orientation regWriteDword HKCU,"ControlPanel\MotionSensor","AutoOrientation",0 # Run program and wait for it to finish RunWait("\Full\path\to\program.exe") # Enable auto orientation regWriteDword HKCU,"ControlPanel\MotionSensor","AutoOrientation",1 Change the path to the program you want to run, and save these lines as a .mscr file. The Omnia will lock to the orientation it's in at the moment of script execution. Edited September 30, 2008 by Juicey
Guest 3shirts Posted September 30, 2008 Report Posted September 30, 2008 Not to difficult.. should be along the lines of this: # Disable auto orientation regWriteDword HKCU,"ControlPanel\MotionSensor","AutoOrientation",0 # Run program and wait for it to finish RunWait("\Full\path\to\program.exe") # Enable auto orientation regWriteDword HKCU,"ControlPanel\MotionSensor","AutoOrientation",1 Change the path to the program you want to run, and save these lines as a .mscr file. The Omnia will lock to the orientation it's in at the moment of script execution. Perfect! That works like a charm, you sir, are a legend
Guest Juicey Posted September 30, 2008 Report Posted September 30, 2008 Perfect! That works like a charm, you sir, are a legend And you Sir, are welcome ;)
Guest new2city Posted September 30, 2008 Report Posted September 30, 2008 Great, can use it work on TCPMP as well... double thanks to you too
Guest 3shirts Posted September 30, 2008 Report Posted September 30, 2008 Would you happen to know the code I need to change the mouse behaviour too? So I can switch it to mouse mode and back?
Guest Michael122w Posted September 30, 2008 Report Posted September 30, 2008 Not to difficult.. should be along the lines of this: # Disable auto orientation regWriteDword HKCU,"ControlPanel\MotionSensor","AutoOrientation",0 # Run program and wait for it to finish RunWait("\Full\path\to\program.exe") # Enable auto orientation regWriteDword HKCU,"ControlPanel\MotionSensor","AutoOrientation",1 Change the path to the program you want to run, and save these lines as a .mscr file. The Omnia will lock to the orientation it's in at the moment of script execution. Thanks Juicey. Its nice to have some control over the rotation. I wonder if Samsung is planning to include a program to control which software the auto rotation works on. I saw something like this released for the diamond the other day - it woulld make the device so much more usable.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now