]> git.parisson.com Git - deefuzzer.git/commitdiff
add jingles tools
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 22 Dec 2009 12:57:48 +0000 (12:57 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 22 Dec 2009 12:57:48 +0000 (12:57 +0000)
tools/osc_jingles_start.py [new file with mode: 0644]
tools/osc_jingles_stop.py [new file with mode: 0644]

diff --git a/tools/osc_jingles_start.py b/tools/osc_jingles_start.py
new file mode 100644 (file)
index 0000000..3f2ebf0
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import liblo, sys
+
+# send all messages to port 1234 on the local machine
+try:
+    target = liblo.Address(1234)
+except liblo.AddressError, err:
+    print str(err)
+    sys.exit()
+
+# send message "/foo/message1" with int, float and string arguments
+liblo.send(target, "/jingles", 1)
diff --git a/tools/osc_jingles_stop.py b/tools/osc_jingles_stop.py
new file mode 100644 (file)
index 0000000..d29f721
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import liblo, sys
+
+# send all messages to port 1234 on the local machine
+try:
+    target = liblo.Address(1234)
+except liblo.AddressError, err:
+    print str(err)
+    sys.exit()
+
+# send message "/foo/message1" with int, float and string arguments
+liblo.send(target, "/jingles", 0)