Execute from terminal

Need help? Ask here and someone will help
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Execute from terminal

Post 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.
GIMX creator
sconsolas
Posts: 13
Joined: Mon Sep 05, 2011 7:57 am

Re: Execute from terminal

Post 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
sconsolas
Posts: 13
Joined: Mon Sep 05, 2011 7:57 am

Re: Execute from terminal

Post 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,
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Execute from terminal

Post by Matlo »

Just add " --nograb" without quotes at the end of the command line.
GIMX creator
sconsolas
Posts: 13
Joined: Mon Sep 05, 2011 7:57 am

Re: Execute from terminal

Post by sconsolas »

That was fast... :D
sconsolas
Posts: 13
Joined: Mon Sep 05, 2011 7:57 am

Re: Execute from terminal

Post 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.
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Execute from terminal

Post by Matlo »

I think you have to create a new mouse+keyboard master.

link

EDIT: xdotool doesn't seem to support mpx :(
GIMX creator
sconsolas
Posts: 13
Joined: Mon Sep 05, 2011 7:57 am

Re: Execute from terminal

Post 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?
sconsolas
Posts: 13
Joined: Mon Sep 05, 2011 7:57 am

Re: Execute from terminal

Post 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
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Execute from terminal

Post by Matlo »

GIMX creator
Post Reply