示例:run /min c:\apps\myapp.exe myparms
对于 [style],可以设置以下参数:
- /normal 激活窗口并按其原始大小和位置显示。
- /min 激活窗口并将其显示为图标。
- /max 激活窗口并将其最大化显示。
9、Run Applet 在宏中指定要运行的 Java Applet
格式: [Run Applet] Applet.class
示例:[Run Applet] sample66.class
注:指定的 applet 类必须存在于与包含该宏的 .WS 文件相同的目录路径中。
10、“等待条件”引起宏暂停,直到超时到期或者指定的等待条件发生。您必须设置至少一个选项。
wait [ < timeout > ] [ < wait condition> ]
超时(可选的)
您能够在‘timeout’语句中使用下列单位:
o msec
o millisecond
o milliseconds
o sec
o second
o seconds
o minute
o minutes
o hour
o hours
例如要在“dspjob”命令前等待 10 秒:
wait 10 seconds
"dspjob
[enter]
11、 等待条件(可选的): 对于“等待条件”选项,您可以使用 while 或 until, cursor 或 string 和 at (xxx, xxx) 或不用:
o while cursor at(光标行, 光标列)
当光标在(光标行, 光标列)时,会话等待。
o while "string"
当“string”是屏幕中某个地方时,会话等待。
o while "string" at(光标行, 光标列)
当“string”在(光标行,光标列)时,会话等待。
o until cursor at(光标行, 光标列)
会话等待直到在光标移动到(光标行,光标列)。
o until "string"
会话等待直到“string”显示在屏幕中的某个地方。
o until "string" at(光标行, 光标列)
会话等待直到“string”显示在(光标行,光标列)。
示例: