Scripts discussion (2)

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

Post by KDJ »

Added the script to change the font in ToolBar plugin window:
PlugToolBarAkelFont.js

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

Post by Infocatcher »

KDJ wrote:Excellent idea, thanks.
But why wait so much time (5 second).
Do you anticipate, that the new computers will run slower.
I don't have old computers for tests. :)
I tried to run internal tests in 7-Zip and WinRAR with "high: 13" priority, got lags with mouse movement, but this take only 162 ms.

Offline
Posts: 670
Joined: Thu Jun 03, 2010 8:47 am
Location: Сочи, Хоста
Contact:

Post by Andrey_A_A »

KDJ - отличная работа! Теперь всё видно в окнах редактирования меню!!!

Offline
Posts: 366
Joined: Mon Jan 10, 2011 5:28 pm
Contact:

Post by Lenchik »

KDJ
Супер!
Не могли бы вы соединить эти два скрипта в один так, чтобы если просто его вызвать, то автоматически вызывалось бы исправленное окно Contextmenu, а если уже открыто окошко Toolbar или Contextmenu, то в них бы правился шрифт? Тогда можно было бы назначить этому совмещённому скрипту одну горячую комбинацию клавиш, а не каждому скрипту свою.

Offline
Posts: 670
Joined: Thu Jun 03, 2010 8:47 am
Location: Сочи, Хоста
Contact:

Post by Andrey_A_A »

Lenchik
Я тоже за объединение. Я сразу на это намекал...


ещё раз обновил WriteInWhiteSpellCheckList.vbs

добавил возможность добавлять в "белый список" выделенный вертикальный список слов + остался тот же функционал

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

Post by KDJ »

Lenchik, Andrey_A_A
Or maybe better to ask Instructor, if he can add the function, allowing the script to open ToolBar dialog.

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

Post by KDJ »

MoveLinesUpDown.js script has been replaced by new LinesSelectMoveDuplicate.js
Added the ability to move any number of rows up and down.

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

Post by KDJ »

ResetUrlDelimiters.js
ResetUrlPrefixes.js
InsertTabOrSpaces.js
WordsMoveSelect.js
Scripts have been adapted to work with AkelPad version 4.6.5.

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

Post by KDJ »

LinesSelectMoveDuplicate.js
Fixed two minor bugs.

Offline
Posts: 767
Joined: Mon Sep 28, 2009 10:03 am
Location: Minsk, Belarus

Post by se7h »

Andrey_A_A
как насчёт доработки WriteInWhiteSpellCheckList.vbs под новую
(динамическое обновление белого списка)
SpellCheck 1.6?

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

Post by KDJ »

LinesSelectMoveDuplicate.js
Now if the script is run with no arguments, it displays poup menu and input box.

Offline
Posts: 670
Joined: Thu Jun 03, 2010 8:47 am
Location: Сочи, Хоста
Contact:

Post by Andrey_A_A »

se7h
Я бы с удовольствием обновил, я понимаю что должно происходить - но провёл десятки экспериментов - всё на прежнем уровне
- если подскажешь, может подтупливую...

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

Post by KDJ »

FeyFre
I have such a request.
Can you put in Library Win32 Constants Richedit constants.

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

Post by KDJ »

PlugTextToAkelPad.js
Added: message if the plugin window is not open.

Offline
Posts: 2247
Joined: Tue Aug 07, 2007 2:03 pm
Location: Vinnitsa, Ukraine

Post by FeyFre »

Andrey_A_A, кусочек скрипта добавляющего выделенное слово в белый список для файлов с расширением txt.

Code: Select all

// some-js-script.js
var word = AkelPad.GetSelText();
//! есть ли выделение
if(!word || word.length==0)
  WScript.Quit();
var WhiteListText = "+txt\n" +word + "\n";
AkelPad.Call("SpellCheck::Background",1,WhiteListText);
Locked