在command窗口可以用replay xxx.scr重播
skill可以用
axlShell("replay xxx.scr")
但用这个指令,经常会出现E-Can't found window;form.xxx这种问题
比如我需要Export dxf,录制的scr如下
scriptmode +c
version 15.51
setwindow pcb
dxf out
setwindow form.dxf_out
FORM dxf_out dxffile top
FORM dxf_out layercnvfile TOP_1
FORM dxf_out edit
setwindow form.dxfOutMapping
FORM dxfOutMapping selectall YES
FORM dxfOutMapping newlayer
fillin "top"
FORM dxfOutMapping map
FORM dxfOutMapping done
setwindow form.dxf_out
FORM dxf_out exportsymbols NO
FORM dxf_out drillinfo NO
FORM dxf_out nomultisegpoly NO
FORM dxf_out monochrome YES
FORM dxf_out execute
FORM dxf_out close
setwindow pcb
反馈如下:
Script version: 15.51
E- Can't find window; form.dxf_out
E- Command not found: FORM dxf_out dxffile top
E- Command not found: FORM dxf_out layercnvfile TOP_1
E- Command not found: FORM dxf_out edit
E- Can't find window; form.dxfOutMapping
E- Command not found: FORM dxfOutMapping selectall YES
E- Command not found: FORM dxfOutMapping newlayer
E- Command not found: fillin top
E- Command not found: FORM dxfOutMapping map
E- Command not found: FORM dxfOutMapping done
E- Can't find window; form.dxf_out
E- Command not found: FORM dxf_out exportsymbols NO
E- Command not found: FORM dxf_out drillinfo NO
E- Command not found: FORM dxf_out nomultisegpoly NO
E- Command not found: FORM dxf_out monochrome YES
E- Command not found: FORM dxf_out execute
E- Command not found: FORM dxf_out close
用replay xxx.scr就不会有这个问题;用axlShell("replay xxx.scr")就出现了