Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X11 forwarding and sending keystrokes #51

Open
Jaji17 opened this issue Oct 29, 2014 · 0 comments
Open

X11 forwarding and sending keystrokes #51

Jaji17 opened this issue Oct 29, 2014 · 0 comments

Comments

@Jaji17
Copy link

Jaji17 commented Oct 29, 2014

Hi!

I'm newbie at using xdotool and I was trying to do the following in my Centos 6.5, xdotool (xdotool-2.20110530.1-7.el6.x86_64), kernel 2.6.32, xorg-x11-server-Xorg-1.13.0-23.1.el6.centos.x86_64:

I opened a PuTTY terminal and execute an xterm to open a new terminal xterm &
Then I get the ID of this new terminal with xdotool search --name "myterminal"
Finally I execute xdotool key --window "ID" 2 to send a 2 to the terminal but nothing happens.
I checked also the ID of the terminal with xwinfo

I used it with windowfocus and windowsactivate, but I'd like to avoid it if possible. Also, is there any possibility of speeding the process, everytime that I send an keystroke, the execution of the command xdotool key 2 line is quite slow for my purposes.

I want to open as several terminals and then send them a chain of keystroke as fast as possible with some delay between keystrokes.

I also have another issue, having my little script xdotool

!/usr/bin/xdotool

windowfocus $1
type "Hi, how are you"
key 7

It doesn't press number 7 after typing Hi, how are you, it types Hi, how are youkey 7. How can I solve it?

Thank you very much, sorry but I'm a newbie!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant