Shell command

MrSpuf

New member
Hey there, I have a shell with command:
Bash:
input text myname

and as you know it types the text 'myname' in a field where I need it. The thing is that I need to set up manually 'myname' in the shell. Is there a way where I can make this command run the text from CLIPBOARD? I don't want to use the PASTE function:
Bash:
input keyevent 279

I want the shell to typewrite the text from the CLIPBOARD. Is there any solution?

TLDR; typewrite text from CLIPBOARD using shell command
 

Dm114

Well-known member
Hey there, I have a shell with command:
Bash:
input text myname

and as you know it types the text 'myname' in a field where I need it. The thing is that I need to set up manually 'myname' in the shell. Is there a way where I can make this command run the text from CLIPBOARD? I don't want to use the PASTE function:
Bash:
input keyevent 279

I want the shell to typewrite the text from the CLIPBOARD. Is there any solution?

TLDR; typewrite text from CLIPBOARD using shell command
You should replace 'myname' by Magic text [clipboard]
 

MrSpuf

New member
Magic text is the text that comes automatically when you press the three dots in the text fields of MacroDroid, it is a blue button
Have a look to MacroDroid Wiki to understand how to use and take advantage of MacroDroid.
Yeah, I did that, my question is that when I add Clipboard the command it looks like this:

input text [clipboard] or input clipboard "[clipboard]"

Neither works. I've done also what @FrameXX said and when I am copying it on the clipboard, Macrodroid is foreground and still doesn't happen anything. I am 100% sure that the text is on the clipboard since if I use the command: input keyevent 279 the text is pasted, but as I've said, I want it to typewrite it not paste it.

What am I doing wrong?
 

Dm114

Well-known member
Yeah, I did that, my question is that when I add Clipboard the command it looks like this:

input text [clipboard] or input clipboard "[clipboard]"

Neither works. I've done also what @FrameXX said and when I am copying it on the clipboard, Macrodroid is foreground and still doesn't happen anything. I am 100% sure that the text is on the clipboard since if I use the command: input keyevent 279 the text is pasted, but as I've said, I want it to typewrite it not paste it.

What am I doing wrong?
Do you mean you want each character to be pasted one by one instead of the whole content of the clipboard?
 
Top