logo

Macro Expert

Save your TIME!

Site Map About us
Home Overview Downloads Purchase Support Contact Us
 
 

Advanced Set Variable Value


This instruction is only for the advanced user who has experience in programing.

Set the value of a variable and resize the variable's buffer. The instruction is useful to the instruction "Call an External DLL". The user uses the instruction to initialize the variable which would be a parameter for DLL function.

Click here to show the figure

Parameters

  • Variable name Specifies the variable's name.

  • Reallocate variable space Specifies the new size for the variable's buffer.

  • Convert value to Specifies how to store the variable, it can be the following:

    • Does not change the content in variable.
    • Clears the content in variable.
    • Stores as string value
    • Stores as number value
    • Stores as datetime value
    • Stores as binary value

  • Limit block size of setting Specifies how much content to be written into the variable. Whith the option unchecked, all contents will be written and the variable's buffer automatically extends if the variable space is not enough.

  • Expression of value Specifies the content for writing.

Syntax of expression

1. String value
The content should be a standard expression.

2. Datetime value
The content must be quoted by the number sign '#', for example: #2007-01-01 08:30#.

3. Number value
Supports hexadecimal notation, for example: 0x01a.

4. Struct data(Binary data)

The structural data should be declared by the following syntax:

<Data type code>:<content 1>;
<Data type code>:<content 2>;
...
<Data type code>:<content n>;

Code of Data TypeShort CodeData TypeDescription
IntegerIInteger2 bytes, the hexadecimal notation 0x is supported.
LongLLong4 bytes, the hexadecimal notation 0x is supported.
ByteBByte1 bytes, the hexadecimal notation 0x is supported.
String[length]S[length]Text in DBCSThe member's size will be determined by the optional length or the actual size of the content.
If the character space is included in the text, the text must be quoted by the single or double quotation marks. In this case, the quotation marks could be represented by \' or \".
WString[length]W[length]Text in Unicode
DateDDate and time16 bytes (same as SYSTEMTIME in Windows API), the content should be quoted by the number sign '#'.
PointerPPointer4 bytes, a pointer to the buffer of a variable.

Example A:
Integer:10; Long:200; Date:#2007-09-20#; Pointer:v_size;

Example B:
String:Hello; Long:200; String260:"Jack Lee";

Example C: (short code of data type)
S:Hello; L:0x200; S260:"Jack Lee";

Note:

  • For more information about the expression, please refer to Variable and Expression.


  • For the maximum compatibility, the members in the structural data always be aligned on natural boundaries.
  • Introduction
  • Compare Editions
  • Installation and Uninstall
    • Minimum system requirements
    • Installnation
    • Uninstalling
  • Work environment
    • Getting familiar with Macro Manager
    • Folder panel
    • The tool bar of the macro list
    • Working with the progress window
    • Working with Macro Player Manager
  • Using Macro Expert
    • Basic concept of Macro Expert
    • Creating a new macro
    • Playing a macro manually
    • Recording/Editing TemporaryMacro
    • Playing TemporaryMacro
    • Stop Macro Service
    • Disabling all triggers of macro
  • Changing the properties of a macro
    • General
    • Scope
    • Triggers
    • Schedule
    • Play back
    • Advance
  • Triggering macro
    • Triggering macro overview
    • Idle trigger
    • Startup trigger
    • System event trigger
    • Resource event trigger
    • Driver trigger
    • Dial trigger
    • Hotkey
    • Window Trigger
    • File Trigger
  • Scheduling macro
    • Scheduling macro overview
    • Minute
    • Daily
    • Weekly
    • Monthly
    • Once
    • At a time
  • Changing Options
    • General
    • Hot keys
    • TemporaryMacro
    • Play back
    • Record
    • Macro list
    • Auto-logon
    • Appearance
  • Script Editor
    • Looking at the work area
    • Inserting an action
    • Editing an action
    • Removing one or more actions
    • Working with the variables
  • Macro Commands
    • General settings and Error Handling Options
    • Keyboard and mouse
      • Key action
      • Mouse action
      • Put a Text
      • Mouse Move Activity
      • Mouse Action on Object
    • Dialog
      • Display Message Dialog
      • Select a Folder
      • File-selection Dialog
      • Input Dialog
      • Show Tip Text
      • Hide tip text
    • Wait
      • Delay
      • Wait for a window
      • Wait for color
      • Wait for keystroke
      • Wait for mouse motion
      • Wait for file
      • Wait for process
    • Play Control
      • On Error
      • Pause
      • Stop
      • End
      • Play speed
      • Play a macro
      • Set emulation level
    • System
      • Run
      • Image search
      • Text earch based on image
      • Generate random number
      • Log off
      • Start Screen-Saver
      • Lock workstation
      • Shut down computer
      • Registry Operation
      • Call an External DLL
      • Send Message to Window
      • Get Text from Object
    • Flow
      • Comments
      • Separator line
      • Label
      • Goto
      • If variable
      • If color
      • If File Exists
      • If Window Exists
    • Loop
      • Loop
      • Loop Windows
      • Loop Files
      • Loop Processes
      • Loop Control
    • Window
      • Window action
    • Clipboard
      • Copy, Cut, Paste and Clear
      • Put a text to the clipboard
      • Get the text from the clipboard
    • Multimedia
      • Play an audio
      • Increase/Decrease Volume
      • Adjust volume
      • Sound Switch
      • Sound on/off
      • CD Player
    • Network
      • Make remote access connection
      • Disconnect remote access connection
      • Connect network resource
      • Disonnect network resource
      • Clear Internet Explorer History
      • Delete Internet Explorer Cookies
      • Delete Tempoary Internet Files
      • Internet Explorer Navigation Actions
    • Webpage
      • On Popup Window on Webpage
      • Open a Web page
      • Connect a Opened Webpage
      • Close Webpage
      • Read Field on Webpage
      • Fill Field on Webpage
      • Submit Form on Webpage
      • Click Element on Webpage
      • Find Element on Webpage
    • File
      • Copy files
      • Move files
      • Delete files
      • Create a folder
      • Delete a folder
      • Rename files
      • Set file attributes
      • Change file time
      • Synchronize Folders
      • Compress files
      • Extract a zipped file
      • Read text file
      • Write text file
    • Document
      • Open Document
      • Close Document
      • Save Document
      • Read Excel Cell
      • Write Excel Cell
      • Find Excel Cell
      • Add Worksheet
      • Remove Worksheet
      • Activate Worksheet
    • Variable
      • Increase/Decrease value
      • Set value
      • Advanced Set Variable Value
      • Advanced Get Variable Value
    • Database
      • Execute SQL Statement
      • Close Dataset
      • Set Field Value
      • Get Field Value
      • Change Current Record Position
  • Command Line Usage
  • Variables and Expressions
  • Frequent Question and Answer
  • Purchasing Macro Expert
  • Contact Grass Software
  • License Agreement
  • Help & Support
    Support
    Online Manual
    Online Bug Report
    Suggestion & Comments
    Downloads
    Macro Expert
    Advanced Key and Mouse Recorder
    GS Typing Tutor
    GS Typing Test
    GS Typing Network
    Websites
    GS Typing Tutor
    One-hand typing tutor
    Macro Expert
    Advanced Key and Mouse Recorder
    Company
    About Us
    Press Room
    Privacy Policy
    Links
    Copyright © 2002-2009 GrassSoftware. All Rights Reserved.