views:

25

answers:

1

Hey everyone,

I currently have a HTPC connected to a plasma in my living room, and I've had a few issues with image retention. While browsing the web, etc. for an extended period of time I'll run into the issue. However, it looks like it should be relatively easy to set up a script with AutoHotKey to resize the window automatically on a timer. Could anyone help me get started on a script to accomplish this task? (Also open to any other ideas)

Thanks!

A: 

Hi,

I am working on the same problem.  Here is a script that Opens and centers the windows calculator based of your current screen size.  I am still figuring everything out, but maybe this will get you started.  

Here's the script.

;This script opens and centers the calculator on your screen.

NoTrayIcon

Run, calc.exe WinWait, Calculator WinGetPos,,, Width, Height, %WinTitle% WinMove, %WinTitle%,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2) Return

Hope this helps,

Rodney