Page 22 of 97

Posted: Thu Jul 22, 2010 9:30 am
by VladSh
se7h, Здорово!
Но теперь команды слева стало находить, а страницу не открывает..

И неплохо было бы задать проверку на существование на диске ChmKw.exe, и если нет - скорректировать строку поиска, хотя бы чтобы как раньше искало в корне..

Posted: Thu Jul 22, 2010 9:40 am
by se7h
Но теперь команды слева стало находить, а страницу не открывает..
обнови файлы справки

ChmKw.exe необходимая часть скрипта, наличие которой строго обязательно и если её нет - ищите :lol:

hh.exe я забыл как страшный сон

Posted: Thu Jul 22, 2010 10:00 am
by VladSh
se7h wrote:ChmKw.exe необходимая часть скрипта, наличие которой строго обязательно
Ок, сообщи об этом в скрипте, т.к. он молчит как партизан ))

И ещё микро-баг: я выделил слово самостоятельно, а потом вызвал справку, так вот если слово выделенное есть, то не надо сбрасывать его выделение, т.е. скрипт за меня не должен это решать: если мне не нужно выделение, то я не буду выделять, а нажму вызов справки на слове, иначе - выделение нужно.

Posted: Thu Jul 22, 2010 4:50 pm
by KDJ
VladSh

Scripts LinesMoveUpDown.js and ShiftVerticaly.js not work properly when the option "Wrap words" is enabled.
It turns out that the functions:
- AkelPad.SendMessage(hWndEdit, 1078 /*EM_EXLINEFROMCHAR*/, 0, nMinSel),
- AkelPad.SendMessage(hWndEdit, 1078 /*EM_EXLINEFROMCHAR*/, 0, -2),
- AkelPad.SendMessage(hWndEdit, 187 /*EM_LINEINDEX*/, nMinLine, 0),
- AkelPad.SendMessage(hEditWnd, 193 /*EM_LINELENGTH*/, nMaxLine, 0)
treat wrapped lines as a separate rows.

Maybe you know, which function to use, so that was good?

Posted: Thu Jul 22, 2010 5:20 pm
by VladSh
KDJ
Unfortunately I do not know.
I think this is a bug. But whose?..

By the way, I noticed that when working with this script I have from time to time by itself is turned off this option ("Wrap words").

Posted: Fri Jul 23, 2010 3:05 pm
by KDJ
I fixed the script LinesMoveUpDown.js.
It now works correctly with the options "Word wrap" and NoSelEOL.

PS.: VladSh thanks for the idea of disabling NoSelEOL.

Posted: Sat Jul 24, 2010 8:50 pm
by KDJ
I corrected the script LinesMoveUpDown.js.
With the help of Instructor, this script now works correctly with column selection.

Posted: Sun Jul 25, 2010 1:55 pm
by KDJ
VladSh wrote:Unfortunately I do not know.
I think this is a bug. But whose?..
I found other way to check whether the 'Word wrap" is enabled:
AkelPad.SendMessage(hEditWnd, 3241 /*AEM_GETWORDWRAP*/, 0, 0).
If is > 0, then "Word wrap" is enabled.
To switch the "Word wrap" serves the function:
AkelPad.Command(4209 /*IDM_VIEW_WORDWRAP*/).

Posted: Sun Jul 25, 2010 7:57 pm
by se7h
Update HTMLTidy.js v1.1

Posted: Mon Jul 26, 2010 9:08 pm
by KDJ
Try TextMoveLeftRight_.js script, which moves the selected text horizontally.

Posted: Tue Jul 27, 2010 8:57 am
by VladSh
KDJ wrote:Try TextMoveLeftRight.js script, which moves the selected text horizontally.
Something like this has been.
But these few uses, as there are Tab / Shift+Tab and Space / Shift+Space, that work even with the vertical selection.

Posted: Tue Jul 27, 2010 11:19 am
by KDJ
VladSh wrote:Something like this has been.
But these few uses, as there are Tab / Shift+Tab and Space / Shift+Space, that work even with the vertical selection.
Purpose of these two scripts is completely different.
ShiftRight.js adds spaces to the left of the line.
TextMoveLeftRight.js adds nothing to the text, only part of it moves.
Does not work with columnar selection, because it would make a confusion in the text.

Posted: Tue Jul 27, 2010 11:36 am
by VladSh
KDJ wrote:only part of it moves
Yeah, understood. Thanks for the clarification.
But easier to just cut and paste the text wherever necessary.
This would make sense just for the block selection, as the exchange of vertical blocks.

P.S. By the way for cases where there is no attempt to capture or move to the next line is not necessary to disable the function SmartSel::NoSelEOL.

Posted: Wed Jul 28, 2010 6:09 am
by se7h
как-то задумался, а можно ли создать скрипт интерактивного цветоселектора со вставкой кода цвета в редактор наподобие этого или у script plugin не хватит возможностей?

p.s.: на самый крайний случай сгодится диалог выбора цвета из windows

Posted: Wed Jul 28, 2010 7:15 am
by Fr0sT
se7h
по идее есть стандартный виндовый диалог выбора цвета. Так что ничего сложного на первый взгляд.