「Itts RUN AP.dll」修訂間的差異
跳至導覽
跳至搜尋
Vincentcheng2116(討論 | 貢獻) |
|||
(未顯示由 2 位使用者於中間所作的 17 次修訂) | |||
行 1: | 行 1: | ||
=== '''ITTS_RUN_AP.dll 功能:''' === | === '''ITTS_RUN_AP.dll 功能:''' === | ||
− | + | '''這些功能 要在 版本 4.11.20.1 之後的版本 才能保證運行''' | |
− | |||
− | |||
− | |||
− | |||
+ | * 01:RUN | ||
+ | * 02:Stop exit | ||
+ | * 03:Run DOS AP | ||
+ | * 13:Run DOS AP and store the result in the file | ||
+ | * 04:Check application ( check Exit or not in process (already running or not)) | ||
+ | {| class="wikitable" style="margin:right" | ||
+ | |+ Parameter 內容 | ||
+ | |- | ||
+ | ! P1 (min) !! P2 (max) !! P3 !! P4 !! P5 !! P6 !! P7 !! P8 !! P9 !! P10 | ||
+ | |- | ||
+ | | || || 01:RUN || File Name || parameter || working path || show mode || -- || -- || debug | ||
+ | |- | ||
+ | | || || 02:stop || ClassName[fileName] || WindowName || || || || || | ||
+ | |- | ||
+ | | || || 03:RUN DOS || File Name (exe file) || parameter 執行檔帶的參數 || output file name || timeout (ms) || working path || -- || debug | ||
+ | |- | ||
+ | | || || 13:RUN DOS || File Name (exe file) || parameter 執行檔帶的參數 || output file name || timeout (ms) || working path || format string || debug | ||
+ | |- | ||
+ | | || || 04:check application existing || File Name || parameter || || || -- || -- || debug | ||
+ | |} | ||
− | + | {| class="wikitable" style="margin:right" | |
− | + | |+ P7 參數 說明 | |
− | + | |- | |
− | + | ! 标题文本1 !! 标题文本2 | |
− | + | |- | |
− | + | | P7 參數 || 說明 | |
− | + | |- | |
+ | | 0 || SW_Hide | ||
+ | |- | ||
+ | | 1 || SW_ShowNormal | ||
+ | |- | ||
+ | | 2 || SW_SHOWMINIMIZED | ||
+ | |- | ||
+ | | 3 || SW_SHOWMAXIMIZED | ||
+ | |- | ||
+ | | 4 || SW_SHOWNOACTIVATE | ||
+ | |- | ||
+ | | 5 || SW_SHOW | ||
+ | |- | ||
+ | | 6 || SW_SHOWMINIMIZED | ||
+ | |- | ||
+ | | 7 || SW_SHOWMINNOACTIVE | ||
+ | |- | ||
+ | | 8 || SW_SHOWNA | ||
+ | |- | ||
+ | | 9 || SW_RESTORE (default) | ||
+ | |- | ||
+ | | 10 || SW_SHOWDEFAULT | ||
+ | |} | ||
− | '''腳本範例 01:''' | + | '''腳本範例 01: open www.google.com''' |
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
− | ! | + | ! 01:RUN (copy scrip contents phase to scrip editor) |
|- | |- | ||
| | | | ||
行 84: | 行 122: | ||
|} | |} | ||
− | '''腳本範例 02:''' | + | '''腳本範例 02: 01 use notepad.exe to open C:\WINDOWS\SYSTEM.INI''' |
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
− | ! | + | ! 01:RUN (copy scrip contents phase to scrip editor) |
|- | |- | ||
| | | | ||
行 151: | 行 189: | ||
|} | |} | ||
− | '''腳本範例 | + | '''腳本範例 03: 13 Check Python version ''' |
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! 13:RUN DOS AP and get result (copy scrip contents phase to scrip editor) | ||
+ | |- | ||
+ | | | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> run python</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> ans0;ans1;</FieldName> | ||
+ | <FieldNumber> </FieldNumber> | ||
+ | <ErrorCode> </ErrorCode> | ||
+ | <RetryTimes> 0</RetryTimes> | ||
+ | <RetryDelay> 0</RetryDelay> | ||
+ | <Process> ;</Process> | ||
+ | <FieldType> ;;;;</FieldType> | ||
+ | <Parameter> | ||
+ | <i1> | ||
+ | <Content></Content> | ||
+ | <Description>Min</Description> | ||
+ | </i1> | ||
+ | <i2> | ||
+ | <Content></Content> | ||
+ | <Description>Max</Description> | ||
+ | </i2> | ||
+ | <i3> | ||
+ | <Content>13:RUN DOS AP and get result</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>python.exe</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>--version</Content> | ||
+ | <Description>P5 parameter</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content>['&testplanpath'+"result.txt"]</Content> | ||
+ | <Description>P6 Output File Name</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content>['d:\python311']</Content> | ||
+ | <Description>P9 work path</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content>debug</Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i9> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | |||
+ | |} | ||
+ | |||
+ | '''腳本範例 04:03 04 02 run PITTS_scripEditor.exe, check exist , close... ''' | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
− | ! | + | ! 01:RUN (copy scrip contents phase to scrip editor) |
|- | |- | ||
| | | | ||
<Item> | <Item> | ||
<Text> </Text> | <Text> </Text> | ||
− | <Description> RUN | + | <Description> RUN PITTS_ScripEditor.exe</Description> |
<ItemType> 2</ItemType> | <ItemType> 2</ItemType> | ||
<Skip> 1</Skip> | <Skip> 1</Skip> | ||
行 186: | 行 287: | ||
</i3> | </i3> | ||
<i4> | <i4> | ||
− | <Content> | + | <Content>PITTS_ScripEditor.exe</Content> |
<Description>P4 FileName</Description> | <Description>P4 FileName</Description> | ||
</i4> | </i4> | ||
行 198: | 行 299: | ||
</i6> | </i6> | ||
<i7> | <i7> | ||
− | <Content> | + | <Content></Content> |
<Description>P7 show</Description> | <Description>P7 show</Description> | ||
</i7> | </i7> | ||
行 215: | 行 316: | ||
</Parameter> | </Parameter> | ||
</Item> | </Item> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<Item> | <Item> | ||
<Text> </Text> | <Text> </Text> | ||
− | <Description> | + | <Description> 04:check EXIT</Description> |
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> return</FieldName> | ||
+ | <FieldNumber> </FieldNumber> | ||
+ | <ErrorCode> </ErrorCode> | ||
+ | <RetryTimes> 0</RetryTimes> | ||
+ | <RetryDelay> 0</RetryDelay> | ||
+ | <Process> </Process> | ||
+ | <FieldType> </FieldType> | ||
+ | <Parameter> | ||
+ | <i1> | ||
+ | <Content></Content> | ||
+ | <Description>Min</Description> | ||
+ | </i1> | ||
+ | <i2> | ||
+ | <Content></Content> | ||
+ | <Description>Max</Description> | ||
+ | </i2> | ||
+ | <i3> | ||
+ | <Content>04:check EXIT</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content></Content> | ||
+ | <Description>P4 ClassName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>Test Scrip Editor</Content> | ||
+ | <Description>P5 WindowName</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content></Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P7</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content></Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> exit Test Scrip Editor</Description> | ||
<ItemType> 2</ItemType> | <ItemType> 2</ItemType> | ||
<Skip> 1</Skip> | <Skip> 1</Skip> | ||
行 249: | 行 401: | ||
</i2> | </i2> | ||
<i3> | <i3> | ||
− | <Content> | + | <Content>02:EXIT AP</Content> |
<Description>P3 command</Description> | <Description>P3 command</Description> | ||
</i3> | </i3> | ||
<i4> | <i4> | ||
− | <Content> | + | <Content></Content> |
− | <Description>P4 | + | <Description>P4 ClassName</Description> |
</i4> | </i4> | ||
<i5> | <i5> | ||
− | <Content></Content> | + | <Content>Test Scrip Editor</Content> |
− | <Description>P5 | + | <Description>P5 WindowName</Description> |
</i5> | </i5> | ||
<i6> | <i6> | ||
行 265: | 行 417: | ||
</i6> | </i6> | ||
<i7> | <i7> | ||
− | <Content> | + | <Content></Content> |
− | <Description>P7 | + | <Description>P7</Description> |
</i7> | </i7> | ||
<i8> | <i8> | ||
行 277: | 行 429: | ||
</i9> | </i9> | ||
<i10> | <i10> | ||
− | <Content> | + | <Content>debug</Content> |
<Description>Value10</Description> | <Description>Value10</Description> | ||
</i10> | </i10> | ||
行 285: | 行 437: | ||
|} | |} | ||
+ | '''腳本範例 05: run cmd command to copy, delete file. ''' | ||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! 03:RUN DOS AP (copy scrip contents phase to scrip editor) | ||
+ | |- | ||
+ | | | ||
+ | |||
+ | <Item> | ||
+ | <Text> dos cmd test</Text> | ||
+ | <Description> </Description> | ||
+ | <ItemType> 1</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <SubItem> | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> RUN dos copy</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> </FieldName> | ||
+ | <FieldNumber> </FieldNumber> | ||
+ | <ErrorCode> </ErrorCode> | ||
+ | <RetryTimes> 0</RetryTimes> | ||
+ | <RetryDelay> 0</RetryDelay> | ||
+ | <Process> </Process> | ||
+ | <FieldType> </FieldType> | ||
+ | <Parameter> | ||
+ | <i1> | ||
+ | <Content></Content> | ||
+ | <Description>Min</Description> | ||
+ | </i1> | ||
+ | <i2> | ||
+ | <Content></Content> | ||
+ | <Description>Max</Description> | ||
+ | </i2> | ||
+ | <i3> | ||
+ | <Content>03:RUN DOS AP</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>cmd.exe</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>/c copy c:\Windows\system.ini c:\aaa\systemini.bak</Content> | ||
+ | <Description>P5 parameter</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content></Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P7</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content></Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | <Item> | ||
+ | <Text> </Text> | ||
+ | <Description> RUN dos del cmd</Description> | ||
+ | <ItemType> 2</ItemType> | ||
+ | <Skip> 1</Skip> | ||
+ | <ItemSection1> DLL</ItemSection1> | ||
+ | <ItemSection2> EXECUTE</ItemSection2> | ||
+ | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | ||
+ | <FailAction> </FailAction> | ||
+ | <FieldName> </FieldName> | ||
+ | <FieldNumber> </FieldNumber> | ||
+ | <ErrorCode> </ErrorCode> | ||
+ | <RetryTimes> 0</RetryTimes> | ||
+ | <RetryDelay> 0</RetryDelay> | ||
+ | <Process> </Process> | ||
+ | <FieldType> </FieldType> | ||
+ | <Parameter> | ||
+ | <i1> | ||
+ | <Content></Content> | ||
+ | <Description>Min</Description> | ||
+ | </i1> | ||
+ | <i2> | ||
+ | <Content></Content> | ||
+ | <Description>Max</Description> | ||
+ | </i2> | ||
+ | <i3> | ||
+ | <Content>03:RUN DOS AP</Content> | ||
+ | <Description>P3 command</Description> | ||
+ | </i3> | ||
+ | <i4> | ||
+ | <Content>cmd.exe</Content> | ||
+ | <Description>P4 FileName</Description> | ||
+ | </i4> | ||
+ | <i5> | ||
+ | <Content>/c del c:\aaa\systemini.bak</Content> | ||
+ | <Description>P5 parameter</Description> | ||
+ | </i5> | ||
+ | <i6> | ||
+ | <Content></Content> | ||
+ | <Description>P6 Path</Description> | ||
+ | </i6> | ||
+ | <i7> | ||
+ | <Content></Content> | ||
+ | <Description>P7</Description> | ||
+ | </i7> | ||
+ | <i8> | ||
+ | <Content></Content> | ||
+ | <Description>P8</Description> | ||
+ | </i8> | ||
+ | <i9> | ||
+ | <Content></Content> | ||
+ | <Description>P9</Description> | ||
+ | </i9> | ||
+ | <i10> | ||
+ | <Content></Content> | ||
+ | <Description>Value10</Description> | ||
+ | </i10> | ||
+ | </Parameter> | ||
+ | </Item> | ||
+ | </SubItem> | ||
+ | </Item> | ||
+ | |||
+ | |} | ||
'''ITTS example:''' | '''ITTS example:''' | ||
[[檔案:Parse key XE10 example.itts]] | [[檔案:Parse key XE10 example.itts]] |
於 2025年7月31日 (四) 11:45 的最新修訂
ITTS_RUN_AP.dll 功能:[編輯]
這些功能 要在 版本 4.11.20.1 之後的版本 才能保證運行
- 01:RUN
- 02:Stop exit
- 03:Run DOS AP
- 13:Run DOS AP and store the result in the file
- 04:Check application ( check Exit or not in process (already running or not))
P1 (min) | P2 (max) | P3 | P4 | P5 | P6 | P7 | P8 | P9 | P10 |
---|---|---|---|---|---|---|---|---|---|
01:RUN | File Name | parameter | working path | show mode | -- | -- | debug | ||
02:stop | ClassName[fileName] | WindowName | |||||||
03:RUN DOS | File Name (exe file) | parameter 執行檔帶的參數 | output file name | timeout (ms) | working path | -- | debug | ||
13:RUN DOS | File Name (exe file) | parameter 執行檔帶的參數 | output file name | timeout (ms) | working path | format string | debug | ||
04:check application existing | File Name | parameter | -- | -- | debug |
标题文本1 | 标题文本2 |
---|---|
P7 參數 | 說明 |
0 | SW_Hide |
1 | SW_ShowNormal |
2 | SW_SHOWMINIMIZED |
3 | SW_SHOWMAXIMIZED |
4 | SW_SHOWNOACTIVATE |
5 | SW_SHOW |
6 | SW_SHOWMINIMIZED |
7 | SW_SHOWMINNOACTIVE |
8 | SW_SHOWNA |
9 | SW_RESTORE (default) |
10 | SW_SHOWDEFAULT |
腳本範例 01: open www.google.com
01:RUN (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> RUN www</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> </FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>01:RUN</Content> <Description>P3 command</Description> </i3> <i4> <Content>www.google.com</Content> <Description>P4 FileName</Description> </i4> <i5> <Content></Content> <Description>P5 parameter</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content>9</Content> <Description>P7 show</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content>1</Content> <Description>Value10</Description> </i10> </Parameter> </Item> |
腳本範例 02: 01 use notepad.exe to open C:\WINDOWS\SYSTEM.INI
01:RUN (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> RUN note pad</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> res</FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>01:RUN</Content> <Description>P3 command</Description> </i3> <i4> <Content>notepad.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>C:\WINDOWS\SYSTEM.INI</Content> <Description>P5 parameter</Description> </i5> <i6> <Content>C:\WINDOWS\</Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content>debug</Content> <Description>Value10</Description> </i10> </Parameter> </Item> |
腳本範例 03: 13 Check Python version
13:RUN DOS AP and get result (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> run python</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> ans0;ans1;</FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> ;</Process> <FieldType> ;;;;</FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>13:RUN DOS AP and get result</Content> <Description>P3 command</Description> </i3> <i4> <Content>python.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>--version</Content> <Description>P5 parameter</Description> </i5> <i6> <Content>['&testplanpath'+"result.txt"]</Content> <Description>P6 Output File Name</Description> </i6> <i7> <Content></Content> <Description>P8</Description> </i7> <i8> <Content>['d:\python311']</Content> <Description>P9 work path</Description> </i8> <i9> <Content>debug</Content> <Description>Value10</Description> </i9> </Parameter> </Item> |
腳本範例 04:03 04 02 run PITTS_scripEditor.exe, check exist , close...
01:RUN (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> </Text> <Description> RUN PITTS_ScripEditor.exe</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> </FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>01:RUN</Content> <Description>P3 command</Description> </i3> <i4> <Content>PITTS_ScripEditor.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content></Content> <Description>P5 parameter</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7 show</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content>1</Content> <Description>Value10</Description> </i10> </Parameter> </Item> <Item> <Text> </Text> <Description> 04:check EXIT</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> return</FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>04:check EXIT</Content> <Description>P3 command</Description> </i3> <i4> <Content></Content> <Description>P4 ClassName</Description> </i4> <i5> <Content>Test Scrip Editor</Content> <Description>P5 WindowName</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> <Item> <Text> </Text> <Description> exit Test Scrip Editor</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> </FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>02:EXIT AP</Content> <Description>P3 command</Description> </i3> <i4> <Content></Content> <Description>P4 ClassName</Description> </i4> <i5> <Content>Test Scrip Editor</Content> <Description>P5 WindowName</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content>debug</Content> <Description>Value10</Description> </i10> </Parameter> </Item> |
腳本範例 05: run cmd command to copy, delete file.
03:RUN DOS AP (copy scrip contents phase to scrip editor) |
---|
<Item> <Text> dos cmd test</Text> <Description> </Description> <ItemType> 1</ItemType> <Skip> 1</Skip> <SubItem> <Item> <Text> </Text> <Description> RUN dos copy</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> </FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>03:RUN DOS AP</Content> <Description>P3 command</Description> </i3> <i4> <Content>cmd.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>/c copy c:\Windows\system.ini c:\aaa\systemini.bak</Content> <Description>P5 parameter</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> <Item> <Text> </Text> <Description> RUN dos del cmd</Description> <ItemType> 2</ItemType> <Skip> 1</Skip> <ItemSection1> DLL</ItemSection1> <ItemSection2> EXECUTE</ItemSection2> <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> <FailAction> </FailAction> <FieldName> </FieldName> <FieldNumber> </FieldNumber> <ErrorCode> </ErrorCode> <RetryTimes> 0</RetryTimes> <RetryDelay> 0</RetryDelay> <Process> </Process> <FieldType> </FieldType> <Parameter> <i1> <Content></Content> <Description>Min</Description> </i1> <i2> <Content></Content> <Description>Max</Description> </i2> <i3> <Content>03:RUN DOS AP</Content> <Description>P3 command</Description> </i3> <i4> <Content>cmd.exe</Content> <Description>P4 FileName</Description> </i4> <i5> <Content>/c del c:\aaa\systemini.bak</Content> <Description>P5 parameter</Description> </i5> <i6> <Content></Content> <Description>P6 Path</Description> </i6> <i7> <Content></Content> <Description>P7</Description> </i7> <i8> <Content></Content> <Description>P8</Description> </i8> <i9> <Content></Content> <Description>P9</Description> </i9> <i10> <Content></Content> <Description>Value10</Description> </i10> </Parameter> </Item> </SubItem> </Item> |
ITTS example: 檔案:Parse key XE10 example.itts