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 ... 73, 74, 75 ... 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
230116885



Joined: 24 Aug 2011
Posts: 36

PostPosted: Sun May 05, 2013 1:49 pm    Post subject: Reply with quote

opk44
Да, безусловно, Вы правы. Отсутствие свободного времени сказывается...

Пример для однострочного комментария:
Code:
# String

Пример для многострочного комментария:
Code:
# This
# is
# a
# multi-line
# comment


В Python не заявлены многострочные комментарии, поэтому данный скрипт выручил бы очень.

Тройная кавычка не может быть комментарием, потому что это не комментарий))

Например, тут это не сработает:
Code:
mylist = [\
'раз',
'два',
"""'три',
'четыре',"""
'пять'
]


Infocatcher
Благодарен за оперативность.
ЗЫ: тестовая версия работает.
Back to top
View user's profile Send private message
Infocatcher



Joined: 06 Aug 2007
Posts: 1646

PostPosted: Sun May 12, 2013 9:21 pm    Post subject: Reply with quote

winMergeTabs.js
Use UTF-8 with BOM to save new documents
Better handle errors when saving files
Back to top
View user's profile Send private message Visit poster's website
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5514

PostPosted: Sun Jun 09, 2013 4:03 am    Post subject: Reply with quote

KDJ
AkelPadMethodsView.js maybe try to search selected word (or word under caret) in methods and if found, select it?
Back to top
View user's profile Send private message Send e-mail
KDJ



Joined: 06 Mar 2010
Posts: 1437
Location: Poland

PostPosted: Sun Jun 09, 2013 3:37 pm    Post subject: Reply with quote

Instructor
I have done it.

AkelPadMethodsView.js
Now script on start try to find in methods list the text selected in AkelPad edit window.
If found, selects the item containing the text. Otherwise, selects previously selected item.
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5514

PostPosted: Wed Jun 12, 2013 5:31 am    Post subject: Reply with quote

KDJ
Works fine, thanks.

Few users requested to add to find/replace dialog quick access to options from "Advanced" tab:
"Replace all" closes dialog
Check "In selection" if selection not empty
Cycle search

Maybe add them to FindReplaceEx.js script?
Back to top
View user's profile Send private message Send e-mail
KDJ



Joined: 06 Mar 2010
Posts: 1437
Location: Poland

PostPosted: Wed Jun 12, 2013 8:15 pm    Post subject: Reply with quote

Instructor
Values of these options, I can retrieve using AKD_GETMAININFO:
AkelPad.SendMessage(hMainWnd, 1222 /*AKD_GETMAININFO*/, 228 /*MI_SEARCHOPTIONS*/, 0);
But I do not know how to change these options in the script?
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5514

PostPosted: Thu Jun 13, 2013 5:38 am    Post subject: Reply with quote

KDJ
Oh, yes no way. I will check it.
Back to top
View user's profile Send private message Send e-mail
KDJ



Joined: 06 Mar 2010
Posts: 1437
Location: Poland

PostPosted: Thu Jun 13, 2013 5:43 pm    Post subject: Reply with quote

Instructor

It could look like this:
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1437
Location: Poland

PostPosted: Fri Jun 14, 2013 8:20 pm    Post subject: Reply with quote

AkelPadMethodsView.js

Added:
- find name and find text,
- "Menu" button.
Changed:
- colors in edit control (such as in AkelPad edit window),
- action of Tab key.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1437
Location: Poland

PostPosted: Sat Jun 15, 2013 11:56 am    Post subject: Reply with quote

AkelPadMethodsView.js

Added: F1 hotkey for menu.
Fixed: bug in sorting the methods.
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5514

PostPosted: Sat Jun 15, 2013 12:45 pm    Post subject: Reply with quote

KDJ
Quote:
It could look like this:
Maybe add some small "switch" button - to expand dialog like on screenshot?

Test version. See AKD_SETMAININFO.
Back to top
View user's profile Send private message Send e-mail
KDJ



Joined: 06 Mar 2010
Posts: 1437
Location: Poland

PostPosted: Sun Jun 16, 2013 6:35 pm    Post subject: Reply with quote

Instructor
Thank you very much, it works perfectly.
Test version of the script (FindReplaceEx_test.js) is in KDJ.zip

image



There is one problem that I can not solve.
If the focus is in one of added controls to dialog box ("More" button or checkboxes), the keyboard does not work.
Please help me.
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5514

PostPosted: Tue Jun 18, 2013 8:07 am    Post subject: Reply with quote

KDJ
Scripts plugin v12.8

Code:
...
  AkelPad.WindowRegisterDialog(hDlg);
  AkelPad.WindowGetMessage();
  AkelPad.WindowUnregisterDialog(hDlg);
...
Back to top
View user's profile Send private message Send e-mail
KDJ



Joined: 06 Mar 2010
Posts: 1437
Location: Poland

PostPosted: Tue Jun 18, 2013 7:03 pm    Post subject: Reply with quote

Instructor
Thanks a lot, now is OK.

FindReplaceEx_test.js - test version for AkelPad 4.8.5: KDJ.zip
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1437
Location: Poland

PostPosted: Mon Jul 01, 2013 7:06 pm    Post subject: Reply with quote

Instructor
About AkelPad 4.8.5 dev.

#1
AKD_SETMAININFO message with the following parameters:
MIS_AKELADMINRESIDENT,
MIS_AKELUPDATEROPTIONS,
MIS_CMDLINEBEGIN,
MIS_CMDLINEEND,
MIS_DATEINSERTFORMAT,
MIS_DATELOGFORMAT,
MIS_PAINTOPTIONS,
MIS_RICHEDITCLASS,
MIS_SHOWMODIFY,
MIS_STATUSPOSTYPE,
MIS_STATUSUSERFORMAT,
MIS_URLCOMMAND,
MIS_WORDBREAKCUSTOM
works, but when you close AkelPad, these parameters are not saved in .ini file.

#2
AkelPad.SendMessage(hMainWnd, 1219 /*AKD_SETMAININFO*/, 157 /*MIS_TABOPTIONSMDI*/, 0x10101 /*TAB_SWITCH_NEXTPREV|TAB_TYPE_STANDARD|TAB_VIEW_NONE*/);
It works, but the effect is only visible after restarting AkelPad.
Back to top
View user's profile Send private message
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 ... 73, 74, 75 ... 94, 95, 96  Next
Page 74 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