Old 12-16-2018, 01:41 PM   #1
PelF
Human being with feelings
 
PelF's Avatar
 
Join Date: Mar 2013
Posts: 181
Default Shortcut for closing all fx windows.

Hi, existing any action or script that closes all track and item fx windows?
Many thanks...
PelF is offline   Reply With Quote
Old 12-16-2018, 01:44 PM   #2
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

Coachz is online now   Reply With Quote
Old 12-16-2018, 01:51 PM   #3
PelF
Human being with feelings
 
PelF's Avatar
 
Join Date: Mar 2013
Posts: 181
Default

I tried it all. None of these actions will close Items FX windows.
PelF is offline   Reply With Quote
Old 12-16-2018, 01:52 PM   #4
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC
Posts: 12,770
Default

hmmmm. sorry about that.
Coachz is online now   Reply With Quote
Old 12-16-2018, 04:59 PM   #5
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by PelF View Post
I tried it all. None of these actions will close Items FX windows.
Same here, This should do the trick, tested using js_ReaScriptAPI v0.951, REAPER v5.963
Code:
-- REQUIRES: js_ReaScriptAPI, https://forum.cockos.com/showthread.php?t=212174
-- If using REAPER v5.96 use js_ReaScriptAPI v0.951. 
-- v0.961 requires REAPER v5.97 or current development pre-release.

windows = {"FX: ", "JS: ", "VST: ", "VSTi: ", "VST3: ", "VST3i: ", "DX: ", "DXi: "} -- partial window names

hWnd_array = reaper.new_array({}, 100)
for i = 1, #windows do
  reaper.JS_Window_ArrayFind(windows[i], false, hWnd_array)
  handles = hWnd_array.table()
  for j = 1, #handles do
    hWnd = reaper.JS_Window_HandleFromAddress(handles[j])    
    if reaper.JS_Window_GetParent(hWnd) == reaper.GetMainHwnd() then
      reaper.JS_WindowMessage_Post(hWnd, "WM_CLOSE", 0,0,0,0) 
    end
  end 
end

Last edited by Edgemeal; 12-16-2018 at 10:56 PM. Reason: Add GetParent to only close windows in REAPER!
Edgemeal is offline   Reply With Quote
Old 12-16-2018, 08:36 PM   #6
57JR
Human being with feelings
 
Join Date: Feb 2009
Location: Motown
Posts: 60
Default

Perhaps I'm not understanding, but isn't it ctrl alt F
57JR is offline   Reply With Quote
Old 12-16-2018, 09:08 PM   #7
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

@Edgemeal pretty cool, gonna try that tomorrow!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 12-16-2018, 10:16 PM   #8
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by 57JR View Post
Perhaps I'm not understanding, but isn't it ctrl alt F
That closes ALL floating windows!
Edgemeal is offline   Reply With Quote
Old 12-17-2018, 03:20 AM   #9
PelF
Human being with feelings
 
PelF's Avatar
 
Join Date: Mar 2013
Posts: 181
Default

It works great! Many thanks Edgemeal!

Do you think it would be possible to solve this script in this way too?
https://forum.cockos.com/showthread.php?t=202348
PelF is offline   Reply With Quote
Old 12-17-2018, 03:41 AM   #10
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by PelF View Post
It works great! Many thanks Edgemeal!

Do you think it would be possible to solve this script in this way too?
https://forum.cockos.com/showthread.php?t=202348
No, that is totally different (and beyond my skill level).
Best of luck!
Edgemeal is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.