LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 06:24 PM   #1
JackDinn
Member
 
Registered: May 2015
Posts: 211

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:	34
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 06:30 PM.
 
Old 12-24-2015, 08:33 PM   #2
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 338

Rep: Reputation: 56
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, 08:39 PM   #3
JackDinn
Member
 
Registered: May 2015
Posts: 211

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 08:43 PM.
 
Old 12-24-2015, 08:56 PM   #4
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 338

Rep: Reputation: 56
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 09:57 PM.
 
Old 12-24-2015, 09:01 PM   #5
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 338

Rep: Reputation: 56
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, 09:01 PM   #6
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 517

Rep: Reputation: 177Reputation: 177
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, 09:05 PM   #7
JackDinn
Member
 
Registered: May 2015
Posts: 211

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 09:09 PM.
 
Old 12-24-2015, 09:19 PM   #8
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 517

Rep: Reputation: 177Reputation: 177
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


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


All times are GMT -5. The time now is 12:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration