wmACScr1

MAY Computer

ReadMe

V 0.9.4, 2006-01-19

  1. General Purpose
  2. Notes
  3. Revision History
  4. Contact Information

General Purpose

The application control script language interpreter is a set of commands that can be enhanced and reused by other applications to provide a simple scripting language. The wmACScr1 module itself provides all commands that are commonly useful like reading and writing from and to inifiles or the registry, calling other applications or VB scripts (that can exchange information with the application script).

 

Notes

The wmACScr1 module itself can not be run as it is. It needs an application that uses/runs it. SiBaLa is the simplest cover application. It does not enhance the application script with commands or variables but provides access to all the commands and variables of pure application script as a simple batch language.

When in Debug-Mode and using the Set next statement command (CTRL+F9) then do not set next statement to outside the currently processed subroutine otherwise you will experience unexpected behaviour.

 

Revision History

This revision history contains changes to the common wmACScr1 module only. Application specific enhancements and fixes see appropriate application readme.

Version

Date

Changes

 0. 9. 4

2006-01-19

  • ENH: Performance improvements for the script interpreter.

 0. 9. 3

2006-01-17

  • ENH: New command:
    • GETFILEREADONLY

 0. 9. 2

2005-12-28

  • FIX: Documentation errors in STRPART.
  • ENH: New commands:
    • FILERENAME
    • STRWHICHPART

 0. 9. 1

2005-12-16

  • ENH: New command:
    • SETFILEREADONLY

 0. 9. 0

2005-06-09

  • ENH: New command:
    • CHOOSEITEMFROMLIST

 0. 8. 9

2005-04-04

  • ENH: @ line prefix added to prevent variable replacement for single script lines.

 0. 8. 8

2005-03-18

  • FIX: Some corrections in documentation.
  • ENH: New command:
    • SETMAILMETHOD

 0. 8. 7

2005-02-15

  • ENH: New command:
    • INCLUDESCRIPT (dynamic include)

 0. 8. 6

