Jump to content
Gold Sponsor: Data-Way IT-Consulting, Austria

  • 3.5 - Simple Script - Retrieve Variable

    3.5 - Simple Script - Retrieve Variable

    VBScript

     

    Within the download package of this project you will find an rse folder. This folder includes the file Retrieve.rse. This is a small example script to demonstrate the usage of persistent variables. It shows how to retrieve a persistently stored value from the scope of the current user.

     

    pv6.png

     

    pv7.png

     

    pv8.png

     

     

    The script reads a persistent variable called Welcome and uses a Play Announcement block to announce the current value (which should be the name of a wav file). As nothing else was configured the value is taken from the user scope (default Scope).

     

    If you have called the previous example before the content will be Default Welcome.wav. Otherwise the configured default value Beep.wav will be returned.

     

    To install this script generate a new GSE rule, via the menu File | Import... select the file Retrieve.rse, save the rule, close the GSE and make sure the rule is activated to give it a try.

     

     


    Tom Wellige
     Share


     Share




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.