![]()
Creating a Script Execution Button |
|
After you write a script, you can place a button on a form to execute that script. When you click the button, ChemFinder looks for a script with the corresponding name in one of three places:
The corresponding name that ChemFinder looks for is one with the first 8 characters of the button label, with all spaces replaced by underscores, and the .cfs extension. For example, you have a script that displays a molecule's NMR spectrum named Show spectrum.cfs. You can run this script by clicking a button you create instead of choosing it from the Scripts menu. If the button label is "Show Spectrum" ChemFinder looks for the script "SHOW_SPE.CFS" and executes it to display the spectrum. To place a button on a form:
To run the script:
|
©2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement Tel 800 315-7300 / 617 588-9300 Fax 617 588-9390 Email info@cambridgesoft.com CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA |