-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·127 lines (121 loc) · 3.34 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
<title>Xdotool Blocks</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js" ></script>
<script type="text/javascript" src="blockly_compressed.js"></script>
<script type="text/javascript" src="blocks.js"></script>
<script type="text/javascript" src="generator.js"></script>
<script type="text/javascript" src="blocks-code-gen.js"></script>
<style type="text/css">
html, body {
height: 99%;
width: 99%;
}
#blocklyArea {
width: 90%;
height: 90%;
min-height: 90%;
}
#controls {
}
#script-output {
font-family: monospace;
overflow-y: auto;
overflow-x: auto;
width: 100%;
border: 1px solid black;
}
#blocklyDiv {
position: absolute;
}
</style>
</head>
<body>
<div id="blocklyArea" >
<div id="blocklyDiv" style="position: absolute;" ></div>
</div>
<div id="controls" >
<button type="button" onclick="generateCode();" >Create Script</button><br />
<pre id="script-output" rows="10" ></pre>
</div>
<xml xmlns="http://www.w3.org/1999/xhtml" id="toolbox" style="display: none;">
<category name="Mouse">
<block type="movemouse">
<field name="X">0</field>
<field name="Y">0</field>
</block>
<block type="mousemoverelative">
<field name="X">0</field>
<field name="Y">0</field>
</block>
<block type="mousemovepolar">
<field name="DIRECTION">90</field>
<field name="DISTANCE">0</field>
</block>
<block type="click">
<field name="BUTTON">LEFT</field>
<field name="DELAY">1</field>
<field name="REPEAT">0</field>
</block>
<block type="restoremouse"></block>
</category>
<category name="Keyboard">
<block type="key">
<field name="KEY">A</field>
<field name="DELAY">0</field>
</block>
<block type="specialkey">
<field name="MODIFIER">CTRL</field>
<field name="KEY">A</field>
<field name="DELAY">0</field>
</block>
<block type="type">
<field name="STRING">Hello World!</field>
<field name="DELAY">0</field>
</block>
</category>
<category name="Window">
<block type="withwindow"></block>
<block type="getactivewindow"></block>
<block type="windowsearch">
<field name="MATCHING">ANY</field>
<field name="VISIBLE">FALSE</field>
<field name="USE_NAME">TRUE</field>
<field name="NAME"></field>
<field name="USE_CLASS">FALSE</field>
<field name="CLASS"></field>
<field name="USE_CLASSNAME">FALSE</field>
<field name="CLASSNAME"></field>
</block>
<block type="selectwindow"></block>
<block type="resizewindow">
<field name="WIDTH">100</field>
<field name="HEIGHT">100</field>
<field name="USE_HINTS">FALSE</field>
</block>
<block type="windowmove">
<field name="RELATIVE">TRUE</field>
<field name="X">0</field>
<field name="Y">0</field>
</block>
<block type="windowfocus"></block>
</category>
<category name="Misc">
<block type="sync"></block>
<block type="clearmodifiers"></block>
<block type="sleep">
<field name="TIME">0</field>
</block>
<block type="execute">
<field name="VALUE">touch test.txt</field>
</block>
</category>
</xml>
<xml id="startBlocks" style="display: none">
<variables></variables>
<block type="programstart" x="160" y="40" ></block>
</xml>
<script type="text/javascript" src="workspace.js"></script>
</body>
</html>