Commands & Syntax > Commands > Text & Variable Manipulation >

www.perfectkeyboard.com

 

LOAD - < var_load >() ... [Pro]

 

Variable LOAD
<var_load>("Variable","File")
Available in: Professional edition

Loads variable value from a file. (The value was previously saved using command.)

 

#

Parameter name

Parameter description

1

Variable

Variable to load value from file.

2

File

The file created by command that contains variable value.

 

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)