2005-02-01

  • FIX: When using ACScript through ActiveX and performed one script after the other (or same script a second time) used language extensions (IMPORT command) were not reinitialized properly.
  • ENH: Language extension objects can now also be available in AddIns (see also Topic #12030). Modification of AddIns and change of call via ADDINCALL required to enable this feature.
  • ENH: New commands:
    • BEGINFOREGROUNDACTION
    • ENDFOREGROUNDACTION

 0. 8. 5

2005-01-19

  • FIX: Error 5020 (duplicate label) did not include affected label name (see also Topic #13992).
  • FIX: Filename in ###INCLUDE statements did not accept filename enclosed in " characters (see also Topic #13990)
  • ENH: New variable %COMMANDLINE%
  • ENH: New command:
    • STRREMLEADEND

 0. 8. 4

2004-11-04

  • ENH: New commands:
    • CNVDOS2WIN
    • CNVWIN2DOS

 0. 8. 3

2004-10-08

  • FIX: Step out feature in debugger does not work correctly if EXIT SUB or RETURN commands used in script.
  • FIX: ErrorOccured event did not fire in several error cases.
  • FIX: Error trapping (ONERROR command) did not work in all error cases.
  • ENH: DEBUGMODE and BREAKPOINT commands enhanced.
  • ENH: New command:
    • SETDEBUGVARIANT

 0. 8. 2

2004-09-29

  • ENH: New command:
    • SETDEBUGLOG

 0. 8. 1

2004-09-26

  • ENH: New commands:
    • JOBPRIORITY
    • DOEVENTS

 0. 8. 0

2004-02-26

  • ENH: New command:
    • GLOBDIM

 0. 7. 9

2004-02-26

  • FIX: Problems with optional parameters for subroutines: If a parameter was not specified the variables %PARn% were not resolved.
  • FIX: Set next statement action in debug mode was performing the current line before jumping to the line set by the user.
  • FIX: When in debug mode and a variable was selected the selection was lost when next step was performed.
  • ENH: ? can be used in debug mode in immediate window to show a result with resolved variables for an expression.
  • ENH: New command:
    • SETLOC
  • ENH: New variables: %LOC.<Name>%

 0. 7. 8

2004-02-25

  • CHG: Behaviour for recursive variable usage has been changed when using language extensions. Prior to version 0.7.8 language extension variables were resolved before kernel script variables. This allowed variable overruling which is now not possible any more. Now kernel variables are resolved before resolving language extension variables. So prior to version 0.7.8 you could have used %SCR.%ModuleSpecific.MyVar%_Name% which now does not work any more but now you can use %ModuleSpecific.%SCR.MyVar%% which has been decided to be the better behaviour. Anyway an option has been let: Using %VARS.MyVar% is the same as %SCR.MyVar% but is resolved after resolving module specific variables. Therefore:
    Substitute expressions like this:
      %SCR.%ModuleSpecific.MyVar%%
    with:
      %VARS.%ModuleSpecific.MyVar%%

 0. 7. 7

2004-02-20

  • ENH: New command:
    • GETDURATION

 0. 7. 6

2004-02-19

  • ENH: New commands:
    • SETVALS
    • GETVALSASCMDLINE
    • GETVALSASSTRING

 0. 7. 5

2004-02-03

  • ENH: New command:
    • BREAKPOINT

 0. 7. 4

2003-12-23

  • ENH: New command:
    • FLUSHLOGGING

 0. 7. 3

2003-12-12

  • ENH: New commands:
    • COUNTLINESINFILE
    • STROCCCOUNT
  • ENH: FOREACHIN has now a 4. parameter (Skip empty values) available.

 0. 7. 2

2003-11-28

  • ENH: New commands:
    • FOREACHLINEINFILE
    • EXITLOOP
    • REMOVEVAL
    • REMOVEVALS
    • STRSPLIT
    • STRCOLLECT

 0. 7. 1

2003-11-18

  • FIX: Set next statement in Debugger did not work correctly. However you still should not set the next statement to outside the current subroutine.
  • ENH: New commands:
    • LOG2EVTSTATS
    • APPXSLOGIN
    • APPXSCANACCESS
    • APPXSGETRIGHTS
    • APPXSLOGOUT

 0. 7. 0

2003-11-18

  • ENH: Multiline statement support for IF statement and WHILE loop.

 0. 6. 2

2003-11-17

  • FIX: ACTIVATEWINDOW command improved (did not work for some windows).
  • FIX: ###INCLUDE did not work with relative path names.
  • ENH: GOTO can now also be used with line numbers instead of labels. => Labels now must start with a letter.
  • ENH: Debugger improved (set next statement, support for displaying external module variables/objects).
  • ENH: Commands added:
    • FOREACHFOLDER
    • GETTOPWINDOW
    • SETTOPWINDOW
    • CLOSEWINDOW

 0. 6. 0

2003-10-17

  • FIX: Documentation missing several commands.
  • ENH: Debugger added - DEBUGMODE command added.

 0. 5.13

2003-05-21

  • ENH: PORTCHECK command added to ping a specific port at a specified host. Useful to check if a server application is running.

 0. 5.11

2002-12-20

  • ENH: FINDWINDOWLIKE command added which obsoletes FINDWINDOW (method caused problems on Windows 2000 and upper)

 0. 5.10

2002-09-19

  • FIX: GOTO bug (label is called like a subroutine instead of jump to that line).
  • ENH: GOSUB command (alternative to CALL)

 0. 5. 9

2002-08-08

  • FIX: INSTRING command did not do anything
  • FIX: Minor corrections in documentation

 0. 5. 8

2002-07-02

  • ENH: New command:
    • STRREDUCE

 0. 5. 7

2002-06-12

  • ENH: New commands:
    • FILEOPENDLG
    • FILESAVEDLG
    • SELECTFOLDER
    • SELECTPRINTER
    • CMDFILEMETHOD
    • GETFILENAMEFROMLINK
    • GETURLLINKTOFILE
    • STRTAGCONTENT
    • CLIPBOARDCOPYSTR
    • CLIPBOARDGETSTR
    • REGEXPORTTOFILE
    • REGIMPORTFROMFILE

 0. 5. 6

2002-01-23

  • FIX: Hangup bug when using activex from within ASP.

 0. 5. 5

2001-12-20

  • ENH: New commands:
    • CNVTOQUERYSTRVALUE
    • CNVFROMQUERYSTRVALUE
    • CNVTOHTML
    • CNVFROMHTML

 0. 5. 4

2001-12-10

  • FIX: wmACScr1.dll 0.5.3 was compiled against corrupted wmGlob1.dll and therefore caused errors.
  • ENH: Variable PRGFORMCANCEL added

 0. 5. 2

2001-12-03

  • ENH: New commands:
    • CHANGEPRINTER
    • PRINTFILE

 0. 5. 1

2001-11-12

  • ENH: New commands:
    • CRC32FROMFILE
    • CRC32FROMSTRING

 0. 5. 0

2001-10-29

  • FIX: Some minor documentation mistakes corrected
  • CHG: Script lines beginning with the "#" character are also interpreted as comment lines now (except the ###INCLUDE line).
  • ENH: SAVESCRIPT command for self-save
  • ENH: HEADER blocks with variables that persist if script is saved during processing.
  • ENH: New commands:
    • PRGFORMSHOW
    • PRGFORMCLOSE
    • PRGFORMSETINFO
    • PRGFORMSETPROGRESS
    • PRGFORMSETNEXT
    • STRFIRSTPART
    • STRLASTPART
    • STRSTRIPFIRSTPART
    • STRSTRIPLASTPART
    • INSTRING
    • DEFAULTHEADER
    • SETHEADER

 0. 4. 0

2001-10-19

  • CHG: Interface for language enhancements has been changed to provide better integration possibility.
  • ENH: IMPORTMODULE command which allows use of all enhancement modules together.
  • ENH: If different modules provide commands with the same name, you can explictly specify the right command with: <ModuleName>.<Command>

 0. 3. 1

2001-10-16

  • ENH: FOREACHFILE and FOREACHIN also provides the current index as parameter to the called sub now.

 0. 3. 0

2001-10-10

First beta release of the wmACScr1 module

Contact Information

Technical support and latest information on our products are available at http://support.may.co.at

Author of this Software is Martin Wildam (mailto:mwildam@may.co.at)

E-Mail support for this application: mailto:mwildam@may.co.at
General E-Mail support: mailto:support@may.co.at

MAY Computer GmbH & Co KG
Microsoft Solution Provider
Galvanigasse 2
A-1210 Vienna / Austria
Tel.: +43/1/278 20 80 Fax: +43/1/278 20 80 /22
http://www.may.co.at
mailto:may@may.co.at