Jump to content

- Usage

- # Persistent Variables - 3.4 - Simple Script - Store Variable

  Followers 0

  VBScript

  Within the download package of this project you will find an rse folder. This folder includes the file Store.rse. This is a small example script to demonstrate the usage of persistent variables. It shows how to store a value persistently into the scope of the current user or group.

  The script creates a variable with the Name "Welcome".

  If the script runs for a user, the variable will only be visible/accessible for the current user. The so called Default scope is User. If the script runs for a group, the variable with only be visible/accessible for the current group. The so call default scope is Group.

  Afterwards the name of a SwyxWare default announcement (Default Welcome.wav) is stored into the new persistent variable.

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

  The next example will read this persistent value and announce it.

  Hint: the Persistent Variables can be used with ANY SwyxWare version. The inlcuded examples and the GSE Action itself however might be stored with the most recent SwyxWare version of the time the Persistent Variable version was released. This means that you might need to use the latest SwyxWare version to be able to open the included GSE Rules (.rse files) and the GSE Action (.ase file) within your GSE.

  By Tom Wellige

  - May 14, 2022
  Share
  Share
  Followers 0
  Previous Page 3.3 - Retrieve a value
  Next Page 3.5 - Simple Script - Retrieve Variable

## 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.