AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scripts plugin
Goto page Previous  1, 2, 3 ... 42, 43, 44 ... 53, 54, 55  Next
 
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Fri May 11, 2012 5:36 am    Post subject: Reply with quote

Добавлено: в методы MemCopy, MemRead необязательный параметр, указывающий длину строки для чтения/записи. Используется с DT_ANSI или DT_UNICODE.

Added: in methods MemCopy, MemRead optional parameter that sets string length for reading/writing. Used with DT_ANSI or DT_UNICODE.


Scripts plugin v10.9
Back to top
View user's profile Send private message Send e-mail
FeyFre



Joined: 07 Aug 2007
Posts: 2054
Location: Vinnitsa, Ukraine

PostPosted: Fri May 11, 2012 7:51 am    Post subject: Reply with quote

Хотелось бы Mem* функцию - полный аналог СRT-шного memmove, т.е. передвинуть память с одного места на другое(именно memmove, а не memcpy, т.е. с учетом того что области источника и получателя могут перекрываться).
Ну и ещё memset (с разной шириной заполнителя).


Last edited by FeyFre on Fri May 11, 2012 8:59 am; edited 1 time in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Fri May 11, 2012 8:30 am    Post subject: Reply with quote

FeyFre
kernel32::RtlMoveMemory ?
Back to top
View user's profile Send private message Send e-mail
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Wed May 16, 2012 6:30 pm    Post subject: Reply with quote

Исправлено: возврат результата вызова метода MemCopy.

Fixed: return result of calling MemCopy method.


Scripts plugin v11.0
Back to top
View user's profile Send private message Send e-mail
KDJ



Joined: 06 Mar 2010
Posts: 1394
Location: Poland

PostPosted: Thu May 17, 2012 7:33 pm    Post subject: Reply with quote

Instructor wrote:
Added: in methods MemCopy, MemRead optional parameter that sets string length for reading/writing. Used with DT_ANSI or DT_UNICODE.

Do I understand well:
string length is in characters, not in bytes?
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2054
Location: Vinnitsa, Ukraine

PostPosted: Thu May 17, 2012 8:07 pm    Post subject: Reply with quote

KDJ, yes, in _TCHAR. And don't forget about tailing \0 (I think 7 versions of SpellCheck was unusable because I forgot about it).
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Sun Jun 03, 2012 12:53 pm    Post subject: Reply with quote

Исправлено: конвертирование типа VARIANT, в некоторых методах, приводило к ошибке переменной в VBScript.

Fixed: VARIANT type conversion in some methods cause variable error in VBScript.


Scripts plugin v11.1
Back to top
View user's profile Send private message Send e-mail
Infocatcher



Joined: 06 Aug 2007
Posts: 1629

PostPosted: Wed Jun 13, 2012 7:15 am    Post subject: Reply with quote

Баг: в списке скриптов можно назначить сочетание клавиш, уже занятое в плагине Hotkeys.
Back to top
View user's profile Send private message Visit poster's website
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Thu Jun 14, 2012 7:23 am    Post subject: Reply with quote

Infocatcher
Горячие клавиши плагина Hotkeys не резервируются - о них знает только сам плагин Hotkeys.
Back to top
View user's profile Send private message Send e-mail
Infocatcher



Joined: 06 Aug 2007
Posts: 1629

PostPosted: Thu Jun 14, 2012 7:28 am    Post subject: Reply with quote

Instructor
А как тогда плагин Hotkeys выводит список всех сочетаний клавиш?
Ну, то есть почему Hotkeys знает про Scripts, а Scripts про Hotkeys – нет?
Back to top
View user's profile Send private message Visit poster's website
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Thu Jun 14, 2012 7:30 am    Post subject: Reply with quote

Infocatcher
Потому что все остальные сочетания плагинов, регистрируются в ядре программы.
Back to top
View user's profile Send private message Send e-mail
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Sun Jun 17, 2012 5:47 pm    Post subject: Reply with quote

Infocatcher
В 4.7.7 сочетания Hotkeys плагина учитываются.
Back to top
View user's profile Send private message Send e-mail
Infocatcher



Joined: 06 Aug 2007
Posts: 1629

PostPosted: Mon Jun 18, 2012 5:52 am    Post subject: Reply with quote

Я, конечно, понимаю, что код не очень-то оптимален, но все же это баг:
Code:
var oSet = AkelPad.ScriptSettings();

if(oSet.Begin(WScript.ScriptBaseName, 0x1 /*POB_READ*/)) {
   oSet.End();
}

if(oSet.Begin(WScript.ScriptBaseName, 0x1 /*POB_READ*/)) {
   oSet.End();
   WScript.Echo("Ok");
}
else {
   WScript.Echo("Fail!");
}

Все время выходит на WScript.Echo("Fail!");

P.S. Если воткнуть между двумя чтениями
Code:
if(oSet.Begin(WScript.ScriptBaseName, 0x2 /*POB_SAVE*/)) {
   oSet.End();
}
, то заработает.
Back to top
View user's profile Send private message Visit poster's website
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5396

PostPosted: Mon Jun 18, 2012 6:01 am    Post subject: Reply with quote

Infocatcher
А не пробовали Smile
Code:
var oSet = AkelPad.ScriptSettings();

if(oSet.Begin(WScript.ScriptBaseName, 0x1 /*POB_READ*/)) {
   oSet.End();
   WScript.Echo("Ok1");
}
else {
   WScript.Echo("Fail1!");
}

if(oSet.Begin(WScript.ScriptBaseName, 0x1 /*POB_READ*/)) {
   oSet.End();
   WScript.Echo("Ok2");
}
else {
   WScript.Echo("Fail2!");
}
Back to top
View user's profile Send private message Send e-mail
Infocatcher



Joined: 06 Aug 2007
Posts: 1629

PostPosted: Mon Jun 18, 2012 6:06 am    Post subject: Reply with quote

Instructor
О, это еще забавнее.
И давно так? Very Happy


Last edited by Infocatcher on Mon Jun 18, 2012 6:12 am; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Plugins All times are GMT
Goto page Previous  1, 2, 3 ... 42, 43, 44 ... 53, 54, 55  Next
Page 43 of 55

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group