omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. sanmaoban

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Controversial 0
    • Groups 0

    sanmaoban

    @sanmaoban

    0
    Reputation
    243
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    sanmaoban Unfollow Follow

    Latest posts made by sanmaoban

    • RE: About the keyboard function keyboard.get_input_context()

      @JonB
      I am very sorry because my English is not very good,In order to better describe this problem,I want to show this problem with pictures, but I don’t know how to send it to,I posted a photo on Twitter. In the photo, you can see that not all the characters are intercepted. I want to get all the Chinese characters. If it is convenient for you, I hope you can take a look.I used examples\keyboard\ KB Info.py in pythonista,thank youlink twitter url

      posted in Pythonista
      sanmaoban
      sanmaoban
    • RE: About the keyboard function keyboard.get_input_context()

      @JonB said:

      Do you mean the characters don't show up on the screen? Or that pulling the text doesn't give you everything you can see?

      Sorry, maybe I didn’t express it clearly. I want to write a script to capture the characters I just typed in the Google search box. When I type English characters, the script runs normally, but when I type more than five Chinese characters When writing characters, this script cannot get all the characters. Can you help me find out what went wrong? The script is relatively simple, I put the captured input characters in the variable input_str

      import keyboard
      input_str=''
      a=keyboard.get_input_context()[0]
      while (isinstance(a,str)):
      	input_str=a+input_str
      	keyboard.move_cursor(-len(a))
      	a=keyboard.get_input_context()[0]
      keyboard.move_cursor(len(input_str))
      
      posted in Pythonista
      sanmaoban
      sanmaoban
    • About the keyboard function keyboard.get_input_context()

      When I used the keyboard.get_input_context() function, I found that if I input a lot of Chinese characters (more than 5 Chinese characters) in the Google search page box, I found that the keyboard.get_input_context() function can only get the part of the input box I tried to move the cursor and continue to get the characters, but I can’t get any remaining characters. Is there any wise man who can get all the characters in the input box, can you help me answer?

      posted in Pythonista
      sanmaoban
      sanmaoban