What is the 'Scripts' folder for in SongBeamer

Everything about SongBeamer
Post Reply
Juggledad
Posts: 27
Joined: Sun Jun 04, 2006 7:23 pm
Location: Massachusetts, USA

What is the 'Scripts' folder for in SongBeamer

Post by Juggledad »

When you install SongBeamer, a folder called 'SongBeamer' is created in your 'My Documents' folder. Inside it are three folders: "Backgrounds', 'Songs', and 'Scripts'.

What is the intended use of the Scripts folder?
Sebastian
SongBeamer
Posts: 208
Joined: Sat Apr 22, 2006 10:58 pm

Post by Sebastian »

If you create a script using Tools->Macros, then it should be saved into that folder.

You can create pascal scripts like these:

Launch Windows Calculator:

Code: Select all

CreateProcess(getfolder_system+'calc.exe');
Launch Paint or PowerPoint depending on what file is currently open:

Code: Select all

var
  Ext: String;
begin
  Ext := AnsiLowerCase(ExtractFileExt(CurrentFileName));
  if Ext = '.bmp' then
    CreateProcess(GetFolder_System+'mspaint.exe', CurrentFileName)
  else if Ext = '.ppt' then
    CreateProcess(GetFolder_ProgramFiles+'Microsoft Office\OFFICE11\POWERPNT.EXE',
      CurrentFileName)
  else
    MessageDlg('Please open an Bitmap image or a PowerPoint presentation first.', mtError, [mbOk], -1);
end.
Add a file to the schedule:

Code: Select all

AddItem('sample song.sng', 'Sample caption');
Post Reply