This file contains hidden or 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 (5,4,2,3,1) into MyList | |
| log MyList | |
| sort descending MyList | |
| log MyList --5,4,3,2,1 | |
| sort ascending MyList | |
| log MyList --1,2,3,4,5 |
This file contains hidden or 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
| repeat 3 times | |
| try | |
| [YourAction] | |
| exit repeat | |
| end try | |
| end repeat |
This file contains hidden or 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
| Click "[ImageName]" | |
| Click "[ImageName]" + (0,-30) --(x, y) |
This file contains hidden or 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 "ABC,DEF,GHI"&return&"GHI,DEF,ABC" into array | |
| put item 2 of line 1 of array & item 2 of line 2 of array into A | |
| answer A -- "DEFDEF" Is displayed |
This file contains hidden or 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 Imagelocation("X-ImageName").x into LocationX | |
| Put Imagelocation("Y-ImageName").y into LocationY | |
| Log ReadText(LocationX, LocationY) |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
OlderNewer