Jump to content

Can someone make a mortscript to disable auto-rotate


Recommended Posts

Posted

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

Posted (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 by Juicey
Posted
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

Posted
Perfect! That works like a charm, you sir, are a legend

And you Sir, are welcome ;)

Guest new2city
Posted

Great, can use it work on TCPMP as well... double thanks to you too

Posted

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
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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

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