Undercover Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Image/Pixel-Color Operations > Undercover and Graphics >

Undercover Operations

UCV.print - print listing

Previous Top Next


MiniRobotLanguage (MRL)

 

UCV.print

UCV.pri

Print more text use vertical scrolling if needed

 

 

Intention

 

This command will print text in the actual foreground color. Use the "UCV.foreground" command to set the foreground color. "UCV.print" will use the font that you can set using the "UCV.set font" command.

 

General usage is simple:

 

' Make a completely green cover

UCV.bgr|&H00FF00

' Set red foreground color

UCV.fgr|&HFF0000

UCV.cov

' Print in red onto the green background

UCV.print|Hello world!

' Here comes your script, we use a PAUSE command instead

PAU.5

' Switch cover color to yellow

UCV.bgr|&HFFFF00

UCV.print|Hello world!

' This will remove the Cover

UCV.

ENR.

 

You can print a text on the cover, like this:

 

' Make a completely red cover

UCV.bgr|&HFF0000

UCV.cov

' Here comes your script, we use a PAUSE command instead

PAU.5

' Switch cover color to yellow

UCV.bgr|&HFFFF00

' Print on the cover screen

UCV.print|Hello world

' This will remove the Cover

UCV.

ENR.

 

As you can see, the "background" command will also influence the background of the color of the "print" command.

 

Any cover is been removed immediately, when the script-process ends or when the script runs into an error.

 

Print will automatically do a "word wrap". Print will place words that do not fit into the current line, automatically into the next line. Therefore avoid words that do not fit into a line, as these may not be printed at all. Use the "UCV.write" for such cases.

 

' This line will remove the cover

UCV.

 

 

 

Syntax

 

 

UCV.print|P1

UCV.pri|P1

 

 

Parameter Explanation

 

P1 - String/variable with the text that should be printed.

 

 

 

Example

 

'***********************************

' UCV.-Sample

' Shows scrolling text

'***********************************

'

$$TXT=Hallo my dear, try the PRINT command also ....

STR.CLONE|$$TXT|160|$$TXT

' no fading

UCV.nb

' set foreground color

UCV.fgr|&HFF0000

' set transparent background color

UCV.bgr|-1

UCV.mat

UCV.set font|futura t|40|||0

UCV.pri|$$TXT

PAU.4

UCV.

ENR.

 

'***********************************

' UCV.-Sample 2

'

'***********************************

'

' Make a completely red cover

UCV.bgr|&H0000FF

UCV.cov

' Here comes your script, we use a PAUSE command instead

PAU.5

' Switch cover color to yellow

UCV.bgr|&H00FFFF

' Print on the cover screen

UCV.print|Hello world

' This will remove the Cover

UCV.

ENR.

 

 

 

 

Remarks

 

-

 

 

 

Limitations:

 

PopUp-Menus and other TopMost Forms may be able to get temporarily in front of the Cover-form. This is due to windows-technical reasons and not a bug.

 

 

 

See also:

 

  ! Smart Package Robot 's Undercover Operations

  ! UCV. - Undercover Graphics

  CCV. - Color Conversion