-- Define Mouse Gesture Direction (swipe Down) -- Swipe window down by 1/3 screen or Restore to the top
local hScreen = acGetMonitorFromPoint(gsx, gsy) local hScreenHeight = acGetMonitorBottom(hScreen, 1) - acGetMonitorTop(hScreen, 1)
local hFirstWindow = acGetOwnerWindowByPoint(gsx, gsy) local hFirstWindowTop = acGetWindowTop(hFirstWindow) local hFirstWindowLeft = acGetWindowLeft(hFirstWindow) local hSwipePortion = 3 local hFirstWindowSize = (hScreenHeight-(hScreenHeight/hSwipePortion))+acGetMonitorTop(hScreen, 1)
if hFirstWindowTop == hFirstWindowSize then hFirstWindowTop = 0 else hFirstWindowTop = hFirstWindowSize end
-- acActivateWindow(hFirstWindow, 0, 0, 0) -- Activate Current Window (personal choice, option) acMoveWindow(hFirstWindow, 0, 0, hFirstWindowLeft, hFirstWindowTop)
|