The Global functions can be called without a reference to an object in a publication. In Opus Pro, the publication and the page are Global objects and the functions here are properties of those objects.
In addition to these functions, there are also Global String functions that perform many simple string and conversion operations.
Hierarchy:
Only the specific functions listed under the Functions: heading below can be used with Global objects:
Class Hierarchy:
Global
Functions:
Change the user’s Display Mode (i.e. screen resolution) when running the publication | |
Copy a file to a new location of the user’s machine | |
Count the number of lines in a text object or string/variable | |
Count the number of words in a text object or string/variable | |
Create a new CD player Object | |
Debugging tool that uses the Script Console | |
Debugging tool that creates a new pane in the Script Console | |
Delete a file from the user’s machine | |
Delete a name/value pair for the system registry | |
Exit the publication, via an Exit page (if any) | |
Test if a file exists in a given location | |
Allows lines of code to be executed simultaneously | |
Return the value of a specified key in a specified section of an INI file | |
Return the contents of a section of an INI file as a string | |
Return the current state of the first system joystick | |
Return the current atate of the Num Lock, Caps Lock or Scroll Lock keys. | |
Get the last page in the publication | |
Get current user locale (language and country information) | |
Get a page by name | |
Get the percentage complete of the page downloaded | |
Get the position of the page downloaded | |
Get the total size of the page downloaded | |
Get the object’s Object Type e.g. button, image etc. | |
Go to the previous page in the publication | |
Go to the current page in the page history | |
Go to the next page in the publication | |
Go to the next page in the page history | |
Go to a random page within the chapter without repeating | |
Go to a given page | |
Go to the previous page in the page history | |
Go to a random page within the chapter | |
Open a Compile HTML help file. | |
Gets information from a remote server | |
Post information to a remote server | |
Test if a specific key is being pressed | |
Test if a specified special key is being pressed | |
IsPreview | Test it the current player is the Opus edior preview |
Open an external file | |
Open the Search dialog box | |
Open a URL | |
Returns a search object containing the publication search words | |
Play a track from a CD | |
Play a system sound from the users computer | |
Print the specified file | |
Print the specified object | |
Print the specified page or page Object | |
Return the value of a specified key in the system registry | |
Exit the publication immediately | |
Close the open log file | |
Get the filename of the current log file | |
Set the output file for logging actions | |
Write a string to the current log file | |
Return a number indicating a RGB colour value | |
Send an email | |
Set the value of a specified key in a specified section of an INI file | |
Change the state of the Num Lock, Caps Lock or Scroll Lock keys. | |
Open a standard Windows help file | |
Write a name/value pair to the system registry |