RPR EnumProjects
From CockosWiki
(→Examples) |
(→C++) |
||
Line 16: | Line 16: | ||
==Examples== | ==Examples== | ||
===C++=== | ===C++=== | ||
- | <source lang=cpp> | + | <source lang=cpp highlight=4> |
+ | void LastProjectTab(COMMAND_T*) | ||
+ | { | ||
+ | int iNumProjects = 0; | ||
+ | while (EnumProjects(++iNumProjects, NULL, 0)); | ||
+ | SelectProjectInstance(Enum_Projects(iNumProjects-1, NULL, 0)); | ||
+ | } | ||
</source> | </source> | ||
+ | |||
===Perl=== | ===Perl=== | ||
<source lang=perl> | <source lang=perl> |
Latest revision as of 22:17, 11 February 2010
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR EnumProjects
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR EnumProjects
Contents |
EnumProjects()
void* EnumProjects(int idx, char* projfn, int projfnlen)
Enumerates (lists) the currently open projects.
Parameters
int idx, -1 for current project char* projfn, can be NULL if not interested in filename int projfnlen
Returns
An array, containing: void* int idx, char* projfn, int projfnlen
Examples
C++
void LastProjectTab(COMMAND_T*) { int iNumProjects = 0; while (EnumProjects(++iNumProjects, NULL, 0)); SelectProjectInstance(Enum_Projects(iNumProjects-1, NULL, 0)); }
Perl
Python
See Also
project: GetItemProjectContext, GetProjectPath, GetProjectPathEx, GetProjectTimeSignature, GetProjectTimeSignature2, Main_openProject, SelectProjectInstance, SetProjectMarker, SetProjectMarker2, UpdateItemInProject, plugin_getImportableProjectFilterList, projectconfig_var_addr, projectconfig_var_getoffs, AddProjectMarker, DeleteProjectMarker, EnumProjectMarkers, EnumProjectMarkers2, EnumProjects,
(Section automatically generated, edits may be overwritten.)
Stuff
Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR EnumProjects
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR EnumProjects