Scripts discussion (1)
- Author
- Message
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
toggleComments-experimental.js
Исправлено некорректное определение конструкций вида func(a, /*b + */c) как регулярных выражений (важен первый непробельный символ перед открывающей «/»).
И, определение регулярных выражений, перед которыми находятся комментарии.
P.S. Что-то на форуме не то с шириной пробелов (?) в блоках кода.
Исправлено некорректное определение конструкций вида func(a, /*b + */c) как регулярных выражений (важен первый непробельный символ перед открывающей «/»).
И, определение регулярных выражений, перед которыми находятся комментарии.
P.S. Что-то на форуме не то с шириной пробелов (?) в блоках кода.
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Prototype with list of scripts: runScript-test.js
P.S.
P.S.
Как оказалось, что-то не так с отрисовкой шрифтов в Firefox 4 RC1.Я wrote:P.S. Что-то на форуме не то с шириной пробелов (?) в блоках кода.

-
Offline
- Site Admin
- Posts: 6403
- Joined: Thu Jul 06, 2006 7:20 am
Infocatcher
эквивалентно _TSTR.
Code: Select all
AkelPad.IsOldWindows() ? 0 /*DT_ANSI*/ : 1 /*DT_UNICODE*/
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Спасибо, упустил.Instructor wrote:эквивалентно _TSTR.

runScript-test.js
Dialog window is now resizable.
Removed eval() functionality – it's better to use separate scripts.
[Upd]
Separated eval() functionality:
executeScript.js, executeScript.vbs
Added -useTempFile argument – it's better to detect line with error.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Strange. Sometimes I can run itself, but only sometimes.1. Disable OK button when in the listbox is selected runScript
In any case, it was a feature.

Should work better: runScript-test.js
I don't know, how detect double click event.2. Double click on listbox can act as "Run".

Sounds very good, but I'm not sure that it is possible.3. After run sub-script, restore the focus to the dialog runScript.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
You can use LBN_DBLCLK: http://msdn.microsoft.com/en-us/library ... 85%29.aspxInfocatcher wrote:I don't know, how detect double click event.
Try this: WM_ACTIVATE (http://msdn.microsoft.com/en-us/library ... 85%29.aspx)Sounds very good, but I'm not sure that it is possible.
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Thanks, added.KDJ wrote:You can use LBN_DBLCLK

[Upd]
converter.js
getHash.js
Added handling of double clicks on radiobuttons.
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
jsBeautifier.js
Now used \n as line breaks (trim_leading_comments() function didn't work).
Now used \n as line breaks (trim_leading_comments() function didn't work).
-
Offline
- Posts: 767
- Joined: Mon Sep 28, 2009 10:03 am
- Location: Minsk, Belarus
WinMerge 0.3
Some improvements in finding paths to WinMerge
Some improvements in finding paths to WinMerge
-
Offline
- Site Admin
- Posts: 6403
- Joined: Thu Jul 06, 2006 7:20 am
Обновлен DeleteRecentFile.js для работы с AkelPad 4.5.6 или выше.
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Experimental and untested scripts come back again. 
toggleComments-experimental.js
-blockCommentsEntireLines=-1 and -blockCommentsEntireLines=0 now works with -preferLineComments=true.
converter-test.js
Base64 converter now supports \0 character.
Added -codePageURI and -codePageBase64 arguments. Old -codePage still supported, but deprecated.
crypt-test.js (renamed AESCrypt.js script)
Added Blowfish encryption, based on scripts from http://www.farfarfar.com/scripts/encrypt/.
Added warning for slow operations.
getHash-test.js
Added SHA-224, SHA-384 and SHA-512 hash functions, based on scripts from http://www.farfarfar.com/scripts/encrypt/.
Fixed -autoCalc=true.
Added warning for slow operations.

toggleComments-experimental.js
-blockCommentsEntireLines=-1 and -blockCommentsEntireLines=0 now works with -preferLineComments=true.
converter-test.js
Base64 converter now supports \0 character.
Added -codePageURI and -codePageBase64 arguments. Old -codePage still supported, but deprecated.
crypt-test.js (renamed AESCrypt.js script)
Added Blowfish encryption, based on scripts from http://www.farfarfar.com/scripts/encrypt/.
Added warning for slow operations.
getHash-test.js
Added SHA-224, SHA-384 and SHA-512 hash functions, based on scripts from http://www.farfarfar.com/scripts/encrypt/.
Fixed -autoCalc=true.
Added warning for slow operations.