Hello World XP
Let's begin the tutorial with a customary Hello World example!
Suppose we want to type "Hello World" in the Run dialog box, like below.
To do this manually, we click on the Start menu, click on Run, and then type the string. These three steps can be automated easily using Sikuli Script.
First, we need to take the screenshots of the Start menu and Run respectively. Sikuli Script provides two methods to switch to the screen capture mode. The first method is to click on the camera button in the toolbar.
The second method is to press the hot-key (Ctrl + Shift + 2). This hot-key can be triggered even if the editor is minimized.
In the capture mode, the entire desktop freezes momentarily and turns darker. We can simply draw a rectangle around each target to capture its screenshot.
Attachments
-
xp_helloworld.png
(9.0 KB) - added by tomyeh
2 years ago.
