Old 10-30-2019, 07:37 AM   #1
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 159
Default Change Splash screen settings from script

Is there a way to turn splash screen on/off for project loading from a script?

Code:
value = reaper.SNM_GetIntConfigVar( "splash2",-1 )
This is the code I tried but I get -1 value. It looks like this property cannot be read or written from ReaScript.

Am I wrong?
nikolalkc is offline   Reply With Quote
Old 10-30-2019, 08:59 AM   #2
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,798
Default

Yeah, reaper.SNM_GetIntConfigVar doesn't seem to support the "splash" and "splash2" keys.

But you can try setting the value to 0 or 1 directly in the reaper.ini via this function instead (which seems to work here):
Quote:
reaper.BR_Win32_WritePrivateProfileString("REAPER" , "splash2", 0, reaper.get_ini_file())
Quote:
reaper.BR_Win32_WritePrivateProfileString("REAPER" , "splash2", 1, reaper.get_ini_file())

EDIT:

As a side note: the function for getting key values is retval, string = reaper.BR_Win32_GetPrivateProfileString( sectionName, keyName, defaultString, filePath ).
Quote:
retval, string = reaper.BR_Win32_GetPrivateProfileString("REAPER" , "splash2", defaultString, reaper.get_ini_file())
__________________
ReaLauncher

Last edited by solger; 10-30-2019 at 09:56 AM.
solger is offline   Reply With Quote
Old 10-31-2019, 12:13 PM   #3
nikolalkc
Human being with feelings
 
nikolalkc's Avatar
 
Join Date: Feb 2017
Location: Belgrade, Serbia
Posts: 159
Default

Thank you very much. This works perfectly.
nikolalkc 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 03:03 AM.


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