| View previous topic :: View next topic |
| Author |
Message |
lima
Joined: 24 Sep 2008 Posts: 7
|
Posted: Wed Sep 24, 2008 1:35 pm Post subject: shift-enter in long replacements |
|
|
In skype you can send 2 or more consecutive lines separated with a newline in one message, if you end each of these lines with shift-enter. Enter only sends the message. How do you organise this in a autohotkey script with auto-replace 'long replacements'?
| Code: | ::-t-::
(
line 1{+enter}line 2
) |
doesn't work.
Last edited by lima on Wed Sep 24, 2008 2:28 pm; edited 1 time in total |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Wed Sep 24, 2008 1:55 pm Post subject: |
|
|
| Code: | | ::-t-:: line 1 +{Enter} line 2 |
I'm not sure if it would work, but maybe try sending `n.
| Code: | | ::-t-:: line 1 `n line 2 |
"`" is an escape character... `n means "NewLine". Some people get it confused with a single quote, but it's the key underneath your Esc key on a qwerty keyboard. |
|
| Back to top |
|
 |
lima
Joined: 24 Sep 2008 Posts: 7
|
Posted: Wed Sep 24, 2008 2:27 pm Post subject: |
|
|
| No, already tried these 2. 'line1' is send, and then 'line2', each in a separate message. |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Wed Sep 24, 2008 2:59 pm Post subject: |
|
|
| Code: | | :*:-t-::Hello`r`nHow Are you? |
This worked for me in Notepad... Give it a try. |
|
| Back to top |
|
 |
lima
Joined: 24 Sep 2008 Posts: 7
|
Posted: Wed Sep 24, 2008 4:16 pm Post subject: |
|
|
| Alas. Works not in Skype. Lines are send one by one. |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Wed Sep 24, 2008 4:28 pm Post subject: |
|
|
| Code: | | :*:-t-::Hello{ShiftDown}`r`n{ShiftUp}How Are you? |
Or
| Code: | | :*:-t-::Hello{ShiftDown}{Enter}{ShiftUp}How Are you? |
Do they work? |
|
| Back to top |
|
 |
lima
Joined: 24 Sep 2008 Posts: 7
|
Posted: Wed Sep 24, 2008 6:24 pm Post subject: |
|
|
| Works fine now. Thanks for all the efforts! |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Wed Sep 24, 2008 6:25 pm Post subject: |
|
|
| Which one worked? Both? |
|
| Back to top |
|
 |
lima
Joined: 24 Sep 2008 Posts: 7
|
Posted: Thu Sep 25, 2008 6:30 am Post subject: |
|
|
| Both of them. The first one gives a extra white line between 2 consecutive lines. So i use the second one. Great tip. Thanks! |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Thu Sep 25, 2008 1:25 pm Post subject: |
|
|
| Code: | | :*:-t-::Hello{ShiftDown}`r`n{ShiftUp}How Are you? |
Just so I don't screw up anyone in the future... Code should be:
| Code: | | :*:-t-::Hello{ShiftDown}`n{ShiftUp}How Are you? |
|
|
| Back to top |
|
 |
|