「Itts RUN AP.dll」修訂間的差異
跳至導覽
跳至搜尋
Vincentcheng2116(討論 | 貢獻) |
Vincentcheng2116(討論 | 貢獻) |
||
行 10: | 行 10: | ||
− | '''腳本範例 01:''' | + | '''腳本範例 01: open www.google.com''' |
{| 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) | ||
行 77: | 行 77: | ||
|} | |} | ||
− | '''腳本範例 02:''' | + | '''腳本範例 02: use notepad.exe to open C:\WINDOWS\SYSTEM.INI''' |
{| 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) | ||
行 144: | 行 144: | ||
|} | |} | ||
− | '''腳本範例 03:''' | + | '''腳本範例 03: Check Python version ''' |
{| 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) | ||
行 392: | 行 392: | ||
|} | |} | ||
+ | '''腳本範例 05: run cmd command to copy, delete file. ''' | ||
+ | {| class="mw-collapsible mw-collapsed wikitable" | ||
+ | ! Parse key XE10 Example Tree (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]] |
於 2024年11月29日 (五) 15:26 的修訂
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: open www.google.com
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: use notepad.exe to open C:\WINDOWS\SYSTEM.INI
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: Check Python version
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> |
腳本範例 05: run cmd command to copy, delete file.
Parse key XE10 Example Tree (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