Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to Write Text SendKey to another application like keybord key out
Forum Updated to NodeBB v4.3 + New Features

How to Write Text SendKey to another application like keybord key out

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 487 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sontichai
    wrote on last edited by
    #1

    Hi ,
    I want to write text and enter key from my qt application to textbox on web browser.
    Do you have function simulate sendkey like input from keyboard ?

    Please help ?

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      There is no Qt functionality which you can use here. You have to rely on stuff provided by your OS.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      S 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        There is no Qt functionality which you can use here. You have to rely on stuff provided by your OS.

        S Offline
        S Offline
        Sontichai
        wrote on last edited by
        #3

        Hi @Christian-Ehrlicher
        I develop on linux OS. It posible to do ?
        Do you have any idea ?

        1 Reply Last reply
        0
        • Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Sontichai said in How to Write Text SendKey to another application like keybord key out:

          It posible to do ?

          Yes, why should it not

          Do you have any idea ?

          No, since it also depends if you use X11 or Wayland or something else.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • S Offline
            S Offline
            Sontichai
            wrote on last edited by Sontichai
            #5

            Hi all,
            I found solution by use xdotool lib on linux raspberry pi. It worked for me.
            See link below.
            [https://amin-ahmadi.com/2016/06/21/how-to-get-the-topmost-window-title-using-qtc-in-linux/](link url)
            This code for enter text
            process.setArguments(QStringList() << "type" << "Your text" ) ;
            and this code for enter keyboard
            rocess.setArguments(QStringList() << "key" << "KP_Enter" ) ;

            I hope this can helps you.

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved