Scripts discussion (2)

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

Post by KDJ »

F. Phoenix
You can temporarily disable WordWrap:

Code: Select all

var nWordWrap = AkelPad.SendMessage(AkelPad.GetEditWnd(), 3241 /*AEM_GETWORDWRAP*/, 0, 0);
if (nWordWrap > 0) AkelPad.Command(4209 /*IDM_VIEW_WORDWRAP*/);
var cur = AkelPad.SendMessage(AkelPad.GetEditWnd(), 187 /*EM_LINEINDEX*/, line - 1, 0);
AkelPad.SetSel(cur, cur);
if (nWordWrap > 0) AkelPad.Command(4209 /*IDM_VIEW_WORDWRAP*/);

Offline
Posts: 176
Joined: Sat Dec 24, 2011 4:05 pm

Post by F. Phoenix »

Infocatcher, ага, спасиб.

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

Post by KDJ »

Updated FileAndStream_2052.lng by cnnnc.

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

Post by KDJ »

InputBox_function.js
Added:
argument nFocus - index of vEdit array item, on which will set keyboard focus.
Changed:
if will pressed OK button, return value is:
- array of strings - if vEdit is array (also empty array),
- string - otherwise.

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

Post by KDJ »

Scripts-Eng.txt wrote:AkelPad.ThreadHook
...
The maximum number of installed hooks at the same time is 4.
Whether in the case of the following methods:
AkelPad.SystemFunction().RegisterCallback
AkelPad.WindowRegisterClass
AkelPad.WindowSubClass
there is a limit on the number of registered functions at the same time?

Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

measuresConverter.js
http://exchange-rates.org/converter/EEK/USD/1/N n/a now, will use http://www.google.com/ig/calculator?hl= ... K%3D%3FUSD
Added caching of calculations result.
Improved error reporting.

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

Post by KDJ »

FileAndStream.js

Added:
- favorite applications (menu - "Applications" and "Run", context menu - "Open in favorite").
- displayed name in menu for external applications (viewer, editor, comparer),
- option "Special folders" in menu "Directory".
Changed *.lng files.
Fixed bug in swap panels.

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

Post by Instructor »

KDJ
AkelPad.SystemFunction().RegisterCallback - the maximum number of working callback functions at the same time is 4.

AkelPad.WindowRegisterClass - without limit.
AkelPad.WindowSubClass - without limit.

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

Post by KDJ »

Instructor
Thank you very much for your response. This is important information. Can you add this in Scripts-Eng.txt.

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

Post by Instructor »

KDJ
Already is.

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

Post by Instructor »

KDJ
FileAndStream.js

LVM_DELETEALLITEMS, LVM_INSERTITEM processed much faster if you turn off control repaining with WM_SETREDRAW:

Code: Select all

function FillFileList(nPan, sSelFile, nSelPos, bCheckFilter)
{
  ...
  var bResult;

  AkelPad.SendMessage(aWnd[IDFILELV0 + nPan][HWND], 0xB /*WM_SETREDRAW*/, false, 0);
  if (hFindFile != -1) //INVALID_HANDLE_VALUE
  {
    ...
    AkelPad.MemFree(lpTimeStr);
    bResult = true;
  }

  else
  {
    if (aCurDir[nPan][aCurDrive[nPan]].Path.length == 3)
    {
      ...
      bResult = true;
    }
    else
      bResult = false;
  }
  AkelPad.SendMessage(aWnd[IDFILELV0 + nPan][HWND], 0xB /*WM_SETREDRAW*/, true, 0);
  return bResult;
}

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

Post by KDJ »

Instructor
Oh, indeed. Thank you very much.
I'll do it in the next version of the script.

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

Post by KDJ »

InputBox_function.js
Added: argument sFunction - name of the function used to validate entered data.

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

Post by KDJ »

FileAndStream.js

Changed: uses new version InputBox_function.js.
Fixed: refresh speed of the files list.

Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

CodePoster_mod.js
Changed: used <strong> and <em> in XHTML mode.
Improved: don't get output twice. ;)
Improved: tries merge sibling regions with same formatting.

P.S. А еще в оригинальном скрипте не хватает экспорта пользовательских пометок.
Locked