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 all windows of an application

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
aliasbonux Posted - 02/28/2013 : 08:15:36
Only tested on windows 7

local exe_name = acGetExecutableName(acGetOwnerWindowByPoint(gsx, gsy),0,0)
-- get all windows and search for exe_name
acGetAllWindows(1)
for num, handle in pairs(sp_all_windows) do	
  -- close all application for exe_name
  local exe = acGetExecutableName(handle,0,0)
  if exe == exe_name then
    acCloseApplication(handle, nil, nil) 
  end
end
1   L A T E S T    R E P L I E S    (Newest First)
Rob Posted - 02/28/2013 : 08:55:41
Added to sample scripts: http://www.strokesplus.com/scripts/23

Thanks!

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