<< Click to Display Table of Contents >> Navigation: 3. Script Language > Image/Pixel-Color Operations > Undercover and Graphics > Undercover Operations |
MiniRobotLanguage (MRL)
UCV.matte
UCV.mat
Create a dark, transparent yet protective cover
Intention
This command is used to allow the user to see what happens on screen. While its still protective to the scripted process and prevents the user from clicking or doing any action on the protected process. Its just like if you put a dark, half transparent glas between the desktop and the user-mouse.
To achieve this goal, Smart Package Robot will
- create a "Cover"-Form that will be placed above all other Forms*.
- make that form half transparent and add a grey desktop picture to it.
- that form will prevent the user from being able to see or click anything that is
below that form.*
- you can still use the Direct Engine to work with Setup-Programs.
- the Compatible Engine will not work if a Cover shields the desktop.
General usage is simple:
UCV.matte
' Here comes your script, we use a PAUSE command instead
PAU.10
' This will remove the Cover
UCV.
ENR.
You can switch from glas to "matte" (50% transparent/grey glas), like this:
UCV.glas
PAU.5
UCV.mat
PAU.5
UCV.
ENR.
Any cover is been removed immediately, when the script-process ends or when the script runs into an error.
The desktop-cover behavior can be changed/customized using the additional features:
UCV.transparency
UCV.no transparency
UCV.no blend
UCV.no blend-in
UCV.no blend-out
UCV.write
' this line will remove the cover
UCV.close
WHile "Matte" is a "dark glas", you can make the desktop-cover half transparent, by prefixing the script with:
UCV.tra
UCV.dc
PAU.10
' This line will remove the cover
UCV.
* 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.
Syntax
UCV.matte
UCV.mat
Parameter Explanation
-
Example
'***********************************
' UCV.-Sample
'
'***********************************
'
UCV.matte
PAU.10
UCV.
ENR.
'***********************************
' UCV.-Sample 2
'
'***********************************
'
UCV.mat
PAU.5
UCV.glas
PAU.5
UCV.
ENR.
'***********************************
' UCV.-Sample 3
'
'***********************************
'
UCV.glas
PAU.5
UCV.mat
PAU.5
UCV.
ENR.
'***********************************
' UCV.-Sample 4
' Write a text into the cover'
'***********************************
'
UCV.nb
UCV.dbw
UCV.set font|futura t|100|||0
UCV.write|Hallo world!|10,200
PAU.3
' This line will remove the cover
PAU.5
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