「Itts RUN AP.dll」修訂間的差異
跳至導覽
跳至搜尋
Vincentcheng2116(討論 | 貢獻) |
Vincentcheng2116(討論 | 貢獻) |
||
行 207: | 行 207: | ||
|} | |} | ||
− | '''腳本範例 04:''' | + | '''腳本範例 04: run PITTS_scripEditor.exe, check exist , close... ''' |
{| 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) | ||
行 214: | 行 214: | ||
<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> | ||
行 242: | 行 242: | ||
</i3> | </i3> | ||
<i4> | <i4> | ||
− | <Content> | + | <Content>PITTS_ScripEditor.exe</Content> |
<Description>P4 FileName</Description> | <Description>P4 FileName</Description> | ||
</i4> | </i4> | ||
行 254: | 行 254: | ||
</i6> | </i6> | ||
<i7> | <i7> | ||
− | <Content> | + | <Content></Content> |
<Description>P7 show</Description> | <Description>P7 show</Description> | ||
</i7> | </i7> | ||
行 267: | 行 267: | ||
<i10> | <i10> | ||
<Content>1</Content> | <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> | <Description>Value10</Description> | ||
</i10> | </i10> |
於 2024年11月29日 (五) 15:22 的修訂
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: run PITTS_scripEditor.exe, check exist , close...
Parse key XE10 Example Tree (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> |
ITTS example: 檔案:Parse key XE10 example.itts