Wednesday 15 June 2011

How do I use AutoHotKey to expand window across dual monitors with Win 7 taskbar on left? -


Jeff Accross for Credit I can not understand how it can change so that it "respect" the Windows taskbar, I place it on the left side of my left monitor. I have several custom tool bars in the Win 7 taskbar and so it is two inches wide. The code below monitors both the current window max, but it is a part of the extension window, so below your taskbar.

  + # Top :: WinGetActiveTitle, title WinRestore,% title% SysGet, x 1, 76 SysGet, Y1, 77 SysGet, width, 78 SysGet, height, 79 WinMove,% title% X1, Y1, width, height return   

I'm sure I'm somewhat simpler here but it's one of those days: -)

Here's a screenshot Which shows how the window is under my taskbar, please look in the upper left corner where the most obvious is that the maximum window is below:

window Screenshot of Mr. "taskbar"> </ p> </ div> <p> <div class = "post-text" itemprop = "text"> <p> You <code> Monitrvrkraria </. To get all the information monitored in the code: </ p> <pre> <code> SysGet, MonitorCount, MonitorCount SysGet., MonitorPrimary, MonitorPrimary message = "Monitor Count:` t "MonitorCount" `nPrimary Monitor:` t "MonitorPrimary loop,% MonitorCount% {SysGet, MonitorName, MonitorName,% A_Index% SysGet, monitor, monitor,% A_Index% SysGet , MonitorWorkArea, MonitorWorkArea,% A_Index% Message = "` n`nMonitor: `T #

Once you find the correct monitor that you want to use, the value for coordinates use:

  SysGet, MonitorWorkArea, MonitorWorkArea, 2 MsgBox% MonitorWorkAreaLeft   

edit

Grab this value and come to the window Ega each time you run it.

  SysGet, Monitrvrkr area, Monitrvrkr area, 1; Left monitor X1: = Monitrvrkrarelait Y1: = Monitrvrkrareop SysGet, Monitrvrkr area, Monitrvrkr area, 2; the monitoring the width of the right: = MonitorWorkAreaRight - X1 Height: = MonitorWorkAreaBottom WinGetActiveTitle, title WinMove,% title ,,% X1,% Y1,% width, height%    

No comments:

Post a Comment