Scripts discussion (2)
- Author
- Message
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
FeyFre
I've done, as you suggested: FileStreams_functions.js
Can you test this on Win-Vista or Win-7?
I've done, as you suggested: FileStreams_functions.js
Can you test this on Win-Vista or Win-7?
-
Offline
- Posts: 2248
- Joined: Tue Aug 07, 2007 2:03 pm
- Location: Vinnitsa, Ukraine
KDJ, no can do. I'm still using XP and have not any Vista/7 in my reach range.
But I have analysed changes and have a notices:
You checking only major OS version(if >5 then FindFirstStreamW is present) which define set of Vista,7,2008,8, but You missed 2003(major=5 and minor=2).
Second: codemust be changed into e.g. hardcode 2 instead of _TSIZE since you explicitly use Unicode variant of function (suffix W means _TSIZE == 2)
In any case Good Work! You almost did what I planned to do for few months.
But I have analysed changes and have a notices:
You checking only major OS version(if >5 then FindFirstStreamW is present) which define set of Vista,7,2008,8, but You missed 2003(major=5 and minor=2).
Second: code
Code: Select all
var lpFindStream = AkelPad.MemAlloc(8 + (260 + 36) * _TSIZE);
Code: Select all
var lpFindStream = AkelPad.MemAlloc(8 + (260 + 36) * 2);
In any case Good Work! You almost did what I planned to do for few months.
-
Offline
- Posts: 3234
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact:
Instructor
Хотелось бы понять, каким образом можно использовать
Хотелось бы понять, каким образом можно использовать
Andrey_A_AInstructor wrote:Добавлено: метод AkelPad.GetEditDoc - определить дескриптор активного документа.
Возможно и не из-за этого. но SwitchSplittedWindow.vbs завалился.Instructor wrote:Изменено: переключение между командами 4212, 4213, 4214 осуществляется без промежуточного отключения разделения окна.
Last edited by VladSh on Fri Nov 18, 2011 8:37 am, edited 1 time in total.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
ResetUrlDelimiters.js
ResetUrlPrefixes.js
InsertTabOrSpaces.js
WordsMoveSelect.js
Scripts have been adapted to AkelPad version 4.7.0.
ResetUrlPrefixes.js
InsertTabOrSpaces.js
WordsMoveSelect.js
Scripts have been adapted to AkelPad version 4.7.0.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
-
Offline
- Posts: 670
- Joined: Thu Jun 03, 2010 8:47 am
- Location: Сочи, Хоста
- Contact:
Обновил SwitchSplittedWindow.vbs
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
-
Offline
- Posts: 767
- Joined: Mon Sep 28, 2009 10:03 am
- Location: Minsk, Belarus
-
Offline
- Posts: 3234
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact:
Вопрос по "определению символа(-ов) сдвига из настроек" снимается, - спасибо KDJ.
Откорректирован selCompleteLine.js.
Откорректирован selCompleteLine.js.
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Да как-то вяло, если честно.se7h wrote:как дела с гуёвиной?
Сначала было не определиться с внешним видом, а потом стало некогда.
Сейчас вот еще выяснилось, что с вкладками не все так просто (вылезает фон другого цвета).
-
Offline
- Site Admin
- Posts: 6403
- Joined: Thu Jul 06, 2006 7:20 am
VladSh, KDJ
Code: Select all
var hMainWnd=AkelPad.GetMainWnd();
var bTabStopAsSpaces;
bTabStopAsSpaces=AkelPad.SendMessage(hMainWnd, 1223 /*AKD_GETFRAMEINFO*/, 52 /*FI_TABSTOPASSPACES*/, 0);
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
Instructor
Thanks for the hint. It is more simple.
But I need also to change bTabStopAsSpaces value in FRAMEDATA structure:
AkelPad.MemCopy(lpFrame + nOffset, (! bTabStopAsSpaces), DT_DWORD);
It would be good something like that:
AkelPad.SendMessage(hMainWnd, n /*AKD_SETFRAMEDATA*/, 52 /*FI_TABSTOPASSPACES*/, (! bTabStopAsSpaces), 0);
Thanks for the hint. It is more simple.
But I need also to change bTabStopAsSpaces value in FRAMEDATA structure:
AkelPad.MemCopy(lpFrame + nOffset, (! bTabStopAsSpaces), DT_DWORD);
It would be good something like that:
AkelPad.SendMessage(hMainWnd, n /*AKD_SETFRAMEDATA*/, 52 /*FI_TABSTOPASSPACES*/, (! bTabStopAsSpaces), 0);