Examples – BrightSign HD2000 User Guide User Manual

Page 69

Advertising
background image

63

Examples

A good way to learn BrightScript is to look at or modify existing scripts. You can find links to
example scripts at

www.brightsign.biz/support/demos

. On the demos web page, enter

brightsign as the username and demos246 as the password. The AUTORUN.BAS in the
HD600 Demo is an example of a more sophisticated script.

You can also test BrightScript commands using the shell. Here is an example:

Welcome to the Roku Shell version 1.1.28 Release

Type '?' for help or 'help <command>' for help on <command>.

Roku> script

BrightScript Micro Debugger.

Enter any BrightScript statement, debug commands, or HELP.

BrightScript> print "hello"

hello

BrightScript> ? "hello"

hello

BrightScript> ?5+6

11

BrightScript> ?type(5)

rotINT32

BrightScript> if 1=1 then print"1 does equal 1!" else print "strange!"

1 does equal 1!

BrightScript> ?right("abcdef",3)

def

BrightScript> exit

Roku>

Advertising
This manual is related to the following products: