Page 1 of 1

[Solved]how to insert new line wherever caret is?

Posted: Sun Sep 15, 2013 6:41 am
by yjs14
I mean, don't insert \r\n at the position where caret is.

normal:
aaaaaaaaaaa(caret)aaaaaaaaaaaa
press enter==>
aaaaaaaaaaa
(caret)aaaaaaaaaaaa
I want:
aaaaaaaaaaa(caret)aaaaaaaaaaaa
press enter(or another key)==>
aaaaaaaaaaaaaaaaaaaaaaa
(caret)

Posted: Sun Sep 15, 2013 1:13 pm
by Instructor
yjs14
Add to Hotkeys plugin:

Command on hotkey Enter:

Code: Select all

Call("Scripts::Main", 1, "EvalCmd.js", `"AkelPad.SendMessage(AkelPad.GetEditWnd(), 3044 /*AEM_KEYDOWN*/, 0x23 /*VK_END*/, 0); AkelPad.SendMessage(AkelPad.GetEditWnd(), 258 /*WM_CHAR*/, 0x0D /*VK_RETURN*/, 0);"`)

Posted: Mon Sep 16, 2013 2:20 am
by yjs14
Instructor
thx,It's working.