LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-24-2015, 05:24 PM   #1
JackDinn
Member
 
Registered: May 2015
Posts: 236

Rep: Reputation: Disabled
Send keystrokes, cant send space?


hi, can anyone help with custom shortcut keys (send keyboard inputs) ?

Code:
h:e:l:l:o:' ':h:o:w:' ':a:r:e:' ':y:o:u
What i get is
Code:
hellohowareyou
Click image for larger version

Name:	1.png
Views:	50
Size:	85.5 KB
ID:	20366

This should work (as per demo) but it will not put the spaces. I have tried all sorts of variation and other symbols, searched & searched google and even tried on some IRC channels but no joy, cheers

Last edited by JackDinn; 12-24-2015 at 05:30 PM.
 
Old 12-24-2015, 07:33 PM   #2
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 59
Just a wild guess, but try putting the space inside the quotes.
A space IS a character, just like an 'a' or a 'b' is.
 
Old 12-24-2015, 07:39 PM   #3
JackDinn
Member
 
Registered: May 2015
Posts: 236

Original Poster
Rep: Reputation: Disabled
sorry i misunderstand, the "spaces" are inside quotes (just single quotes) , but iv tried treating the space as just another chr

Code:
 h:e:l:l:o: :h:o:w
also tried

Code:
h:e:l:l:o:" ":h:o:w
h:e:l:l:o' 'h:o:w
h:e:l:l:o" "h:o:w
h:e:l:l:o:(space):h:o:w
h:e:l:l:o:'(space)':h:o:w

And a few others
The sample text for this just says this about spaces :-

Quote:
' '(space) = space

Last edited by JackDinn; 12-24-2015 at 07:43 PM.
 
Old 12-24-2015, 07:56 PM   #4
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 59
It is irresponsible of me to get into this, because I am not too familiar with what you want to do, but what the heck.

From your example above :
Quote:
h:e:l:l:o:' ':h:o:w:' ':a:r:e:' ':y:o:u
what happens when if you tried :

h:e:l:l:o: :' ':h:o:w: :' ':a:r:e: :' ':y:o:u :

Last edited by ceyx; 12-24-2015 at 08:57 PM.
 
Old 12-24-2015, 08:01 PM   #5
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 59
Damn. this page is converting my spaces to smileys !

I inserted a space and a colon at the end of each word, before the end quote.
 
Old 12-24-2015, 08:01 PM   #6
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
From the example (emphasis is mine):
Code:
the left column shows the input and the right column shows what to type.

"enter" (i.e. new line)                Enter or Return
a (i.e. small a)                          A
A (i.e. capital a)                       Shift+A
: (colon)                                  Shift+;
' '  (space)                              Space
Try:
Code:
h:e:l:l:o:space:h:o:w
 
1 members found this post helpful.
Old 12-24-2015, 08:05 PM   #7
JackDinn
Member
 
Registered: May 2015
Posts: 236

Original Poster
Rep: Reputation: Disabled
lol, because the forum reads the chr$ as smilies apart i'm chuckling to myself, did you just add a colon to the end , yea tried that too.

Quote:
Originally Posted by norobro View Post
From the example (emphasis is mine):
Code:
the left column shows the input and the right column shows what to type.

"enter" (i.e. new line)                Enter or Return
a (i.e. small a)                          A
A (i.e. capital a)                       Shift+A
: (colon)                                  Shift+;
' '  (space)                              Space
Try:
Code:
h:e:l:l:o:space:h:o:w
Yes, thank you very much, this worked (i was sure i tried that one too , dam ^^) Although the right column shows "Space" with a capital so i might have tried that. great stuff though, thx.

Code:
e:l:l:o:space:h:o:

Last edited by JackDinn; 12-24-2015 at 08:09 PM.
 
Old 12-24-2015, 08:19 PM   #8
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
You're welcome.

@ceyx - If you click "go advanced" to respond, under additional options there is a check box to disable smilies in text.
 
2 members found this post helpful.
  


Reply



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
[SOLVED] How can I send keystrokes to a terminal program? peter576 Programming 2 12-30-2011 05:13 AM
How to send keystrokes in Ubuntu? QueenZ Linux - Newbie 1 08-28-2011 10:23 AM
[SOLVED] bash how to send keystrokes via fifo to mpg123 in background porphyry5 Programming 6 07-17-2011 01:02 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
Send keystrokes in console mode Reginald0 Linux - General 2 08-27-2003 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 PM.

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
Open Source Consulting | Domain Registration