Crikey! A program to generate typed key events on Linux
My husband used to complain about a piece of functionality he missed from Mac and Windows QuickKeys: the ability to assign a key shortcut to a string. For example, he might want to be able to store his username on F1 and then use it quickly in any application. He might even want to do the same for his password, setting aside the obvious security issues.
Linux, despite its generous configurability in nearly every other respect, seems to lack this ability. So I wrote Crikey! Conveniently Repeated Input Key -- a little program that simulates key events.
Usage: crikey [-itxr] [-sS sleeptime] string...
Send key events, as if args was typed in whatever X window currently has focus.
-s seconds: sleep time before sending
-S milliseconds: sleep time before sending
Many window managers need a delay for focus shifting
or to allow a modifier button to be released.
-i: Interactive (read input from stdin)
-t: Use XTest to send events (default)
-x: Use XSendEvent to send events
-r: Send events to root window (only with XSendEvent)
-l: Show long (more detailed) help
-d: Show debug messages
Joined: 20 May 2006 Posts: 6781 Location: Auckland, New Zealand
Posted: Sat 23 Apr 2011, 21:11 Post subject:
N.B. if anyone is writing a script they will share with other Puppy users I suggest they use xdotool instead, as it is used by other Puppy scripts and I think is included in some (many?) recent Puppies/puplets.
This is just one of many things xdotool can do
~# xdotool type hello
_________________ If you have or know of a good gtkdialog application, please post a link here
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum