CorelDRAW Community
Site
Search
User
Site
Search
User
Developer Area
Forums
Wikis
API References
Tags
More
Cancel
New
Developer Area requires membership for participation - click to join
Applications:
Corel DESIGNER
Corel PHOTO-PAINT
CorelDRAW
Versions:
Corel PHOTO-PAINT 2017
Corel PHOTO-PAINT 2018
Corel PHOTO-PAINT 2019
Corel PHOTO-PAINT 2019.2
Corel PHOTO-PAINT 2020
Corel PHOTO-PAINT 2020.1
Corel PHOTO-PAINT 2021
Corel PHOTO-PAINT 2021.5
Corel PHOTO-PAINT 2022-v24
Corel PHOTO-PAINT 2022-v24.1
Corel PHOTO-PAINT 2022-v24.2
Corel PHOTO-PAINT 2023-v24.3
Corel PHOTO-PAINT 2023-v24.5
Corel PHOTO-PAINT 2024-v25
Corel PHOTO-PAINT X7
Corel PHOTO-PAINT X7.4
Corel PHOTO-PAINT X7.6
Corel PHOTO-PAINT X8
Classes:
AIExport
Application
AppWindow
Background
BitmapImage
BMPExport
CEPSExport
CGMExport
CGMImport
Channel
Channels
Clipboard
ClipMask
Color
ColorMask
ColorMaskColor
ColorMaskColors
Colors
ColorTable
CommandBar
CommandBarMode
CommandBarModes
CommandBars
Control
Controls
CorelScript
CorelScriptFile
CorelScriptTools
DataContext
DataSourceProxy
DockHost
DockHosts
DockItem
DockItems
Document
Documents
DropShadow
DSFImport
DXFExport
DXFImport
EMFExport
ExportFilter
Floater
Frame
Frames
FrameWindow
FrameWindows
FrameWork
GEMExport
GIFExport
Grid
Guide
Guides
HPGLExport
HPGLImport
ImageList
ImportFilter
JP2Export
JPGExport
Layer
LayerGroup
LayerGroupRange
LayerRange
Layers
Mask
ObjectLayer
Palette
Palettes
PDFVBASettings
PNGExport
PrintDocuments
Printer
PrintJob
PrintLayout
PrintOptions
PrintPages
PrintPostScript
PrintPrepress
PrintSeparations
PrintSettings
PrintTrapping
Rulers
ScreenRect
SeparationPlate
SeparationPlates
StatusText
StructImportCropOptions
StructImportOptions
StructImportRasterizeOptions
StructImportResampleOptions
StructPaletteOptions
StructSaveOptions
StructWebSaveOptions
SVGExport
SystemPrinters
TGAExport
Tools
TrapLayer
TrapLayers
ViewHost
ViewHosts
ViewWindow
ViewWindows
WEBPExport
Window
Windows
WMFExport
Workspace
Workspaces
WPGExport
Interfaces:
DIGlobalDocumentEvents
ICUIAutomation
ICUIBackgroundTask
ICUIControlData
ICUIDataSourceFactory
ICUIRunningBackgroundTask
ICUIRunningTask
ICUITask
ICUITaskManager
ICUIWarning
IGlobalDocument
IGlobalDocumentEvents
IImportCropHandler
IImportRasterizeHandler
IImportResampleHandler
IPaintDocumentEvents
IPDFSettingsInternal
IPrnVBAPrintDocument
IPrnVBAPrintPage
Enums:
AiVersion
BmpVersion
cdrAlignment
cdrColorType
cdrCompressionType
cdrDitherType
cdrDuotoneType
cdrFilter
cdrFittedOrientation
cdrFittedPlacement
cdrFittedQuadrant
cdrFittedVertPlacement
cdrFlipAxes
cdrHalftoneType
cdrImageMode
cdrImagePaletteType
cdrImageType
cdrImportMode
cdrLineSpacingType
cdrMergeMode
cdrPaletteID
cdrPaletteSortMethod
cdrPaletteType
cdrPatternCanvasSize
cdrPatternFillType
cdrRenderType
cdrTexturePropertyType
cdrTileOffsetType
cdrTransparencyAppliedTo
cdrTransparencyType
cdrUnit
cdrViewType
cdrWebSaveMode
cdrWindowArrangeStyle
cdrWindowState
CgmCharsetMode
CgmColorMode
CgmFallbackCode
CgmFileEncoding
CgmFormat
CgmOutputPrecision
CgmTextEncoding
cuiBarPosition
cuiBarProtection
cuiBarType
cuiDockHostOrientation
cuiDockItemType
cuiDockOperation
cuiMessageBoxFlags
cuiTaskPriority
cuiWindowState
DsfLinestyle
DxfBitmapType
DxfProjections
DxfScale
DxfUnits
DxfVersion
EpsBBoxType
EpsBitmapType
EpsColorProfile
EpsImageHeader
EpsObjectsColorType
EpsPSLevel
EpsSpotToColorType
EpsTIFFHeaderType
GifTransparency
HpglFillType
Jp2Progression
Jp2Subformat
pdfBitmapCompressionType
pdfColorMode
pdfColorProfile
pdfDisplayOnStart
pdfEditPermissions
pdfEncodingType
pdfEncryptionType
pdfEPSAs
pdfExportRange
pdfPrintPermissions
pdfSpotType
pdfTextExportMode
pdfVersion
pltOriginType
PngTransparency
pntAddinFilter
pntAlignType
pntBorderType
pntClipMaskMode
pntColorMaskMode
pntColorMaskType
pntCreationMode
pntDistributeType
pntDropShadowType
pntEdgeType
pntFeatherType
pntFrameBackground
pntFrameReference
pntGuideType
pntLayerType
pntLoadMode
pntMaskBrightnessModel
pntMaskMode
pntMatteType
pntMergeMode
pntSplitMode
pntToleranceMode
pntURLRegion
PrnBitmapColorMode
PrnColorMode
PrnFileMode
PrnImageTrap
PrnObjectsColorMode
PrnPageMatchingMode
PrnPageSet
PrnPaperOrientation
PrnPaperSize
PrnPDFStartup
PrnPlaceType
PrnPlateType
PrnPostScriptLevel
PrnPrintRange
PrnRegistrationStyle
PrnTrapType
SvgBmpExportType
SvgCharacterSubsetting
SvgDrawingPrecision
SvgEncoding
SvgStyling
SvgUnits
SvgVersion
TgaVersion
WpgColorMode
WpgVersion
C++/CLI
C++
C#
JS
VB
VBA
API Documentation
>
Corel PHOTO-PAINT
>
2023-v24.3
CorelScriptTools class
Represents a collection of Corel SCRIPT tools
Syntax:
Class
CorelScriptTools
Remarks:
The
CorelScriptTools
class represents a collection of Corel SCRIPT tools.
Methods:
Name
Description
AngleConvert
Converts a number from one angle measurement to another
ASin
Returns the inverse sine (arc sine) of a given value
BeginWaitCursor
Specifies the cursor as Busy, typically displaying it as an hour-glass; useful for scripts that perform long operations
BuildDate
Assigns a date value to a date variable
BuildTime
Assigns a time value to a date variable
Dec
Converts a hexadecimal (base-16) value into decimal (base-10) notation
EndWaitCursor
Returns the cursor to its normal state
FileAttr
Returns the attributes for a file or folder
FindFirstFolder
Locates the first file or folder in a folder that meets the specified search criteria
FindNextFolder
Locates the next file or folder that meets the search criteria specified by the FindFirstFolder
FormatTime
Converts a time expression into a string
FromCentimeters
Converts a numeric value from centimeters to tenths of a micron, which is the basic unit of measurement in Corel applications
FromCiceros
Converts a numeric value from Ciceros to tenths of a micron, which is the basic unit of measurement in Corel applications
FromDidots
Converts a numeric value from Didots to tenths of a micron, which is the basic unit of measurement in Corel applications
FromInches
Converts a numeric value from Inches to tenths of a micron, which is the basic unit of measurement in Corel applications
FromPicas
Converts a numeric value from Picas to tenths of a micron, which is the basic unit of measurement in Corel applications
FromPoints
Converts a numeric value from Points to tenths of a micron, which is the basic unit of measurement in Corel applications
GetAppHandle
Returns a numeric variable representing the Application Instance Handle for the Corel application that is running a script
GetColor
Gets a Color by specifying its RGB components
GetCommandLine
Returns the parameters used in the command line that launch a script
GetCurrFolder
Returns a string variable representing the name of the active Windows folder and path
GetDateInfo
Extracts the components of a date expression to numeric variables
GetFileBox
Displays a standard Windows Open or Save As dialog box
GetFolder
Displays a Windows Choose Folder dialog box
GetFont
Displays a standard Windows Font dialog box and returns the selected font settings
GetProcessInfo
Returns the status of an executable. Returned is a numeric variable that is passed a value indicating whether the executable is running.
GetScriptFolder
Returns, as a string, the path and the folder where the executing script resides
GetTempFolder
Returns, as a string, the path and the folder of the system's Windows temporary folder
GetTimeInfo
Extracts the components of a time expression to numeric variables
GetType
Returns the data type for an expression
GetVersion
Returns the version number of Corel SCRIPT or Windows
GetWinHandle
Returns the numeric variable that is associated with the handle for the window that is running a script
Kill
Deletes a file. Using this statement is the same as clicking File > Delete in the Windows Explorer
LengthConvert
Converts a number from one length measurement to another
Log
Returns the base-10 logarithm of a number
MkFolder
Creates a new folder and returns a boolean value to tell you if it was successfull
RegistryQuery
Returns the value data of a specified value key in the computer's Windows registry
Rename
Changes the name of a file or folder, or the path of a file
RmFolder
Deletes an empty folder
ToCentimeters
Converts a numeric value to Centimeters from tenths of a micron, which is the basic unit of measurement in Corel applications
ToCiceros
Converts a numeric value to Ciceros from tenths of a micron, which is the basic unit of measurement in Corel applications
ToDidots
Converts a numeric value to Didots from tenths of a micron, which is the basic unit of measurement in Corel applications
ToInches
Converts a numeric value to Inches from tenths of a micron, which is the basic unit of measurement in Corel applications
ToPicas
Converts a numeric value to Picas from tenths of a micron, which is the basic unit of measurement in Corel applications
ToPoints
Converts a numeric value to Points from tenths of a micron, which is the basic unit of measurement in Corel applications
Version Information:
Corel PHOTO-PAINT:
X7.4
,
X7
,
X7.6
,
X8
,
2017
,
2018
,
2019
,
2019.2
,
2020
,
2021
,
2020.1
,
2021.5
,
2022-v24
,
2022-v24.1
,
2022-v24.2
,
2023-v24.3
,
2023-v24.5
,
2024-v25