xdotool changes all symbols to numbers or other characters

30 views
Skip to first unread message

scan...@gmail.com

unread,
Mar 18, 2018, 5:03:29 PM3/18/18
to xdotool-users
I am trying to insert a link through xdotoll type but in stead of 
https://www.sample.com/sales/search?facet=T&facet.T=45259587&facet.T=44143327&facet.T=25866782& i get:
https;//www.sample.com/sales/search/facet=t7facet.t=452595877facet.t=441433277facet.t=258667827

what can I do to make it work right?

Anthony Thyssen

unread,
Mar 19, 2018, 1:12:22 AM3/19/18
to scan...@gmail.com, xdotool-users
I use xdotool to type text into many different applications, XTerms,  Web Browsers,  Notepads,  Minecraft, etc etc etc.
I have never seen this.

However I don't simply type the text but use a small script to ensure any shift, ctrl, alt, meta keys are all released first BEFORE trying to type the string.

Specifically have a script called keyboard_macro  which takes a arguement of the string to type, or '-' to type the string given via stdin
And was developed from a long process where I explored useing keyboard macros from Window Manager Menus and Hotkeys


Specifically the script does...

   xdotool keyup Super_L  keyup Control_L   keyup Alt_L   keyup v

 Then if typing from a stdin it runs...
   xdotool type --clearmodifiers -delay 10 --file -

Or from a string argument "$1" (whcih is also given to xdotool as STDIN)
   xdotool type --clearmodifiers -delay 10 --file - <<< "$1"

After that I can optionally add a return key
   xdotool key Return

I used to use something like...
   
   xdotool sleep 0.5 type -delay 0 "$1"

But it seemed to have problems with some unusual characters.

The script also has a switch to use the "xte" command from the "xautomation" package whcih can also inject keyboard events into the X window input stream.


--
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.

Reply all
Reply to author
Forward
0 new messages