AutoHotkey Community

It is currently May 26th, 2012, 9:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: September 24th, 2008, 2:35 pm 
Offline

Joined: September 24th, 2008, 1:49 pm
Posts: 7
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 September 24th, 2008, 3:28 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2008, 2:55 pm 
Offline

Joined: July 21st, 2008, 4:16 pm
Posts: 726
Location: Calgary, AB, Canada
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2008, 3:27 pm 
Offline

Joined: September 24th, 2008, 1:49 pm
Posts: 7
No, already tried these 2. 'line1' is send, and then 'line2', each in a separate message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2008, 3:59 pm 
Offline

Joined: July 21st, 2008, 4:16 pm
Posts: 726
Location: Calgary, AB, Canada
Code:
:*:-t-::Hello`r`nHow Are you?

This worked for me in Notepad... Give it a try.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2008, 5:16 pm 
Offline

Joined: September 24th, 2008, 1:49 pm
Posts: 7
Alas. Works not in Skype. Lines are send one by one.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2008, 5:28 pm 
Offline

Joined: July 21st, 2008, 4:16 pm
Posts: 726
Location: Calgary, AB, Canada
Code:
:*:-t-::Hello{ShiftDown}`r`n{ShiftUp}How Are you?

Or

Code:
:*:-t-::Hello{ShiftDown}{Enter}{ShiftUp}How Are you?

Do they work?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2008, 7:24 pm 
Offline

Joined: September 24th, 2008, 1:49 pm
Posts: 7
Works fine now. Thanks for all the efforts!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 24th, 2008, 7:25 pm 
Offline

Joined: July 21st, 2008, 4:16 pm
Posts: 726
Location: Calgary, AB, Canada
Which one worked? Both?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2008, 7:30 am 
Offline

Joined: September 24th, 2008, 1:49 pm
Posts: 7
Both of them. The first one gives a extra white line between 2 consecutive lines. So i use the second one. Great tip. Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2008, 2:25 pm 
Offline

Joined: July 21st, 2008, 4:16 pm
Posts: 726
Location: Calgary, AB, Canada
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?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], iBob35555VR, krajan, tomoe_uehara and 66 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group