4
<style type="text/css">
7
font-family: "Osaka-mono", Monospace;
10
white-space: pre-wrap; /* css-3 */
11
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
12
white-space: -pre-wrap; /* Opera 4-6 */
13
white-space: -o-pre-wrap; /* Opera 7 */
14
word-wrap: break-word; /* Internet Explorer 5.5+ */
15
width: 99%; /* remove horizontal scroll-bar when viewing in IE7 */
18
vertical-align: middle;
20
border: 1px solid #ccc;
22
-moz-border-radius: 5px;
23
-webkit-border-radius: 5px;
24
-moz-box-shadow: 1px 1px 1px gray;
25
-webkit-box-shadow: 1px 1px 2px gray;
31
color: rgb(63, 127, 127);
35
color: rgb(128, 0, 0);
39
color: rgb(128, 64, 0);
43
color: rgb(200, 0, 200);
52
border-bottom: 1px solid #ddd;
63
font-family: "Trebuchet MS", Arial, Sans-Serif;
70
<h2>rob-new.sikuli</h2> <a href="rob-new.zip">(Download this script)</a>
72
<pre class="sikuli-code">
73
firefox = App.open(<span class="str">"Firefox"</span>)
74
<span class="kw">with</span> Region(firefox.window()):
75
<span class="kw">while</span> <span class="kw">not</span> <span class="skw">find</span>(Pattern(<img src="1254347537847.png" />).similar(<span class="dig">0.93</span>)):
76
<span class="skw">sleep</span>(<span class="dig">1</span>)
77
<span class="skw">click</span>(<img src="1273528585844.png" />)
79
<span class="skw">click</span>(<img src="1273528622709.png" />)
80
<span class="skw">popup</span>(<span class="str">"Rob just said something!"</span>)