This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 Enhanced App To Next Monitor Script
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rob

USA
2615 Posts

Posted - 03/01/2012 :  09:19:52  Show Profile  Visit Rob's Homepage
This script adds a couple nice additions to the Next Monitor action. It restores the window first (in case it's maximized), which is nice if you have two monitors with different resolutions. Then sends it to the next monitor, maximizes and activates it, and finally moves the mouse cursor to be in the center of the screen to which the window was sent.


local wnd = acGetOwnerWindowByPoint(gsx, gsy)
acRestoreWindow(wnd,0,0)
acSendWindowToNextMonitor(wnd,0,0)
acMaximizeWindow(wnd,0,0)
acActivateWindow(wnd,0,0)
local newX = (acGetWindowLeft(wnd,0,0)+acGetWindowRight(wnd,0,0)) / 2
local newY = (acGetWindowBottom(wnd,0,0)+acGetWindowTop(wnd,0,0)) / 2
acMouseMove(newX, newY)
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000