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 ... 71, 72, 73 ... 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
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Sun Mar 31, 2013 9:53 pm    Post subject: Reply with quote

Translator.js
Fixed minor bug and improved calling the script with arguments.
The first argument can be set to "auto", which means auto-detection of the source language, eg:
Call("Scripts::Main", 1, "Translator.js", "auto ru").
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Sat Apr 06, 2013 7:54 pm    Post subject: Reply with quote

BrowseForFolder_function.js
Added optional argument: dialog box title.
Fixed minor bugs.
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5368

PostPosted: Sat Apr 06, 2013 9:58 pm    Post subject: Reply with quote

KDJ wrote:
BrowseForFolder_function.js
Quote:
oSys.Call("Ole32::CoTaskMemFree, lpIDL");
Back to top
View user's profile Send private message Send e-mail
Andrey_A_A



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

PostPosted: Sun Apr 07, 2013 5:56 am    Post subject: Reply with quote

KDJ в скрипте Translator.js появилась кнопка "Прослушать"
но по нажатию на неё создаётся файл Translator.mp3, кнопка мигает и воспроизведения нет. Так и должно быть?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Sun Apr 07, 2013 2:30 pm    Post subject: Reply with quote

Instructor wrote:
KDJ wrote:
BrowseForFolder_function.js
Quote:
oSys.Call("Ole32::CoTaskMemFree, lpIDL");

To find it, you must have eyesight like a falcon.
Thank you very much, fixed.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Sun Apr 07, 2013 3:44 pm    Post subject: Reply with quote

Andrey_A_A wrote:
KDJ в скрипте Translator.js появилась кнопка "Прослушать"
но по нажатию на неё создаётся файл Translator.mp3, кнопка мигает и воспроизведения нет. Так и должно быть?

Try new version: Translator.js
I have added error handling when playing mp3 file.
Give me the error number.
Back to top
View user's profile Send private message
Andrey_A_A



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

PostPosted: Sun Apr 07, 2013 4:39 pm    Post subject: Reply with quote

KDJ , в новой версии Translator.js выдаёт ошибку:

263: Указанное устройство не открыто или не опознается интерфейсом MCI.

Система Vista
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Sun Apr 07, 2013 6:28 pm    Post subject: Reply with quote

Translator.js
Fixed: doesn't work option "Listen" if the path to AkelPad contains spaces.

Andrey_A_A
Try now.
Back to top
View user's profile Send private message
Andrey_A_A



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

PostPosted: Sun Apr 07, 2013 6:33 pm    Post subject: Reply with quote

KDJ, спасибо заработало!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Sun Apr 07, 2013 7:42 pm    Post subject: Reply with quote

ChooseFont_function.js
EnumerateWindows_functions.js
FileAndStream_functions.js
Changed: all sub functions that were global, was converted into private functions.
Back to top
View user's profile Send private message
Drugmix



Joined: 08 Apr 2013
Posts: 426

PostPosted: Thu Apr 11, 2013 1:45 pm    Post subject: Reply with quote

Could someone, please, edit an existing script DuplicateLines.js a bit?
The thing is that it has 2 issues I don't like:
1. if you select multiple lines and duplicate them - they get duplicated like this:
Code:
a
b

->
Code:
a
a
b
b

instead of desired
Code:
a
b
a
b


2. after execution of this script - the selection gets modified: the duplicated lines become selected too. Instead, I'd like to keep the initial selection.

Не мог бы, кто-нибудь, пожалуйста слегка переделать существующий скрипт DuplicateLines.js?
В нём есть 2 вещи, которые мне не нравятся:
1. если выделить несколько строк и их дублировать, то они дублируются так:
Code:
a
b

->
Code:
a
a
b
b

вместо ожидаемого
Code:
a
b
a
b


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


Last edited by Drugmix on Thu Apr 11, 2013 4:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Thu Apr 11, 2013 2:13 pm    Post subject: Reply with quote

Drugmix
Try script: LinesSelectCopyMoveDuplicate.js
Back to top
View user's profile Send private message
Drugmix



Joined: 08 Apr 2013
Posts: 426

PostPosted: Thu Apr 11, 2013 4:14 pm    Post subject: Reply with quote

KDJ
I had tried your script earlier, but I failed at writing a valid call. Now it's fine, thanks a lot!
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Sun Apr 14, 2013 4:35 pm    Post subject: Reply with quote

InputBox_function.js
Changed:
- abolished the limit on text length for labels and edit boxes
- argument oFunction can be passed as function name without the quotes,
- argument vFuncArg can be any type,
- script file can be saved in ANSI code,
- new examples in InputBox.js.
Added arguments:
- minimum edit box width,
- bottom labels,
- left labels,
- right labels.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1361
Location: Poland

PostPosted: Tue Apr 16, 2013 5:56 pm    Post subject: Reply with quote

InputBox_function.js
Small correction in the position of the dialog box.
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 ... 71, 72, 73 ... 94, 95, 96  Next
Page 72 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