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 discussion (2)
Goto page Previous  1, 2, 3 ... 54, 55, 56 ... 94, 95, 96  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    AkelPad Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
tmsg



Joined: 21 Aug 2012
Posts: 27
Location: UK

PostPosted: Wed Sep 19, 2012 10:28 am    Post subject: Reply with quote

Thanks, KDJ and Instructor. Funnily enough, I found the AKD_GOTO* messages first thing this morning;-) even before looking into the forum. And of course the next thing I saw is that Scripts-Eng.txt does contain a full example of what I want to do.

I am quite happy with AP. In comparison to UltraEdit, it can now do most of what I could do there and AP is much, much easier to enhance (not least because the full sources are available).

However, the thing I like most about AP is its blazing speed: opening ~40 .H files is about 10 times (!) faster than with UE. Replacing strings in big files is another area where I see amazing speed differences.

Great editor and great forum!

TM
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5321

PostPosted: Wed Sep 19, 2012 4:35 pm    Post subject: Reply with quote

Andrey_A_A wrote:
По поводу скрипта DrawLine.js
Хороший скрипт, можно ещё вставить в него горячую клавишу по выходу из него.
Т.е. нажал - нарисовал - нажал гор. клавишу выхода
В скрипте указано:
Quote:
Second script call will turn off drawing.
Это значит, что повторный вызов остановит выполнение скрипта. Т.е. назначаем сочетание в Hotkeys плагине на вызов скрипта.
Back to top
View user's profile Send private message Send e-mail
KDJ



Joined: 06 Mar 2010
Posts: 1341
Location: Poland

PostPosted: Thu Sep 20, 2012 7:02 pm    Post subject: Reply with quote

RegExpTestJS.js
Added Chinese-Simplified translation.

Translator.js
Updated Chinese-Simplified translation.
Back to top
View user's profile Send private message
Andrey_A_A



Joined: 03 Jun 2010
Posts: 547
Location: Сочи, Хоста

PostPosted: Tue Sep 25, 2012 2:59 pm    Post subject: Reply with quote

Quote:
закрыть все вкладки правее текущей

А кто знает как получить номер текущей вкладки и к-во всего открытых вкладок?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FeyFre



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

PostPosted: Tue Sep 25, 2012 4:08 pm    Post subject: Reply with quote

Andrey_A_A, ну я знаю как. TCM_GETCURSEL. Только это ответ не этой темы. "для чайников"
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Denis268



Joined: 19 Jun 2010
Posts: 22
Location: Ukraine

PostPosted: Tue Sep 25, 2012 5:24 pm    Post subject: Reply with quote

При использовании скриптов LinesSelectCopyMoveDuplicate.js и ShiftVerticaly.js с параметрами для смещения через Hotkey плагин AkelPad вылетает с ошибкой. Sad
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1341
Location: Poland

PostPosted: Tue Sep 25, 2012 5:35 pm    Post subject: Reply with quote

Andrey_A_A
You can also use AKD_FRAMESTATS.
Code:
var hMainWnd=AkelPad.GetMainWnd();
var nCurTab=AkelPad.SendMessage(hMainWnd, 1291 /*AKD_FRAMESTATS*/, 3 /*FWS_CURSEL*/, 0);
var nTabs=AkelPad.SendMessage(hMainWnd, 1291 /*AKD_FRAMESTATS*/, 0 /*FWS_COUNTALL*/, 0);
WScript.Echo("CurTab: " + nCurTab + "\r\n" + "Tabs: " + nTabs);
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1341
Location: Poland

PostPosted: Tue Sep 25, 2012 5:53 pm    Post subject: Reply with quote

Denis268
What arguments do you use with LinesSelectCopyMoveDuplicate.js?
Back to top
View user's profile Send private message
Denis268



Joined: 19 Jun 2010
Posts: 22
Location: Ukraine

PostPosted: Tue Sep 25, 2012 6:08 pm    Post subject: Reply with quote

KDJ
I use Call("Scripts::Main", 1, "LinesSelectCopyMoveDuplicate.js", "M -1") for for shift up and argument "M 1" for shift down.
Back to top
View user's profile Send private message
VladSh



Joined: 29 Nov 2006
Posts: 2610
Location: Киев, Русь

PostPosted: Tue Sep 25, 2012 7:28 pm    Post subject: Reply with quote

Denis268 wrote:
При использовании скриптов - ShiftVerticaly.js с параметрами для смещения через Hotkey плагин AkelPad вылетает с ошибкой. Sad
Использую скрипт ShiftVerticaly.js именно с параметрами с помощью Hotkeys-плагина, вылетов или неправильной работы добиться не удалось.
Back to top
View user's profile Send private message Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1341
Location: Poland

