Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 09-25-2017, 07:14 PM   #1
ausbaxter
Human being with feelings
 
Join Date: Apr 2016
Posts: 39
Default Is there a way to keep a reascript gui window the topmost window at all times?

Hey guys, I'm working on a script that makes working with the wonderful Instant-Take rendering scripts from Adam T. Croft work a little more to my taste by having "preset" effect tracks you can switch between and run the scripts through. When I'm opening and closing fx windows all the time there are occasions where it hides the Gui window. I have plenty of screen real estate with two monitors, but it became quite frustrating when on a small laptop screen. Any way to make the gui window persistently stay on top? Thanks in advance.

Also many thanks to Lokasenna for putting together an excellent and intuitive GUI library

ausbaxter is offline   Reply With Quote
Old 09-25-2017, 09:16 PM   #2
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

gfx.quit
gfx.init
mpl is offline   Reply With Quote
Old 09-26-2017, 12:31 PM   #3
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

You could have your main loop (pass a function to GUI.func when using my GUI) watch the incoming keyboard stream from gfx.char - if memory serves, the stream stops updating completely when the script window loses focus, so if you (I'm guessing here) checked gfx.char == nil that would tell you when another window has taken over and then you could close and reopen as per @mpl's post above.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 09-26-2017, 05:09 PM   #4
ausbaxter
Human being with feelings
 
Join Date: Apr 2016
Posts: 39
Default

Thanks guys! Lokasenna, it looks like GUI.char is receiving gfx.getchar() so at least according to the reascript doc it wont keep track of window focus. Gave it a quick test as well. It does keep track of if the gui window is closed.

Last edited by ausbaxter; 09-26-2017 at 05:13 PM. Reason: Clarification
ausbaxter 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 05:21 PM.


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