Jump to content



Photo

Resolution switcher (mainly for Win8 on the HTC Shift and similar devices, but should be easy to modify for whatever)


  • Please log in to reply
3 replies to this topic

#1 AdmiralAlkex

AdmiralAlkex

    I'm on a boat

  • MVPs
  • 4,490 posts

Posted 09 April 2012 - 06:11 PM

The original resolution switcher by HTC works good on earlier Windows, but has two problems on Win8.
  • When activated it creates a window telling the current resolution. It is given focus and thus forces Metro back to the desktop.
  • It switches between the native 800x480 and 1024x600 which is to low to run Metro apps.
To fix this I started with a simple script that switches to 1152x864 with a window that displays the resolution without grabbing focus.
Later I added some extras:
  • Option to skip the window altogether
  • Separate resolution in desktop and Metro
  • A simple installer/uninstaller for the HTC Shift (or other devices that use a synaptics touchpad in the same matter, check the code).

Code moved to attachment. See next post for screenshots.


Attached File  ResSwitch source.rar   11.78K   149 downloads
  • The .au3 itself
  • Modified _RegFunc.au3 (removed duplicate const's)
  • Modified TaskDialog.au3 (removed duplicate const's and commented WinXP (+ earlier) code to reduce file size)
Attached File  ResSwitch.rar   332.71K   147 downloads (previous downloads: 51)
  • A compiled .exe (if you don't have AutoIt? lol)
  • .bat file calling the installer/uninstaller function (optional)
  • .ini file containing the standard settings (optional)

Edited by AdmiralAlkex, 25 July 2012 - 01:32 AM.

  • Manadar and JScript like this







#2 AdmiralAlkex

AdmiralAlkex

    I'm on a boat

  • MVPs
  • 4,490 posts

Posted 10 April 2012 - 12:41 AM

I made a thread in the HTC Shift subsection at xda-developers, Another resolution changer (the biggest and the only Shift forum I know).
Anyone know of any other forums I should post this in?

Some screenshots:
Posted Image
Posted Image

(notice how the font is smooth as a baby's butt thanks to _GDIPlus_SetTextRenderingHint())

Also, do I get bonus points for the first example script that uses Null? ;) (even if it's just used for my pleasure and is not really needed at all?)

#3 AdmiralAlkex

AdmiralAlkex

    I'm on a boat

  • MVPs
  • 4,490 posts

Posted 29 July 2012 - 04:25 AM

-></( UPDATE )><-
  • I changed the script to use the IAppVisibility API to detect Metro instead of the previous kludge. Now also detects Metro apps and not just the Start screen. I don't think I mentioned that limitation before. Oops!
  • Does not jump to a lower resolution while in Metro (by default). Metro copes with resolution changes by closing all applications. Very annoying.
I have not done any work on supporting multiple monitors, but it kinda works as long as the internal display is the "main" one.

Download from first post.

#4 JScript

JScript

    Goodbye everybody, I got tired of this system adopted here!

  • Active Members
  • PipPipPipPipPipPip
  • 1,062 posts

Posted 29 July 2012 - 05:17 AM

Nice work, thanks 4 sharing!
Although I have not tested in Win8...

Regards,

João Carlos.
http://notebook.forumais.com (Forum Maintenance Notebooks and Desktop)http://autoitbrasil.com/ (AutoIt v3 Brazil!!!)
Spoiler

Posted Image Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!       





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users