|
|
|
11-22-2016, 08:09 AM
|
#1
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,268
|
option to disable Reload ReaScript prompt in IDE
The internal editor in the IDE is good for small scripts or a quick test of something, but I'm not using the internal editor most of the times, I only use the IDE to debug variables.
It would be great if we don't have to constantly click on the dialog that asks you to reload or not when the script is saved externally. When you have to click on it 1000 times a day it's not funny.
Maybe adding an option to hide the editor and just keep the debug with the variables, so then it wouldn't need to ask to reload because restarting the script is always loading latest version.
Last edited by heda; 08-13-2022 at 10:03 AM.
Reason: edited title
|
|
|
11-22-2016, 11:28 AM
|
#2
|
Human being with feelings
Join Date: Aug 2007
Location: Near Cambridge UK and Near Questembert, France
Posts: 22,754
|
In my day, IDE was a type of hard drive interface protocol.
What is it these days?
No, seriously.
I am crap with, and don't like, TLAs so I DO need help interpreting them.
__________________
Ici on parles Franglais
|
|
|
11-22-2016, 11:41 AM
|
#3
|
Human being with feelings
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
|
Integrated? Development Environment
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
|
|
|
11-22-2016, 03:53 PM
|
#4
|
Human being with feelings
Join Date: Aug 2007
Location: Near Cambridge UK and Near Questembert, France
Posts: 22,754
|
Semi - educated guess, DS? Or are you hiding your light under a bushel as usual?
__________________
Ici on parles Franglais
|
|
|
11-23-2016, 03:38 AM
|
#5
|
Human being with feelings
Join Date: May 2006
Location: Surrey, UK
Posts: 19,681
|
Well, the bushels were just sitting round doing nothing, so I'm glad I found a use for them.
(I had to Google the phrase to find the origin and it does seem a bit of an odd parable.)
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
|
|
|
01-08-2020, 06:59 AM
|
#6
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
|
Bump! Very good idea, since I mostly use an external editor but would still to be able to see the debug info.
|
|
|
01-08-2020, 08:54 AM
|
#8
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,268
|
thanks... yes this would be great. the prompt interrupts all the time.
option 1) a button in the IDE window to completely hide the editor part of the window, so the prompt doesn't need to happen.
option 2) maybe easier, an option in preferences or somewhere to automatically always reload on focus. so no prompt and always reload.
|
|
|
01-08-2020, 09:28 AM
|
#9
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
Even though I code within it, I know plenty who use Sublime, etc. This would be awesome to have for them.
|
|
|
01-08-2020, 01:36 PM
|
#10
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,921
|
Quote:
Originally Posted by heda
option 2) maybe easier, an option in preferences or somewhere to automatically always reload on focus. so no prompt and always reload.
|
+1
In the meantime make an app (Exe, Autohotkey or whatever) that runs in the background and auto answers the dialog for you, Heres one I made to auto answer Yes to the "Reload ReaScript?" dialog, vb.net & Win32 code... (Windows 10 English / REAPER v6.02)
Code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim hwnd = FindWindow("#32770", "Reload ReaScript?")
If Not hwnd.Equals(IntPtr.Zero) Then ' dialog window found
Dim yes_butn = GetDlgItem(hwnd, 6) ' Button control IDs: 6=YES, 7=NO
If Not yes_butn.Equals(IntPtr.Zero) Then
SendMessage(yes_butn, BM_CLICK, 0, 0) ' click yes button.
End If
End If
End Sub
EDIT: Also possible in Lua w/ Julian's js_ReaScriptAPI extension,
Code:
-- Auto answer Yes to Reload ReaScript window.lua
function Main()
local hwnd = reaper.JS_Window_FindTop("Reload ReaScript?", true)
if hwnd then -- dialog window found
local yes_butn = reaper.JS_Window_FindChildByID(hwnd, 6) -- Button control IDs: 6=YES, 7=NO
if yes_butn then
reaper.JS_WindowMessage_Send(yes_butn, "0x00F5", 0,0,0,0) -- click yes button.
end
end
reaper.defer(Main)
end
Main()
Last edited by Edgemeal; 02-19-2022 at 09:00 AM.
|
|
|
11-14-2020, 04:19 AM
|
#11
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,268
|
Quote:
Originally Posted by Edgemeal
+1
EDIT: Also possible with Lua script w/Julian's extension,
|
hey Edgemeal !
I totally missed your edit about using JSAPI...
this is great. it works perfectly. I changed it to the No button (hwnd, 7)
Thank you!
|
|
|
11-14-2020, 10:47 AM
|
#12
|
Human being with feelings
Join Date: Sep 2008
Location: Sweden
Posts: 7,432
|
Even with Edgemeal's classy ReaScript, an option to not at all show the editor part, only the debug part with the variables, would still be good.
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
|
|
|
10-27-2021, 02:29 PM
|
#13
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,268
|
I can't get the lua one to work on Linux
I think it all goes well until
Code:
reaper.JS_WindowMessage_Send(yes_butn, "0x00F5", 0,0,0,0) -- click yes button.
I can't find 0x00F5 in the swell-types.h
|
|
|
10-28-2021, 02:24 AM
|
#14
|
Human being with feelings
Join Date: Mar 2015
Location: Mainland China
Posts: 157
|
Quote:
Originally Posted by heda
I can't get the lua one to work on Linux
|
JS API has some limit in Linux such as CAN NOT get third party plugin ui's button HWDN. I use xdotool to do what i want(no defer).
REAPER IDE's behavior change will be a better way. I love this FR.
|
|
|
10-28-2021, 02:01 PM
|
#15
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,268
|
Quote:
Originally Posted by wastee
JS API has some limit in Linux such as CAN NOT get third party plugin ui's button HWDN. I use xdotool to do what i want(no defer).
REAPER IDE's behavior change will be a better way. I love this FR.
|
oh.. ok.. thanks
maybe it could be a combination of a defer script to check if the window is there, and then run a xdotool command if it happens. I'll have to try something.
|
|
|
10-29-2021, 09:32 AM
|
#16
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
Question regarding the original request:
What about, if I have multiple instances of a script running via defer? Of which instance shall the variables be shown in the watchlist?
(Don't know, how it's currently when opening a multi-instance-background-script in the IDE.)
|
|
|
01-15-2022, 05:26 PM
|
#17
|
Human being with feelings
Join Date: Aug 2016
Location: Thunder Bay, Canada
Posts: 297
|
+1 for this. Painful.
|
|
|
01-16-2022, 12:17 PM
|
#18
|
Human being with feelings
Join Date: Aug 2016
Location: Thunder Bay, Canada
Posts: 297
|
"Reload Reascript" Auto Answer Utility
I've used the above information to compile something for windows. Thanks to all who provided input and Edgemeal especially for concept. Way to think outside the box.
You can find the archive in the stash.
You will need the dot net 6.0 runtime installed.
|
|
|
02-19-2022, 01:26 AM
|
#19
|
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,588
|
+ 1
|
|
|
08-13-2022, 10:02 AM
|
#20
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,268
|
+bump
the workaround with the script and xdotool works well, but still is annoying to see the window appear for a moment and you always need to remember to run the script in the background.
An option to disable the reloading prompt would still be appreciated.
|
|
|
10-24-2022, 10:11 AM
|
#21
|
Human being with feelings
Join Date: Oct 2021
Location: France
Posts: 363
|
Quote:
Originally Posted by heda
An option to disable the reloading prompt would still be appreciated.
|
+1
Edgemeal LUA script slows down Reaper, as if JS_Window_FindChildByID was using a lot of ressources when called repeatidly...
And the EXE complied by Mavrick does not work at all on my PC... :-(
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:19 PM.
|