Esc-sequences usage in command line

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 19
Joined: Sun Jan 17, 2016 5:41 pm

Esc-sequences usage in command line

Post 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?

Offline
Posts: 1162
Joined: Sun Oct 20, 2013 11:44 am

Post 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`, ``)

Offline
Posts: 19
Joined: Sun Jan 17, 2016 5:41 pm

Post 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...

Offline
Site Admin
Posts: 6412
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

nbsp
Currently direct script method call don't support esc-sequences.

Offline
Posts: 19
Joined: Sun Jan 17, 2016 5:41 pm

Post by nbsp »

Instructor
OK, thank you!
Post Reply