20 lines
361 B
Hy
20 lines
361 B
Hy
|
|
|
|
(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))
|