「Itts RUN AP.dll」修訂間的差異
跳至導覽
跳至搜尋
Vincentcheng2116(討論 | 貢獻) |
Vincentcheng2116(討論 | 貢獻) |
||
行 144: | 行 144: | ||
|} | |} | ||
− | '''腳本範例 | + | '''腳本範例 03:''' |
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ||
行 151: | 行 151: | ||
<Item> | <Item> | ||
<Text> </Text> | <Text> </Text> | ||
− | <Description> | + | <Description> run python</Description> |
<ItemType> 2</ItemType> | <ItemType> 2</ItemType> | ||
<Skip> 1</Skip> | <Skip> 1</Skip> | ||
行 158: | 行 158: | ||
<ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | <ItemCommand> ITTS_RUN_AP.dll</ItemCommand> | ||
<FailAction> </FailAction> | <FailAction> </FailAction> | ||
− | <FieldName> </FieldName> | + | <FieldName> ans0;ans1;</FieldName> |
<FieldNumber> </FieldNumber> | <FieldNumber> </FieldNumber> | ||
<ErrorCode> </ErrorCode> | <ErrorCode> </ErrorCode> | ||
<RetryTimes> 0</RetryTimes> | <RetryTimes> 0</RetryTimes> | ||
<RetryDelay> 0</RetryDelay> | <RetryDelay> 0</RetryDelay> | ||
− | <Process> </Process> | + | <Process> ;</Process> |
− | <FieldType> </FieldType> | + | <FieldType> ;;;;</FieldType> |
<Parameter> | <Parameter> | ||
<i1> | <i1> | ||
行 175: | 行 175: | ||
</i2> | </i2> | ||
<i3> | <i3> | ||
− | <Content> | + | <Content>13:RUN DOS AP and get result</Content> |
<Description>P3 command</Description> | <Description>P3 command</Description> | ||
</i3> | </i3> | ||
<i4> | <i4> | ||
− | <Content> | + | <Content>python.exe</Content> |
<Description>P4 FileName</Description> | <Description>P4 FileName</Description> | ||
</i4> | </i4> | ||
<i5> | <i5> | ||
− | <Content></Content> | + | <Content>--version</Content> |
<Description>P5 parameter</Description> | <Description>P5 parameter</Description> | ||
</i5> | </i5> | ||
<i6> | <i6> | ||
− | <Content></Content> | + | <Content>['&testplanpath'+"result.txt"]</Content> |
− | <Description>P6 | + | <Description>P6 Output File Name</Description> |
</i6> | </i6> | ||
<i7> | <i7> | ||
− | <Content> | + | <Content></Content> |
− | <Description> | + | <Description>P8</Description> |
</i7> | </i7> | ||
<i8> | <i8> | ||
− | <Content></Content> | + | <Content>['d:\python311']</Content> |
− | <Description> | + | <Description>P9 work path</Description> |
</i8> | </i8> | ||
<i9> | <i9> | ||
− | <Content></Content> | + | <Content>debug</Content> |
− | <Description> | + | <Description>Value10</Description> |
</i9> | </i9> | ||
− | |||
− | |||
− | |||
− | |||
</Parameter> | </Parameter> | ||
</Item> | </Item> | ||
行 211: | 行 207: | ||
|} | |} | ||
− | '''腳本範例 | + | '''腳本範例 04:''' |
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) | ! Parse key XE10 Example Tree (copy scrip contents phase to scrip editor) |
於 2024年11月29日 (五) 15:16 的修訂
ITTS_RUN_AP.dll 功能:
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))
•當勾選Edit cell時可以學習按鍵代碼,增加按鍵如上圖
腳本範例 01:
Parse key XE10 Example Tree (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:
Parse key XE10 Example Tree (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:
Parse key XE10 Example Tree (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:
Parse key XE10 Example Tree (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> |
ITTS example: 檔案:Parse key XE10 example.itts