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
 Move Window down by 1/3 Screen or Restore
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Luna

6 Posts

Posted - 12/21/2014 :  13:31:48  Show Profile
-- 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)

Luna

6 Posts

Posted - 12/21/2014 :  17:34:58  Show Profile
sharing the idea
Go to Top of Page
  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