Xdotool - Type Into Program

206 views
Skip to first unread message

Molock Jr, James

unread,
Sep 11, 2016, 7:49:29 PM9/11/16
to xdotoo...@googlegroups.com

Hello,

 

Is there anything wrong with the below that I am trying to use?  I am trying to use a script to auto launch a java program and then have xdotool enter the user name and password.  It tried working once but somehow it no longer is working.

 

java –jar timeclock.jar

sleep 5

xdotool type –window “tn5250 1.19m – eth100” username

xdotool search –name “tn5250 1.19m – eth100” key Tab

xdotool type –windows “tn5250 1.19m – eth100” password

xdotool search –name “tn5250 1.19m – eth100” key “Enter”

 

Isn’t that the correct format?

 

Thanks in advance,

 

               James Molock

        Senior System Technician

Jefferson Regional Medical Center

               mol...@jrmc.org

              870-541-7382 (opt 2)

 


NOTICE:
This email contains confidential or proprietary information that may be legally privileged.  It is intended only for the named recipient(s).  Any views expressed in this message are those of the individual sender, except where the sender specifies, and with authority states, them to be the views of Jefferson Regional Medical Center.   If an addressing or transmission error has misdirected the email, please notify the author by replying to this message. If you are not the named recipient, you are not authorized to use, disclose, distribute, copy, print, or  rely on this email, and should immediately delete it from your computer system.

  ­­  

Jordan Sissel

unread,
Sep 11, 2016, 7:58:24 PM9/11/16
to mol...@jrmc.org, xdotoo...@googlegroups.com
I don't think your `type` command is correct. It should look similar to your 2nd and 4th lines that do search + key together.

I propose:

xdotool search --name “tn5250 1.19m – eth100” type username

And similarly for your 2nd type command:

xdotool search --name “tn5250 1.19m – eth100” type password



--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdotool-users+unsubscribe@googlegroups.com.
To post to this group, send email to xdotoo...@googlegroups.com.
Visit this group at https://groups.google.com/group/xdotool-users.
For more options, visit https://groups.google.com/d/optout.

G.W. Haywood

unread,
Sep 21, 2016, 1:38:08 AM9/21/16
to Molock Jr, James, xdotoo...@googlegroups.com
Hi there,

On Tue, 6 Sep 2016, Molock Jr, James wrote:

> Is there anything wrong with the below that I am trying to use? I
> am trying to use a script to auto launch a java program and then
> have xdotool enter the user name and password. It tried working
> once but somehow it no longer is working.
>
> java -jar timeclock.jar
> sleep 5
> xdotool type -window "tn5250 1.19m - eth100" username
> xdotool search -name "tn5250 1.19m - eth100" key Tab
> xdotool type -windows "tn5250 1.19m - eth100" password
> xdotool search -name "tn5250 1.19m - eth100" key "Enter"
>
> Isn't that the correct format?

When I needed to get a client't old, unsupported but much loved
Microsoft Office Keyboard to work with a Linux box I found that
for example

"xdotool key --clearmodifiers --delay 0 Control_L+X"

worked best for me for control keys.

--

73,
Ged.
Reply all
Reply to author
Forward
0 new messages