Page 2 of 3
Re: Execute from terminal
Posted: Thu Sep 29, 2011 8:45 am
by Matlo
The problem is, the macro is executed for the keyboard that generates the event.
With xdotool, the keyboard name is "Virtual core XTEST keyboard", which doesn't match the keyboard name in your config...
A solution is to change the keyboard name in your configuration.
Re: Execute from terminal
Posted: Fri Sep 30, 2011 8:01 am
by sconsolas
It worked perfectly. Thank you very much!
Is it posible not to grab the mouse when i execute the program from terminal?
Thanks again
Re: Execute from terminal
Posted: Wed Nov 16, 2011 3:01 pm
by sconsolas
Hi,
Im sorry to "up" this thread again... Is it possible not to grab the mouse when i execute the program from the terminal?
Thanks in advance,
Re: Execute from terminal
Posted: Wed Nov 16, 2011 3:07 pm
by Matlo
Just add " --nograb" without quotes at the end of the command line.
Re: Execute from terminal
Posted: Wed Nov 16, 2011 3:10 pm
by sconsolas
That was fast...

Re: Execute from terminal
Posted: Wed Nov 23, 2011 11:35 am
by sconsolas
Hi,
Once i got it working, im trying to do the same procces with multiple PS3 at the same time. But here is my problem.
xdotool uses the XTEST virtual keyboard, and every time i execute paralel macros, the keypress got mixed, and loose their functionality.
What i need is to create more virtual keyboards, but ive been reading a lot and i didnt get any usefull information.
Do you know how to do this?
Thanks in advance.
Re: Execute from terminal
Posted: Wed Nov 23, 2011 12:14 pm
by Matlo
I think you have to create a new mouse+keyboard master.
link
EDIT: xdotool doesn't seem to support mpx

Re: Execute from terminal
Posted: Wed Nov 23, 2011 2:53 pm
by sconsolas
I created another virtual keyboard, but as you said, there is no way to select the virtual keyboard to use on xdotool or xte (xautomation).
Do you know any other way to simulate some key press in a specified keyboard?
Re: Execute from terminal
Posted: Tue Jan 17, 2012 5:31 pm
by sconsolas
Hi,
I tryed, but i wasn't able to add multiple virtual keyboards.
The thing is, every time i made an improvement, another thing needs to get done, so every time its harder to make things work.
All i need is to call emuclient with this parameters
emuclient --precision 16 --serial --refresh 10 --port /XX/ --status --nograb --macro file.txt
I need to give emuclient a macro file, and make it execute in the specified port. No need of keyboard or config file. I wont use it.
I can make some changes to your code, but it would be great to get some info about where is this code.
Thanks in advance,
Jose
Re: Execute from terminal
Posted: Tue Jan 17, 2012 7:35 pm
by Matlo