Comments (3)
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.
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.
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)
- Window Filter to exclude gnome terminal HOT 3
- Autokey writes intensively to log file, how to disable it? HOT 7
- NP_ENTER key missing & "<enter>" converted XK_KP_Enter HOT 1
- PayPal Donations link does not work HOT 1
- Request - Would like to have option for a custom default folder HOT 1
- autokey vs autokey-py3 HOT 2
- Fatal error starting AutoKey HOT 1
- Feature request: TextExpander Compatibility HOT 1
- Czech characters HOT 1
- Numpad Numbers HOT 1
- CAPSLOCK as a modifier HOT 3
- Is there a way to quick set the abbreviation? HOT 2
- simple date insertion fails HOT 1
- using <script> in a phrase freezes autokey and parts of the desktop HOT 1
- How to bring the dialog.list_menu window to the front HOT 1
- Why can't my phrases work? (My script does) HOT 1
- Pressing AutoKey phrase key combination reveals and freezes dock in Kubuntu 20.04 (KDE Plasma Desktop) HOT 2
- Cheat engine HOT 2
- Syahaja3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autokey-python2.