Hi. I have a doubt with messages and maybe someone can help me.
Imagine I have got something like this:
[stdbuf -o0 xinput test 1(
|
[shell]
|
[set $1(
|
[a[1]=400(
It shows my x/y mouse coordinates I received from xinput using [shell] on linux.
a[0]=x and a[1]=y
So, sometimes I receive (the numbers are only examples) "[a[1]=400(" and another "[a[0]=400("
Is there any way for separate those two x y values from that final message?
For to be more specific I want extract x y coordinates (only the numbers) from that message.
Edit: I have simplify the patch, it was some convoluted.
Thanks a lot!