Perl

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Example Scripts)
(Example Scripts)
Line 33: Line 33:
[[NudgeItemVolume_pl|Nudge Item Volume]]
[[NudgeItemVolume_pl|Nudge Item Volume]]
 +
 +
[[RainbowColours_pl|Rainbow Colours]]
[[WindowsClipBoard_pl|Windows ClipBoard Demo Code]]
[[WindowsClipBoard_pl|Windows ClipBoard Demo Code]]

Revision as of 22:26, 14 November 2009

Reaper Documentation/ReaScript

Introduction

ReaScript Perl uses the standard module FFI, but there's no need to include the line

use FFI;

in your scripts because ReaScript will do that for you; it doesn't hurt if you do include that line.

Caveats

All REAPER API Calls Must Be On A Single Line

This is valid Perl

$return_value = RPR_ShowMessageBox(
  $msg_1,
  $title,
  MSG_BOX_YES_NO
);

But... It won't work under REAPER at the moment, all calls to the REAPER API have to be on a single line, like this.

$return_value = RPR_ShowMessageBox($msg_1,$title,MSG_BOX_YES_NO);

Example Scripts

API Test

Hello World

Ez Freeze

Nudge Item Volume

Rainbow Colours

Windows ClipBoard Demo Code



Reaper Documentation/ReaScript

Personal tools