Commands & Syntax > Commands > Text & Variable Manipulation >

www.perfectkeyboard.com

 

SAVE - < var_save >() ... [Pro]

 

Variable SAVE
<var_save>("Variable","File")
Available in: Professional edition

The command saves (persists) variable value to a file. The variable content can be later loaded again using command. The same file can be used for multiple (unlimited number) variables because each variable has its own section within the file.

 

#

Parameter name

Parameter description

1

Variable

Variable to save value to file.

2

File

The file to save variable value to.

 

Example (Macro Steps):

 

1

<#> <#> This macro demonstrates use of and commands

2

Macro execution: ONLY COMMANDS

3

Variable SET "vName=John", Message text=""

4

Variable SAVE "vName" to file "c:\_myvars.dat

5

Variable SET "vName=Michael", Message text=""

6

Variable LOAD from file "c:\_myvars.dat" to "vName"

7

Message SHOW "" : "vName" (other parameters: x = 100, y = 100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).

Example (Plain Text):

 

<#> This macro demonstrates use of <var_load> and <var_save> commands

<#>

<cmds>

<varset>("vName=John","")

<var_save>("vName","c:\_myvars.dat")

<varset>("vName=Michael","")

<var_load>("vName","c:\_myvars.dat")

<msg>(100,100,"vName","Message",1)