This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//call example: | |
//run "RunOtherScriptWithParams" [MyText] | |
params MyText | |
TypeText MyText,Return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//use example: | |
//shell "c:\windows\system32\cmd.exe", <</c "ipconfig > C:\Users\[UserName]\tmp.txt">> | |
shell "c:\windows\system32\cmd.exe", <</c "[YourCommand] > [FileFullPath]">> | |
put file "[FileFullPath]" into FileContents | |
log FileContents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Put 10 into NumberOfRetries | |
Put 0 into i | |
Repeat While i < NumberOfRetries | |
Try | |
Connect [ConnectionName] | |
Log ("Connect Ok") | |
Put i + NumberOfRetries into i | |
Catch | |
LogWarning ("Connect NG Try : " & i +1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set ExcelFile to Workbook(ResourcePath("Data.xlsx")) | |
set ExcelSheet to ExcelFile.Wrksheet("Sheet1") | |
put ((Cell(ExcelSheet, "A1"),),) into MyCellA1 | |
log MyCellA1 | |
put ((ExcelSheet.Cell(1,2),),) into MyCellA2 | |
log MyCellA2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Put ReadText("[ImageNameTopLeft]","[ImageNameBottomRight]") into MyText | |
log MyText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
put EveryImageLocation("[TargetImage]") into MyImageList | |
log MyImageList | |
//If the [TargetImage] is a collection, sorting may be necessary | |
sort MyImageList | |
//Click Selected Image | |
Click item 1 of MyImageList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drag (remotescreensize().x*0.5,remotescreensize().y-1) | |
wait 1 | |
moveto (remotescreensize()*0.5) | |
wait 1 | |
drag (remotescreensize().x,remotescreensize().y*0.5) | |
drop | |
wait 10 | |
typetext homebutton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set CaptureArea to (0, 0, 100, 100) -- Set Capture Area. | |
CaptureScreen "C:\Users\[UserName]\Image-Before.png", CaptureArea | |
//Your Actions | |
CaptureScreen "C:\Users\[UserName]\Image-After.png", CaptureArea | |
if file "C:\Users\[UserName]\Image-Before.png" as data is equal to file "C:\Users\[UserName]\Image-After.png" as data then | |
log "Image-Before and Image-After are same images." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ask "Enter your name:" | |
log it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* add to file of "UseGherkinSample.feature" *) | |
//Feature: Get Screen Capture | |
// Scenario: Get Screen Capture | |
// Given connect "localhost" | |
// When get screenshot | |
// Then disconnect "localhost" | |
(* UseGherkinSample.script *) | |
to handle connect_STR | |
params str1 |