Scripts discussion (3)

Discuss and announce AkelPad plugins
  • Author
  • Message
KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Infocatcher
Thank you very much.

Translator.js
Updated Russian translation.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

FileInfo.js
Added:
- percentage statistics,
- sorting details by statistics.
Fixed:
- statistics for binary files.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Instructor
AkelEdit.h wrote://AEM_GETLINENUMBER flags
#define AEGL_LINECOUNT 0 //Total number of text lines. If the control has no text, the return value is 1.
#define AEGL_FIRSTSELLINE 1 //First line of the selection.
...
#define AEGI_LINEFROMRICHOFFSET 20 //Line of the specified RichEdit offset. lParam is RichEdit offset (if -1 caret offset). Equivalent to EM_EXLINEFROMCHAR.
#define AEGI_UNWRAPLINEFROMRICHOFFSET 21 //Unwrapped line of the specified RichEdit offset. lParam is RichEdit offset (if -1 caret offset).
Constant names AEGI_LINEFROMRICHOFFSET and AEGI_UNWRAPLINEFROMRICHOFFSET are a little misleading.

Offline
Posts: 202
Joined: Sat Mar 28, 2015 2:36 pm
Location: Russia

Post by Kley »

KDJ
LinesHideShow.js
Cool!

Code: Select all

if ((nHide == 0) || (! sText))
{
  if (AkelPad.SendMessage(hEditWnd, 3406 /*AEM_GETFOLDCOUNT*/, 0 /*AEFC_ALL*/, 0))
  {
    AkelPad.SendMessage(hEditWnd, 3408 /*AEM_DELETEFOLD*/, 0 /*all*/, 0);

    if ( ! AkelPad.IsPluginRunning("Coder::CodeFold"))
      AkelPad.Call("Coder::CodeFold");

    AkelPad.SendMessage(hEditWnd, 3416 /*AEM_UPDATEFOLD*/, 0, nFirstVisLine);
  }
}

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

LinesHideShow.js
Added: search with regular expressions.
Improved:
- now can hide the last line in document,
- if -hide=0 and Coder::CodeFold was previously running, it will be turned on.

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

Post by Instructor »

KDJ wrote:Constant names AEGI_LINEFROMRICHOFFSET and AEGI_UNWRAPLINEFROMRICHOFFSET are a little misleading.
Corrected, thanks.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

TabFont.js
Added: the height of tabs is adjusted to the height of characters (only in MDI mode, doesn't work in PMDI mode).

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

AkelPadManualSettings.js
Added: flag 128 in "PaintOptions" - unit of vertical scrolling is line (default is pixel).
Updated for AkelPad ver. 4.9.8.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

TextReplace_function.js
TextReplace.js
Required: AkelPad 4.9.8 or later.
Added:
- service of bookmarks,
- counting in ranges.
- ReplaceWith function can return boolean value true/false (see description in TextReplace_function.js),
- option 'Disable "Undo"' for batch replace (less memory usage).
Changed:
- F1 key - show context menu if available (for edit controls and "Find" button),
- Ctrl+F1 - AkelHelp-*.htm.

Offline
Posts: 96
Joined: Tue Nov 10, 2015 4:56 am

Post by InFive »

а что, получается, что нет никакого скрипта по ассоциации файлов с AkelPad? а то скрипт от Андрея Аверина не работает...

YuS
Offline
Posts: 513
Joined: Sun Sep 15, 2013 8:25 am
Location: 013 в Тентуре, семь по Спирали, налево от Большой Медведицы

Post by YuS »

KDJ wrote:TextReplace.js

Code: Select all

  else if (AkelPad.GetLangId(0 /*LANGID_FULL*/) == 1049) //Russian
{
    ...
    sTxtLockUndo      = 'Выкл. "Отменить"';                  //new
    ...
    sTxtBookmarks     = 'Закладки';                       //new
    ...
    sTxtFindInBooks   = 'Найти в закладках';               //new
    ...
    sTxtCountInRange  = 'Посчитать в диапазоне';                  //new
    ...
    sTxtAreYouSure    = 'Вы уверены?';
    ...
    sTxtSaveDocs      = 'Все документы, подлежащие замене, необходимо сохранить!';     //new
    ...
  }

Offline
Posts: 3234
Joined: Wed Nov 29, 2006 1:19 pm
Location: Киев, Русь
Contact:

Post by VladSh »

InFive wrote:а что, получается, что нет никакого скрипта по ассоциации файлов с AkelPad?
reassoc.js на WinXP и Win7 работал. Был какой-то небольшой косяк, но что конкретно не припомню.

Offline
Posts: 96
Joined: Tue Nov 10, 2015 4:56 am

Post by InFive »

VladSh wrote:reassoc.js на WinXP и Win7 работал
благодарю за напоминание, оказалось, что он есть уже у меня, как-то я загружал его но не использовал, поэтому забыл... буду разбираться...

проверил, вроде работает... была проблема после ассоциации, при открытии файла xml вылетала ошибка что мол не найден файл, хотя он уже открыт... пришлось в реестре удалить для расширения xml ветку ddeexeс и теперь корректно открывается всё...

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

TextReplace.js
Updated Russian translation by YuS.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

CalculatorBin.js
CalculatorJS.js
HtmlView.js
MapNetDrive.js
PDFtk-G.js
RunCommand.js
Translator.js
WindowsList.js
Fixed: does not work if the script is running from command line with Scripts plugin ver.18.5.
Locked