Page 1 of 1

Esc-sequences usage in command line

Posted: Tue Mar 08, 2016 1:22 am
by nbsp
I have tried the following commands (in "Start -> Run") to show a MessageBox with 2 lines of text, but the "\n" esc-sequence is not working (it works ok when used in a script):

Code: Select all

akelpad /show(0) /if(`AkelPad.MessageBox(0, "Line 1\nLine 2", "Caption", 64)`, ``, ``) /quit
akelpad /show(0) /if(`AkelPad.MessageBox(0, "Line 1\\nLine 2", "Caption", 64)`, ``, ``) /quit
The following do not work either:

Code: Select all

akelpad /show(0) /if(`1`, `/Call("Scripts::Main", 7, 'AkelPad.MessageBox(0, "Line 1\nLine 2", "Caption", 64)')`, ``) /quit
akelpad /show(0) /if(`1`, `/Call("Scripts::Main", 7, 'AkelPad.MessageBox(0, "Line 1\\nLine 2", "Caption", 64)')`, ``) /quit
Is it possible to use Esc-sequences in the command line?

Posted: Tue Mar 08, 2016 2:27 am
by Skif_off
nbsp
Maybe EvalCmd.js?

Code: Select all

akelpad /show(0) /If(`Call("Scripts::Main", 4, "EvalCmd.js", 'if (AkelPad.MessageBox(0, "Line 1\nLine 2", "Caption", 64)) AkelPad.ScriptExitCode(1);')`, `/Quit`, ``)

Posted: Tue Mar 08, 2016 8:54 am
by nbsp
Thanks Skif_off.
It works fine this way, but is rather long to type it all.:roll:
Maybe Instructor can provide more details about this...

Posted: Tue Mar 08, 2016 2:06 pm
by Instructor
nbsp
Currently direct script method call don't support esc-sequences.

Posted: Wed Mar 09, 2016 12:49 am
by nbsp
Instructor
OK, thank you!