summaryrefslogtreecommitdiff
path: root/asciifarm/client/keymacros.hy
blob: b39ef5e3a887faa17ae0ed2ca71d682859abfc05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


(defmacro send [data]
    `(self.client.send ~data))

(defmacro inp [action]
    `(send ["input" ~action]))

(defmacro doall [actions]
    `(for [action ~actions] (action)))

(defmacro selector [name]
    `(self.display.getSelector ~name))

(defmacro selectorvalue [name]
    `(.getValue (selector ~name)))

(defmacro log [text]
    `(self.client.log ~text))