RPR GetUserFileNameForRead

From CockosWiki

Revision as of 14:53, 25 January 2010 by MikeLacey (Talk | contribs)
Jump to: navigation, search

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetUserFileNameForRead
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetUserFileNameForRead

Contents

GetUserFileNameForRead()

bool GetUserFileNameForRead(char* filename, const char* title, const char* defext)

Parameters

TypeNameDescription
char*filenameThe default filename displayed by the dialogue box to the user.
const char*titleThe title of the Windows dialogue box.
const char*defextThe default file extension for the Windows dialogue box.

Returns

An array or list, the elements of which are:

TypeNameDescription
booleanresult1 if user pressed ok, 0 if user pressed cancel
char*filenameThe filename chosen by the user.
const char*titleThe title of the Windows dialogue box, this can be ignored.
const char*defextThe default file extension for the Windows dialogue box, this can be ignored.

Examples

C++


Perl


# GetUserFileNameForRead.pl
#

use strict;
use warnings;

my ($result, $filename, $title, $defext);

$title = "Go Mad, Choose a file...";
$defext = '*';

($result, $filename, undef, undef) = RPR_GetUserFileNameForRead($filename, $title, $defext);

RPR_ShowConsoleMsg("$result, $filename");

Python


See Also

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetUserFileNameForRead
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetUserFileNameForRead

Personal tools