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 ... 35, 36, 37 ... 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
Infocatcher



Joined: 06 Aug 2007
Posts: 1562

PostPosted: Sun May 27, 2012 2:49 pm    Post subject: Reply with quote

jsBeautifier.js
Updated:
Some support for actionscript's import foo.*
Fix for "preserve whitespace" in comments
Minor improvement for actionscript
Make myobfuscate.com scripts work
javascriptobfuscator: decode \x09 to tabs
myobfuscate detection was too greedy
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Sun May 27, 2012 3:04 pm    Post subject: Reply with quote

InputBox_function.js
Changed: now dialog box is centered in owner (parent) window.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Sun May 27, 2012 5:10 pm    Post subject: Reply with quote

FileAndStream.js
Added:
- internal associations of files (Main menu->File and context menu->Open).
Changed:
- language strings moved from script to file FileAndStream_1033.lng,
- language files,
- Shift+Enter -> Ctrl+Shift+Enter (run AkelPad script with arguments),
- Shift+Enter - now opens file with internal association.
Required new version InputBox_function.js.
Back to top
View user's profile Send private message
VladSh



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

PostPosted: Mon May 28, 2012 8:23 am    Post subject: Reply with quote

KDJ
Still think it's unnecessary.
Back to top
View user's profile Send private message Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Mon May 28, 2012 7:53 pm    Post subject: Reply with quote

Updated: FileAndStream_2052.lng by cnnnc.
Back to top
View user's profile Send private message
Visitor7



Joined: 03 Jun 2012
Posts: 88

PostPosted: Sun Jun 03, 2012 8:23 am    Post subject: Reply with quote

Привык за много лет к MS_Sans_Serif.fon 7-го размера, но с псевдографикой у него беда. Хотелось бы переключаться горячей клавишей или из меню на CourierNew.ttf 8-го размера и обратно. Как реализовать функцию переключения в определенный шрифт и функцию цикличного переключения между несколькими любимыми?

Моих познаний хватает только для такого:
Назначить на Alt-1: Call("Scripts::Main", 1, "cur.js")
cur.js: AkelPad.Font("Courier New", 0, 8 );

Назначить на Alt-2: Call("Scripts::Main", 1, "ser.js")
ser.js: AkelPad.Font("MS Sans Serif", 0, 7);
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Sun Jun 03, 2012 10:34 am    Post subject: Reply with quote

Visitor7
This can be done without a script.

In Hotkeys plugin:
Name: MS Sans Serif
Command: Font("MS Sans Serif", 0, 8)
Hotkey: Alt+2

On ToolBar:
"MS Sans Serif" Font("MS Sans Serif", 0, 8) Icon("%a\AkelFiles\Plugs\ToolBar.dll", 27)
Back to top
View user's profile Send private message
Visitor7



Joined: 03 Jun 2012
Posts: 88

PostPosted: Sun Jun 03, 2012 11:05 am    Post subject: Reply with quote

KDJ wrote:
Спасибо за поправку. Читаю вниметельней Hotkeys Help.

А как реализовать на JS циклическое переключение с подобной логикой:

если $i не определен $i=1;
выбор $ch {
для $i=1 $ch="'Courier New', 0, 8";
для $i=2 $ch="'MS Sans Serif', 0, 7";
для $i=3 $ch="'Courier New', 0, 7";
}
$i++;
если $i>3 $i=1;
AkelPad.Font($ch);

И возможно ли сохранить переменную выйдя из скрипта?
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5167

PostPosted: Sun Jun 03, 2012 11:34 am    Post subject: Reply with quote

Visitor7
FontSwitch.js
Back to top
View user's profile Send private message Send e-mail
Visitor7



Joined: 03 Jun 2012
Posts: 88

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

Instructor
Здорво, спасибо. Один и тот же шрифт с разным размером туда не вклинишь, но разные замечательно перебирает.
var lpFontList={"MS Sans Serif" : ["Courier New", 8],
"Courier New" : ["Tahoma", 8],
"Tahoma" : ["MS Sans Serif", 7]
};
Буду ctrl num+/- пользоваться.
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5167

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

Visitor7
Там уже версия 1.1.
Back to top
View user's profile Send private message Send e-mail
Visitor7



Joined: 03 Jun 2012
Posts: 88

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

Instructor
1.1 у меня не работает. AkelPad 4.7.5(x86) winXP
Ошибок нет, просто ничего не происходит. Блин, я первую версию потерял!)))
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5167

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

Visitor7
Чтобы текущий шрифт менялся, он должен присутствовать в списке (имя и размер).
Back to top
View user's profile Send private message Send e-mail
Visitor7



Joined: 03 Jun 2012
Posts: 88

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

Inspector
Да, я уже догадался поставить Courier New 10 и всё полетело. А инициализация какая-нить сложно делается? Типа если текущего нет в списке, то поставить первый...
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5167

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

Visitor7
Разместил под 1.2.
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 ... 35, 36, 37 ... 94, 95, 96  Next
Page 36 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