We omit the Scriptonit object itself from the calls below; usually it's
sci so the final calls will be like
sci.exeArguments(). The base interface is the only one without a group prefix.
Some really simple calls to get information about where you are and when. Later, in future versions, these calls might be outsourced into separate interface classes (almost surely a Location and a Time class will appear, but let's not spoil the surprise); anyway, right now they're here and they're very convenient without a prefix.
|Returns the path of your EXE file (without the name); always ends with backslash
|Returns the path for your
|Returns the path where your exe was started from (in php, it's
|Returns all command-line arguments as one multiline string
|Returns current (or a given) date/time in
1999-11-12 22:33:44 format
|Returns date/time as an ISO string, like
|Returns the long textual representation of date/time, like
Wed Jun 30 2021 13:40:48 GMT+0200 (Central Europe Daylight Time)
|Runs DOS command, waits for it to finish, returns output as string – Read more
|Runs DOS command and starts capturing output; channels it into callback functions – Read more
|Kills the running process of the last
shell.capture; returns whether it stopped
|Checks if the last capture command has stopped (or finished)
These calls only serve one purpose: to deal with the application window itself. They look plenty but they are just glorified move/resize tools. One important example is window.close, this is an exit point for your application. Also, setTitle can come in handy for reporting progress or displaying information on the taskbar while the app is in background.
|Sets the application window title (together with the taskbar caption)
|Minimizes the applicaton window
|Maximizes the applicaton window
|Restores the applicaton window to its normal state
|Quits the application
|Sets the application window x/y position
left coordinate of the window (distance from left screen edge in pixels)
top coordinate of the window (distance from top screen edge in pixels)
left coordinate of the window; opposite of setLeft, obviously
|Sets window width/height together
|Sets width individually
|Sets height individually
|Returns window width
|Returns window height
|Sets window border, like
None, and a few others.
For files, you don't really need more than this; a lot can be achieved thru the shell interface. (See the FolderStats demo app.) A next version of Scriptonit will probably be equipped with more direct tools to work with attributes, access rights, copying/moving and so on but since you have standard DOS commands for almost everything (and you can redirect back and forth and filter and only read the final result to a string), it's really quite sufficient.
|Checks if a file exists; full path or relative to workingPath is accepted
|Loads the whole contents of a file to a variable
|Writes a string to a file (fully overwriting it!)
|Appends a string to a file (creates the file if it doesn't exist)
|Deletes a file
|Returns the logical drives available (one per row)
|Lists all directory entries from a certain path, matching a certain mask – Read more
|Same as file.list but only files will be included – Read more
|Same as file.list but only directories – Read more
|Returns tab-separated rows for every file, with date and size before filename – Read more
Audio interface is one call only; this is because MCI is an all-purpose language in multimedia, much like SQL, so one function will make you able to do a lot of things. The only problem is how - it's not easy to find a reference for MCI; I tried my best. If you look for MCI resources, you'll end up with lots of useless references from Microsoft, but keep trying - what you need is MCI string interface.
|Executes an MCI string. Here are some examples of what it can do for you.