From: Guillaume Pellerin Date: Tue, 22 Dec 2009 12:57:48 +0000 (+0000) Subject: add jingles tools X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2408d6079c5db03b48e9a10a060d89fd37e0edfe;p=deefuzzer.git add jingles tools --- diff --git a/tools/osc_jingles_start.py b/tools/osc_jingles_start.py new file mode 100644 index 0000000..3f2ebf0 --- /dev/null +++ b/tools/osc_jingles_start.py @@ -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 index 0000000..d29f721 --- /dev/null +++ b/tools/osc_jingles_stop.py @@ -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)