PostPosted: Tue Sep 25, 2012 8:28 pm    Post subject: Reply with quote

Denis268, VladSh
In fact, this happens if you hold down the shortcut key for a long time. I do not know what is the cause.
Instructor, check it please.
Back to top
View user's profile Send private message
Denis268



Joined: 19 Jun 2010
Posts: 22
Location: Ukraine

PostPosted: Tue Sep 25, 2012 8:41 pm    Post subject: Reply with quote

KDJ, VladSh
Похоже проблема связана с моими настройками, так как на чистом ini AkelPad тоже не падает.
Мои настройки AkelPad.ini
Code:
MIME-Version: 1.0
Content-Type: application/octet-stream; name="AkelPad.rar"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="AkelPad.rar"
UmFyIRoHAM+QcwAADQAAAAAAAAC/YXQgkDAAKgYAAA4uAAACj8VB36+8OEEdNQsAIAAAAEFrZWxQ
YWQuaW5pAPAqdRWnGP7/YAZFvRAx2XcnO+MZOKO6XoXKfnxJhVBNxfDqtrZmB+mym6qY5+ym0SrV
g3LgWt/5WxlSkQH7suJbaDTqqm6rPV1tD1chbIpILfahkabqR5VF6mmoPJiIDtpfV5p2pmTf2WHF
wCxppQ44ThwDi4da0Zi6Nw5kTK5Xbb+6COt2HpCr1lYvywVwg3sXnpQx8EZxwZbw6dKRY4mVmL2d
VtBRay4T2AOr4yjl+ZNBDmuaSk3DpPtYXelup6J2xi1BE0559NWxmwbndfK4ZoGcz2UKwoYtirTl
LqTPtuMI2M0q03YZ28vteYZ2MP73xVELpEgi5KEOqa4KEGXIRyVyd4MymtEFLy9pE57tXHZRgJV1
vouwKrlAyw4gaUk1g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2LBnS17q2t5ne5tfVoyeLAZv4dH/04jmHAMuvWdDX8uWcZ7rUNVY3jMKNULwy
7bdhJ0rjFraWxDUgjfd3XBU48dVtw4NkZ7U4D01psweYqpktXUHy5YVM/fY32DnEO4Qr6RQJ2TJl
LjhDEijEzcuHVjXDZc0vwlK6MdCmtgFoDuQgCWwOP96WOXQbtgzxdyfQJoi1zujbB490o3d2ZUEX
8OLxPxL/ugGNf1M+yt54nysEZFZqeaSk8aZYLG1lLzIAgaDkm6VIvEHpHSi2GC0eDdJV/Ol0Arda
xizOirUXuGXCM+eFdadaQXfhc3LH6Kq4is8cQFVVkXkSGlNhQt0B4laseH5I//vGxpWFaNHSuez0
sk+z+bOXnqC1ATIg9co+3wPbT5e7grh+LAxq/JaySDX3xE3ZTObqWU/v0dZPodUvNXLexARh2F10
stLM+NptWoL0VCoDcHMNN2fwr2IC+EwjJ9t6KErI3yLZ//rEp/VSlDJlSyygblkExc6R9QLWJsKg
TiY5KyJkUKxB0BbMUGYdiR5HKQukwgPtoaDFOY51gIdJ9qOC7xZt9qYPirIbJMJgSqWHQvfZPOg6
EanDRIeWRByrNN8h7ChQxuIwKWp1u9LaqF5y9PwKDIBIMUXc8jPDehwAAL+IZ/ap/9TEPXsAQAcA

Буду разбираться.
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5321

PostPosted: Wed Sep 26, 2012 3:45 pm    Post subject: Reply with quote

KDJ wrote:
In fact, this happens if you hold down the shortcut key for a long time.
Reproduced.

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



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

PostPosted: Mon Oct 01, 2012 11:35 am    Post subject: Reply with quote

Instructor, просьба усовершенствовать скрипт DuplicateLines.js, а именно: если линий не выделенно, то дублировать текущую линию.
(Конечно хотелось такую функцию встроенной, ибо от DosNavigator-а ещё не скоро привычки отойдут)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5321

PostPosted: Mon Oct 01, 2012 12:10 pm    Post subject: Reply with quote

FeyFre
DuplicateLines.js v1.1
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    AkelPad Forum Index -> Plugins All times are GMT
Goto page Previous  1, 2, 3 ... 54, 55, 56 ... 94, 95, 96  Next
Page 55 of 96

 
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