AMSWScript is an action plugin that with this you can execute vbs and js file from AMS.
Script.AddCode
Script.GetResultAsDate
Script.GetResultAsDouble
Script.GetResultAsFloat
Script.GetResultAsLong
Script.GetResultAsWord
Script.GetResultAsByte
Script.GetResultAsString
Script.GetResultAsQuad
Script.Reset
Script.SetLanguage
Script.SetTimeOut
Script.GetTimeOut
Script.FormatDate
Add Code and execute it.
(string) Codes.
(string) Type of your code (Internal or external).
nothing
code =[[
result = Date() + Time()
]]
Script.AddCode(code, Script_InternalCode);
date = Script.GetResultAsDate("result");
Dialog.Message("", Script.FormatDate(date, "%yyyy.%mm.%dd %hh:%ii:%ss"))
TextFile.WriteFromString("c:\\code.vbs", "result = Date() + Time()", false);
Script.AddCode("c:\code.vbs", Script_ExternalCode);
date = Script.GetResultAsDate("result");
Dialog.Message("", Script.FormatDate(date, "%yyyy.%mm.%dd %hh:%ii:%ss"))
Get result that beforehand executed in Script.AddCode as Date(number).
(string) Name of variant that beforehand executed in Script.AddCode.
(number) get value of Varible in Date format.
date = Script.GetResultAsDate("result");
Dialog.Message("", Script.FormatDate(date, "%yyyy.%mm.%dd %hh:%ii:%ss"))
Get result that beforehand executed in Script.AddCode as Double(number).
(string) Name of variant that beforehand executed in Script.AddCode.
(number) get value of Varible in Double format.
doublevalue = Script.GetResultAsDouble("result");
Dialog.Message("", doublevalue)
Get result that beforehand executed in Script.AddCode as Float(number).
(string) Name of variant that beforehand executed in Script.AddCode.
(number) get value of Varible in Float format.
floatvalue = Script.GetResultAsFloat("result");
Dialog.Message("", floatvalue)
Get result that beforehand executed in Script.AddCode as Long(number).
(string) Name of variant that beforehand executed in Script.AddCode.
(number) get value of Varible in Long format.
longvalue = Script.GetResultAsLong("result");
Dialog.Message("", longvalue)
Get result that beforehand executed in Script.AddCode as Word(number).
(string) Name of variant that beforehand executed in Script.AddCode.
(number) get value of Varible in Word format.
wordvalue = Script.GetResultAsWord("result");
Dialog.Message("", wordvalue)
Get result that beforehand executed in Script.AddCode as Byte(number).
(string) Name of variant that beforehand executed in Script.AddCode.
(number) get value of Varible in Byte format.
bytevalue = Script.GetResultAsByte("result");
Dialog.Message("", bytevalue)
Get result that beforehand executed in Script.AddCode as String(string).
(string) Name of variant that beforehand executed in Script.AddCode.
(string) get value of Varible in String format.
stringvalue = Script.GetResultAsString("result");
Dialog.Message("", stringvalue)
Get result that beforehand executed in Script.AddCode as quad(number), Quad used for very very huge number.
(string) Name of variant that beforehand executed in Script.AddCode.
(number) get value of Varible in Quad format.
quadvalue = Script.GetResultAsString("result");
Dialog.Message("", quadvalue)
Reset Script to default.
nothing.
Script.Reset()
Set Language (Default Language is VBScript).
(string) Language. (Script_VBScript and Script_JScript )
nothing.
Script.SetLanguage(Script_VBScript)
Set TimeOut.
(number) Time in milisecond.
nothing.
Script.SetTimeOut(10000)
Determine what value has TimeOut.
(number) return timeout.
ms = Script.GetTimeOut()
Dialog.Message("", ms)
Returns a string representation of the Date, according to the specified Mask.
(number) result of Script.GetResultAsDate.
(string) The Mask parameter is a string which specifies how the date should be formatted.
(string) Returns a string representation of the Date, according to the specified Mask.
%yyyy - Will be replaced by the year value
%yy - Will be replaced by the year value
%mm - Will be replaced by the month value
%dd - Will be replaced by the day value
%hh - Will be replaced by the hour value
%ii - Will be replaced by the minute value
%ss - Will be replaced by the second value
date = Script.FormatDate(1222039911, "%yyyy.%mm.%dd %hh:%ii:%ss")
Dialog.Message("", date)
date = Script.FormatDate(1222039911, "%hh:%ii:%ss")
Dialog.Message("", date)
AMSWaves Corporation
support@AMSWaves.com
Plugin is copyright © 2008-2008 AMSWaves Design Corporation.
Copyright © 2008 AMSWaves Design Corporation.
All Rights Reserved.