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
 CLOSE TAB/WINDOW/GUI CUSTOM FOR ALL YOU CHOOSE
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xpectmore

14 Posts

Posted - 05/29/2014 :  08:56:23  Show Profile
I PUT THIS IN Global Actions .. Window /Tab - Close


local iHandle = acGetOwnerWindowByPoint(gsx, gsy)
acActivateWindow(iHandle,0,0)
exnm=acGetExecutableName(iHandle,0,0)
if (
(exnm=="TOTALCMD64.EXE")
or(exnm=="TOTALCMD.EXE")
or(exnm=="explorer.exe")--windows explorer can be close with ctrl + w
or(exnm=="iexplore.exe") -- internet explorer have tabs 
or(exnm=="firefox.exe")
or(exnm=="waterfox.exe")  -- the magic x64 version of firefox , da best browser on the world
or(exnm=="mshta.exe")--for .hta scripts for custom dhtml ,if you have
or(exnm=="chrome.exe")
or(exnm=="opera.exe")

or(exnm=="sublime_text.exe")--text editors
or(exnm=="editplus.exe")
-- you are free to add anything eg:or(exnm=="anything.exe")
-- if you don't know the name of executable whitch work with ctrl+w 
-- drag a stroke line over : "\" and look in the right bottom corner
-- and read the executable name form the baloon
)then
acSendKeys("^w")
else-- anythingelse without tabs ...
acSendKeys("%{F_4}")-- close anything else =   alt + f4
end
--acMessageBox(exnm,"",nil)
acDisplayBalloonTip( exnm,"Done for:", 1)



Constantin

wOxxOm

5 Posts

Posted - 08/21/2014 :  20:57:53  Show Profile
Here's the one I'm using for everything:
--send WM_SYSCOMMAND, SC_CLOSE
acPostMessage(acGetParentWindowByPoint(gsx, gsy), 0x0112, 0xF060, 0)
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