Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 03-03-2018, 07:26 AM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default Reascript: ViewPrefs doesn't open given page

I tried to use the API-function ViewPrefs to open a specific page, but it simply doesn't, although the description in the API-docs states, it does.

"reaper.ViewPrefs(integer page, string pageByName)

Opens the prefs to a page, use pageByName if page is 0."


All of the following only open the "general"-preferences-page:

Code:
reaper.ViewPrefs(10,"")
reaper.ViewPrefs(20, "Paths")
reaper.ViewPrefs(0, "Paths")
reaper.ViewPrefs(0, "Audio")
Am I holding it wrong or is it a bug?

Edit: I used Reaper 5.75x64 without SWS on Windows 7.
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-11-2020, 11:33 AM   #2
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

I was looking for the same thing today and I found this:
https://forum.cockos.com/showthread.php?t=236483

Seems like in your API Doc, you state Audio/Device = 118. But it is actually 473 not 118

You might want to update the doc.
lexaproductions is offline   Reply With Quote
Old 07-11-2020, 12:11 PM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Thnx.

However my bugreport was about the second parameter not the first. I can't manage to open a page by name as the names aren't documented in the first place.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-11-2020, 12:49 PM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

I think the pages with a string ID are those added by extensions, not the built-in ones.

Last edited by cfillion; 07-11-2020 at 12:56 PM.
cfillion is offline   Reply With Quote
Old 07-11-2020, 02:25 PM   #5
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

You can add your own pages to the prefs from an extension? O_O
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-11-2020, 09:21 PM   #6
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Thnx.

However my bugreport was about the second parameter not the first. I can't manage to open a page by name as the names aren't documented in the first place.
Yeah, My post was more about you correcting your tremendous doc that I use everyday. To not mislead anybody else.
lexaproductions 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 02:56 AM.


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