========================================
ScriptName: NumberCount.js
ScriptVer:  0.7
LastUpdate: 2012-12-15
Author:     cnnnc
========================================
English
========================================
Insert text or/and a sequence of Num/RandomNum to Begin or/and End of every line.
EscSeq is allowed in "String":
      \\ - backslash
      \r - line feed
      \n - new line
      \t - tabulation
      \N - Decimal number sequence
      \H - Hexadecimal number sequence
      $1 - original line

If Num is not checked, \N be treated as is.
If there is more \N, more Step will be done in one line. When "Lazy mode" CheckBox is checked, all \N will be same.
Float Number is allowed in "First" and "Step/End".
Negative number is allowed in "First","Step/End" and "WIDTH".

Num can be from "First" to END(According to the lines of Selection) Up/Down by "Step".
RandomNum is between "First" and "End".
Num/RandomNum can be formatted in fixed WIDTH, and PaddingChar default is at Begin of Num/RandomNum.
if WIDTH<0, PaddingChar be Added to the end of Num/RandomNum.

Support the localization language files.

2 way of run this script:
1.) GUI without arguments, arguments saved to ini after executed.
    This script show a messagebox to tell you how long be spent on your large text when more than 1.4 s.
2.) No GUI but with arguments, and never read and write the Arguments from/to ini.
    Example:
    -"LineNumber" Call("Scripts::Main", 1, "NumberCount.js", `-Str="\N|$1" -Num=1 -Rand=0 -Lazy=0 -First=1 -Step=1 -Width=4 -Pad=" "`)
    Default value: Call("Scripts::Main", 1, "NumberCount.js", `-Str="$1" -Num=0 -Rand=0 -Lazy=0 -First=1 -Step=1 -Width=1 -Pad="0"`)
========================================
(Chinese Simplified)
========================================
ı/һ/ееĿͷ/ͽβ
ıʹת:
      \\ - б
      \r - س
      \n - з
      \t - Ʊ
      \N - 10
      \H - 16
      $1 - еԭʼ

δѡ֡ѡ\N ΪԭЧ
ֹһ "\N"ԭһҲж ģʽ ѡѡʱ\N ֻһΡ
ʼ͡/ıֵ
ʼ/͡ȡıʹøֵ

ǴӡʼաСֱ(ѡ)
ֵֵķΧ "ʼ"  "" ֮䡣
/ ԸʽΪ̶ĿȣʹַĬ俪ͷλá
 <0, ʹַӵ/ֵĩβ
ֱ֧ػļ

зʽ:
1.) GUI 棬ʹ֮Ĳᱣ浽 ini ļ
    ı̫󣬶ʹõʱ䳬 1.4 룬һϢܰʾ
2.) зʽ GUI 棬Ҳд ini ļ
    
    -"к" Call("Scripts::Main", 1, "NumberCount.js", `-Str="\N|$1" -Num=1 -Rand=0 -Lazy=0 -First=1 -Step=1 -Width=4 -Pad=" "`)
    ĬֵCall("Scripts::Main", 1, "NumberCount.js", `-Str="$1" -Num=0 -Rand=0 -Lazy=0 -First=1 -Step=1 -Width=1 -Pad="0"`)
========================================
