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

 All Forums
 Lua Scripts
 General Action Scripts
 2-in-1 control -- go up a folder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Luna

6 Posts

Posted - 12/21/2014 :  15:29:06  Show Profile  Reply with Quote
-- Define Gesture (up)

-- For Win7/8
-- directory control
-- If current windows is Explorer window,
-- then "go Up" a folder level(different than go back)

-- Stretch window control
-- otherwise, make this current windows stretch up
-- to fit the screen (width not change)

local iWindow = acGetForegroundWindow()
local iProgram = acGetExecutableName(iWindow, 0, 0)

if iProgram == "explorer.exe" then
acSendKeys("%{UP}")
else
acSendKeys("@+{UP}")
end
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000