LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2005, 02:24 PM   #1
dhuberma
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
remapping an F-key to a string of text?


Hello,

Is it possible to re-map one of the F-keys on my keyboard (like F12 or F11 or F10, etc.) to send a string of text to any x-application? For example, I want to press F10 and have it send the string: hello world

If this is possible, how do I do it, please?

dhuberma@hostname:~$ uname --all
Linux hostname 2.6.13.3 #6 Wed Nov 30 12:58:49 EST 2005 i686 GNU/Linux
 
Old 12-09-2005, 08:32 AM   #2
nbd
Member
 
Registered: Aug 2002
Posts: 41

Rep: Reputation: 15
man loadkeys

From manual:
Quote:
One can make function key F5 (on an ordinary PC keyboard) produce the text `Hello!', and Shift+F5 `Goodbye!' using lines

keycode 63 = F70 F71
string F70 = "Hello!"
string F71 = "Goodbye!"
 
Old 01-06-2006, 06:05 PM   #3
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
I wasn't able to get loadkeys to work after a few minutes of tinkering. I found this though:

http://www.shallowsky.com/software/crikey/

(Although it's not really a well-known thing and doesn't seem to work 100% reliably for me. How exactly would one get loadkeys--or something else that does something similar--to work without having to clear mapping tables and redo everything? It seems like such a simple thing to accomplish... print the given text in the active window)

Last edited by jrdioko; 01-06-2006 at 06:30 PM.
 
Old 03-21-2013, 10:01 AM   #4
floorripper
LQ Newbie
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04 / 16.04
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by jrdioko View Post
I wasn't able to get loadkeys to work after a few minutes of tinkering. I found this though:

http://www.shallowsky.com/software/crikey/

(Although it's not really a well-known thing and doesn't seem to work 100% reliably for me. How exactly would one get loadkeys--or something else that does something similar--to work without having to clear mapping tables and redo everything? It seems like such a simple thing to accomplish... print the given text in the active window)
I Was not able to make it run neigther. I need it to send my passwords when I am logging into the routers.
Secure CRT under the windows, could make it, and I am sure there is a way also on Linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace a string in a text file jpan Linux - General 3 10-14-2012 07:17 PM
Removing Text from a Shell String OrangeLefty Programming 2 04-19-2004 12:08 AM
Key remapping erickFis Slackware 0 02-12-2004 06:00 AM
How to pick a string from a text file? sdandeker Linux - General 1 02-12-2004 05:17 AM
Parsing a file for a string of text jamesmwlv Linux - General 2 12-02-2002 08:13 PM


All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration