This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
 All Forums
 Lua Scripts
 General Action Scripts
 CLOSE TAB/WINDOW/GUI CUSTOM FOR ALL YOU CHOOSE

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
xpectmore Posted - 05/29/2014 : 08:56:23
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
1   L A T E S T    R E P L I E S    (Newest First)
wOxxOm Posted - 08/21/2014 : 20:57:53
Here's the one I'm using for everything:
--send WM_SYSCOMMAND, SC_CLOSE
acPostMessage(acGetParentWindowByPoint(gsx, gsy), 0x0112, 0xF060, 0)

StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000