Announcement

Collapse
No announcement yet.

Send keyboard input --- how to use it?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Send keyboard input --- how to use it?

    Quite some time ago, I came across a thread at KFN dealing with setting up shortcuts to type predefined snippets.

    I can't find that thread now

    In particular, suppose I often want to type a multiline address into qt or gtk applications how do I do that?

    Person's name
    Apt. number
    Building Name
    Street
    State
    ZIP code

    (For snippets that are one-liners, I use Rofi.)
    Last edited by chimak111; Feb 12, 2020, 06:39 AM.
    Kubuntu 20.04

    #2
    I assume you mean the "send keyboard input" action in "Custom Shortcuts"?

    If so, here is an example how to use it:
    Code:
    shift+f:i:r:s:t:space:shift+l:a:s:t:enter:
    shift+a:d:d:r:e:s:s:enter:
    shift+s:p:e:c:i:a:l:space:c:h:a:r:space:shift+7:enter
    (I put it on multiple lines for better readability, but you don't have to)

    produces:
    First Last
    Address
    Special char &

    Comment


      #3
      Exactly, thank you!

      Could you also explain the purpose of the lower window? To me it looks like all the work is done in the upper window.Click image for larger version

Name:	20200212145459_ksnip.jpg
Views:	1
Size:	56.7 KB
ID:	644592
      Kubuntu 20.04

      Comment


        #4
        Originally posted by chimak111 View Post
        Could you also explain the purpose of the lower window? To me it looks like all the work is done in the upper window
        In the lower half, you can set up window matching rules, in case you wish to send the keyboard to an application/window that is not the "currently active window".

        There is the "Help" button on the lower left corner you can use to get more information on this.
        Last edited by kubicle; Feb 12, 2020, 03:57 AM.

        Comment


          #5
          Originally posted by kubicle View Post
          In the lower half, you can set up window matching rules, in case you wish to send the keyboard to an application/window that is not the "currently active window".

          There is the "Help" button on the lower left corner you can use to get more information on this.
          When you explain it that way it makes sense to me. I did read the "Help" even before asking but ...
          Kubuntu 20.04

          Comment


            #6
            Code:
            Operating System: Kubuntu 20.04
            KDE Plasma Version: 5.18.0
            KDE Frameworks Version: 5.67.0
            Qt Version: 5.12.5
            Kernel Version: 5.4.0-12-generic
            requires
            Code:
            shift+o:p:e:r:a:t:i:n:g:space:shift+s:y:s:t:e:m:shift+;:space:shift+K:u:b:u:n:t:u:space:2:0:.:0:4:enter:
            shift+K:shift+D:shift+E:space:shift+p:l:a:s:m:a:space:shift+v:e:r:s:i:o:n:shift+;:space:5:.:1:8:.:0:enter:
            shift+k:shift+d:shift+e:space:shift+f:r:a:m:e:w:o:r:k:s:space:shift+v:e:r:s:i:o:n:shift+;:space:5:.:6:7:.:0:enter:
            shift+q:t:space:shift+v:e:r:s:i:o:n:shift+;:space:5:.:1:2:.:5:enter:
            shift+k:e:r:n:e:l:space:shift+v:e:r:s:i:o:n:shift+;:space:5:.:4:.:0:-:1:2:-:g:e:n:e:r:i:c:enter:
            One wrinkle is that the custom shortcut
            obviously works in qt applications
            also works in text boxes in Firefox (gtk3) and Google Chrome (gtk3)
            also works in Leafpad (gtk2)
            but
            doesn't work in Mousepad (gtk3) and Gedit (gtk3) and LibreOffice Writer with libreoffice-gtk3 instead of with libreoffice-kde5.
            Kubuntu 20.04

            Comment

            Working...
            X