enum CTScript::Parameter
Name | Value | Description |
---|---|---|
INPUT_FILE | 1 | Deprecated |
OUTPUT_FILE | 2 | Deprecated |
INPUT_CONSOLE | 3 | Deprecated |
OUTPUT_CONSOLE | 4 | Deprecated |
USER_PROMPT | 5 | If the script requires resources that it doesn't have permission for, TScript will prompt the use and ask for the resource. Is there's no user, it'll block the script indefinitely. If this parameter is specified, then the script will not prompt the use and just return an error. |
ERROR_EMAIL | 6 | Deprecated, use SendEmail.ts library instead |
ERROR_VARIABLE | 7 | Deprecated |
LIBRARY_DIRECTORY | 8 | This parameter is the directory pathway for the script to search to find any #included script. |
SAVE_COMPILE | 10 | This is still incomplete, but will allow the system to pre-process scripts and store them for quick retrieval. The name give to any compiled TScript (*.cts) file. |
SOURCE_FILE | 11 | The source files for this executing script. |
SOURCE_STRING | 12 | The string parameter has the source code to compile without requiring to go via the file system. |
DEFAULT_RUN_METHOD | 13 | The static method to be called, the default is 'main' and this will change it. |
LAST_ERROR | 14 | Get last error will return information regarding the last error the script ran into. |
SOURCE_VERSION | 15 | If compiled into a compile TScript (*.cts) file, it will have this version. |
RESOURCES_PROMPT_USER | 16 | Deprecated. |
FILETIME_FORMAT | 17 | This default format for printing a filetime variable. |
DATE_FORMAT | 18 | This default format for printing a date variable. |
LOCAL_TIMEZONE | 19 | Allows the setting of a local time, overriding the local machine's local time and can force UTC for example. |
REGISTRY_READ | 20 | Don't know about this one. This is Windows specific and not very useful. |
REGISTRY_WRITE | 21 | Don't know about this one. This is Windows specific and not very useful. |
WORK_PATH_READ | 22 | Allows the script to read from a specified directory. |
WORK_PATH_WRITE | 23 | Allows the script to write to and read from a specified directory. |
TEMP_PATH_WRITE | 24 | Allows the script to write to and read from the system temp directory. This will change depending on which user is running the script. You can all System::GetTempPath() to find out where it is. |
ALL_PATHS_READ | 25 | This will fallback on the system level permissions and allow the script to read whatever files the current user can access. |
ALL_PATHS_WRITE | 26 | This will allow the script to read and write whatever files the current user can access contorled by the system level permissions. |
ALLOW_SOCKET_CONNECT | 27 | This will allow the script to access resources over the internet. |
ALLOW_SOCKET_BIND | 28 | Don't know about this one. Using script to create a service is not the best method. Just leaving it here for future use. |
ALLOW_SOCKET_DOMAIN | 29 | Again, I don't know about this one. I don't know the difference between this one and ALLOW_SOCKET_BIND |
ALLOW_LOAD_DLL | 30 | Allows the script to load DLL on Windows or SO on Linux. The script needs read permission to the directory or library file. |
ALLOW_LOAD_COM | 31 | Don't know about this one. Just reserved for future use, but only if Microsoft updates the COM API for 64bit, otherwise it's really useless. |
PREPROCESSOR_DEFINITION | 32 | In order to link to a DLL, a C++ header file is needed to specify the API and this allows for the preprocessor switches to work. |
PARENT_CONTEXT | 33 | For callback functions, this allows parameters to be passed from the parent context, through the script and be read by the callback fuction. |
PARENT_PARAMETER_1 | 34 | For callback functions, this allows a general parameters to be passed from the parent context, through the script and be read by the callback fuction. |
PARENT_PARAMETER_2 | 35 | For callback functions, this allows a general parameters to be passed from the parent context, through the script and be read by the callback fuction. |
PARENT_PARAMETER_3 | 36 | For callback functions, this allows a general parameters to be passed from the parent context, through the script and be read by the callback fuction. |
ADD_STATIC_CALLBACK_METHOD | 40 | Allows for a callback functions to be added to the script. See SetParameter for more information. |
Also See
GetParameter, SetParameterListen All
Comments (0)