Giter VIP home page Giter VIP logo

Comments (3)

ineuw avatar ineuw commented on August 30, 2024

I used "\n" with success in a script. Here is the code I used.

dhr = "{{dhr}}"
cr = "\n"
home = ""
keyboard.send_keys(home + cr + dhr + cr)

from autokey-python2.

josephj11 avatar josephj11 commented on August 30, 2024

I don't know if '\n' will be interpreted as a line break or as a paragraph
break. I would try Ineu's solution first.

The other thing to try would be to find the character code for a line break
and see if you can specify it as a Unicode character.

See:
https://docs.python.org/2/howto/unicode.html#unicode-literals-in-python-source-code

I don't know if you can put one of those in a phrase, but they will
certainly work in a macro.

Please let us know what works for you.

BTW, for general questions, you will be much better off posting at
https://groups.google.com/forum/#!forum/autokey-users

There are a lot of members who may know your answer, while here, there are
only two of us

On Mon, Sep 5, 2016 at 1:12 PM, i neuw [email protected] wrote:

I used "\n" with success in a script. Here is the code
alt-d {{dhr}}

dhr = "{{dhr}}"
cr = "\n"
home = ""
keyboard.send_keys(home + cr + dhr + cr)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
autokey/autokey#46 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEVd_iua_9jtlFetjkuB93_L0iMCXsMAks5qnE1lgaJpZM4J1NzM
.

from autokey-python2.

gazeto avatar gazeto commented on August 30, 2024

Thanks a lot for your help
@ineuw 's suggestion results in the same "new paragraph" behaviour for office apps. What I need is [Shift] + [Enter]. Therefore, the very best and simple solution is using a script with one command:

keyboard.send_keys("Yours sincerely"+"<shift>+<enter>"+"Anonymus")

Problem solved :)

PS.: ok, I'll direct my questions to the google group next time ;-)

from autokey-python2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.