Is it possible to call a script in Digital Micrograph from the Windows command line? I cannot seem to find information on command line options, if any are available, for DM.
相关问题
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
- I want to trace logs using a Macro multi parameter
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- CosmosDB emulator can't start since port is al
- How to print to stdout from Python script with .py
- Equivalent to window.setTimeout() for C++
No, this is not possible for GMS version 2 or lower. There are no command-line parameters for script-launch in DigitalMicrograph.
However, if you want to run a script automatically on start-up of DM, you can do this by installing a script as plugin (.gtk file).
From GMS 3.0.1 onward, there is an optional start-up parameter for the application.
You can type (in the command prompt):
Similar, you can type things like
Unfortunately, earlier version of GMS do not have this option.
Note: When you call DigitalMicrograph.exe while the application is already running, it will not start the program again but instead activate the already running application. Therefore this can be used to launch a script in an already running application.
This also opens a nice way to run DM-scripts from a different editor like NotePad++.
In NotePad++ you can configure a "run" command. If you press F5 you specify a command to be called. So to have this run a DM script, use a line like the following:
You can then execute a script writtin within NotePad++ simply by selecting this run.