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