Page 4 of 30
Posted: Fri Feb 24, 2017 3:46 pm
by YuS
opk44 wrote:Не обязательно вторая, но и первая цифра тоже может оказаться двузначной (9.6-10.2).
Угу, вариативность должна быть заранее оговорена...
По-хорошему, правильнее было бы создать два счетчика и уточнить зависимость увеличения левого числа при достижении максимума (?) правого... тогда проще было бы алгоритм сварганить...
Posted: Sun Feb 26, 2017 11:58 am
by InFive
KDJ
regarding the script TextReplace.js
I have prepared a batch file, which contains the rules of 2697 replacements. in the document and in batch file all on one item, you just need to make adjustment in the text. but when I use your batch file, then displays the result that replacements was 2720 ... in the batch file duplicates no, the original document that I need to handle, was generated automatically and repeats is absolutely excluded.
so the question is-can you do the opportunity to show the detailed result that would contain info what and where was replaced?
относительно скрипта TextReplace.js
я подготовил batch-файл, в нем 2697 правил замен, в документе и в batch файле всё по одному элементу, нужно просто сделать перестановки в тексте... но когда я применяю свой batch файл, то результат выдает, что замен было сделано 2720... в batch файле повторов нету, исходный документ, который нужно обработать, был сгенерирован автоматически и повторы абсолютно исключены...
поэтому вопрос - можно ли прикрутить возможность, чтобы выводился подробнй результат, который бы содержал инфу, что и где было заменено?
Posted: Tue Apr 11, 2017 9:20 pm
by InFive
пожалуйста, сделайте кто-нить скрипт по конвертированию римских цифр в арабские...
Posted: Sat May 20, 2017 10:26 am
by Diamen
deleted.
go end line
Posted: Sat May 20, 2017 3:11 pm
by Diamen
Do it is possible to go end line (wrapped and not line) programmatically?
Posted: Mon May 22, 2017 6:14 pm
by KDJ
Diamen wrote:deleted.
Why you deleted the post about WM_COPYDATA?
This topic is interesting.
If you have solved the problem himself, you could share with us of the the results.
Diamen wrote:Do it is possible to go end line (wrapped and not line) programmatically?
Examples:
Code: Select all
//Go to end of wrapped line:
var hWndEdit = AkelPad.GetEditWnd();
var nCaretOffset = AkelPad.SendMessage(hWndEdit, 3138 /*AEM_GETRICHOFFSET*/, 5 /*AEGI_CARETCHAR*/, 0);
var nLineEndOffset = AkelPad.SendMessage(hWndEdit, 3138 /*AEM_GETRICHOFFSET*/, 17 /*AEGI_LINEEND*/, nCaretOffset);
AkelPad.SetSel(nLineEndOffset, nLineEndOffset);
Code: Select all
//Go to end of unwrapped line:
var hWndEdit = AkelPad.GetEditWnd();
var nCaretOffset = AkelPad.SendMessage(hWndEdit, 3138 /*AEM_GETRICHOFFSET*/, 5 /*AEGI_CARETCHAR*/, 0);
var nLineEndOffset = AkelPad.SendMessage(hWndEdit, 3138 /*AEM_GETRICHOFFSET*/, 19 /*AEGI_WRAPLINEEND*/, nCaretOffset);
AkelPad.SetSel(nLineEndOffset, nLineEndOffset);
Posted: Mon May 22, 2017 6:36 pm
by Diamen
Excuse me, i have posted code in the
collection.
Posted: Mon Jun 05, 2017 5:16 pm
by Sugars
Подскажите как можно отслеживать нажатие клавиш?
Мне необходимо в скрипте получить последнее нажатие, далее я делаю некое преобразование в тексте и повторно его нажимаю.
Posted: Sat Jun 10, 2017 10:36 am
by Instructor
Sugars
Это непросто, начиная с постановки задачи и заканчивая реализацией. Лучше сформулировать другое ТЗ

F3 string setting
Posted: Sat Jun 17, 2017 10:43 am
by Diamen
Do it is possible to set programmatically the string to search when is pressed F3 key?
Posted: Sat Jun 17, 2017 4:52 pm
by c-sanchez
How?
By default with
Ctrl+F you call the Find dialog, and with F3 you find the next occurrence. I think so is ok.
But if you want call the Find dialog with F3 then set a shortcut key with Hotkeys plugin.
Options > Plugins (Alt+P) > Hotkeys::Main >
Set something like this

Posted: Sat Jun 17, 2017 4:54 pm
by Diamen
ty, But I asked for something else.
I would to js script f.e.
setSearchString("test");
and then when press F3
search for "test".
Posted: Sat Jun 17, 2017 5:53 pm
by Diamen
In terms of performance and resource management It's best to use HotKeys plugin to run the same script with multiple functions or Launch a memory resident script that manages the pressed keys with WindowGetMessage?
Posted: Sat Jun 17, 2017 7:53 pm
by Sugars
Instructor wrote:Sugars
Это непросто, начиная с постановки задачи и заканчивая реализацией. Лучше сформулировать другое ТЗ

Было бы просто - не спрашивал бы, ну ладно... решил сторонней программой...
KDJ у вас есть скрипт EditControlTest.js , не могли ли вы сделать то же самое на vbs - у меня не получается и вообще нет ни одного подобного примера на vbs с использованием DialogCallback(hWnd, uMsg, wParam, lParam)
Posted: Sun Jun 18, 2017 11:27 am
by Diamen
do it is possible to use "
RegisterHotKey" ?
i get a error 1408: "Invalid window; it belongs to other thread"
I read
this but not is clear.