[Request] KeyBar.dll
- Author
- Message
-
Offline
- Posts: 1161
- Joined: Sun Oct 20, 2013 11:44 am
Soso
See plugin ContextMenu & ContextMenu-Eng.txt:
You can use Insert() with menu, toolbar or hotkey.
(you should to find or draw own icons for toolbar).
Or if you know hex-code: InsertUnicodeChar.js
See plugin ContextMenu & ContextMenu-Eng.txt:
Code: Select all
Insert("text"[, Esc-sequences])
"text"
Inserted text.
Esc-sequences:
0 "text" isn't contain Esc-sequences (default).
1 "text" contain Esc-sequences. A set of sequences similar to the find/replace dialog in the program, and also:
"\s" - replaced by the selected text of the editing window;
"\|" - set the caret position after text insertion.
Insert("Some string")
method replaces selection with the specified text.
Insert("<B>\s</B>", 1)
method enclose selection.
Insert("\[0031 0032 0033]", 1)
method replaces selection with "123"
(you should to find or draw own icons for toolbar).
Or if you know hex-code: InsertUnicodeChar.js
-
Offline
- Posts: 2247
- Joined: Tue Aug 07, 2007 2:03 pm
- Location: Vinnitsa, Ukraine
Skif_off
Ты не понял. Человек хочет чтобы эти кнопки автоматически туда добавлялись по мере необходимости. Выделил он символ какой, нажал магическую комбинацию клавиш - этот символ тут же появился на тулбаре.
Я не знаю, вроде не существует АПИ тулбара для модификации тулбаров, но это меньшая проблема. Большая: на ходу генерировать картинки с символом для отображения иконки.
Ты не понял. Человек хочет чтобы эти кнопки автоматически туда добавлялись по мере необходимости. Выделил он символ какой, нажал магическую комбинацию клавиш - этот символ тут же появился на тулбаре.
Я не знаю, вроде не существует АПИ тулбара для модификации тулбаров, но это меньшая проблема. Большая: на ходу генерировать картинки с символом для отображения иконки.
-
Offline
- Posts: 8
- Joined: Sun Oct 18, 2015 10:50 am
Idea is:
some simple way to insert "exotic" (we don't have them on the physical keyboard) characters in text.
The only way that I know so far (except external applications) is InsertUnicodeChar.js by @Skif_off, but it isn't so convenient and easy.
Maybe there's some other script that can make (with editing script or *.INI) something like this?
some simple way to insert "exotic" (we don't have them on the physical keyboard) characters in text.
The only way that I know so far (except external applications) is InsertUnicodeChar.js by @Skif_off, but it isn't so convenient and easy.
Maybe there's some other script that can make (with editing script or *.INI) something like this?
-
Offline
- Posts: 1161
- Joined: Sun Oct 20, 2013 11:44 am
FeyFre
Хм, возможно, не так. С панелью инструментов - вряд ли, но вроде скриптом можно добавлять пункт меню, где-то шла речь, тогда можно делать как на последнем скриншоте Soso или в моих примерах - меню без иконок. Подождём KDJ, Instructor или VladSh, не помню, кто обсуждал.
Мне удобнее сразу собрать часто используемые в меню и добавлять, если необходимо.
Хм, возможно, не так. С панелью инструментов - вряд ли, но вроде скриптом можно добавлять пункт меню, где-то шла речь, тогда можно делать как на последнем скриншоте Soso или в моих примерах - меню без иконок. Подождём KDJ, Instructor или VladSh, не помню, кто обсуждал.
Мне удобнее сразу собрать часто используемые в меню и добавлять, если необходимо.
-
Offline
- Posts: 8
- Joined: Sun Oct 18, 2015 10:50 am
^
It is possible to make copy of original ToolBar.dll, rename it and put it back in Plugs folder.
Thus could be turned on or off, regardless of the original dll.
This new "KeyBar" (ToolBar2.dll) could displays buttons as shown in the first post, with the corresponding functions, but that would mean drawing a million of icons.
... so someone, who does not have appropriate keyboard, can insert russian or polish word Thank you for use in this forum, for example.
That can be a very simple script that would read INI file, displaying each line from the INI in the menu and from there insert into the text.
Idea about DLL in first post is too complicated, so what do you think about one simple script for AkelPad users?
:)
It is possible to make copy of original ToolBar.dll, rename it and put it back in Plugs folder.
Thus could be turned on or off, regardless of the original dll.
This new "KeyBar" (ToolBar2.dll) could displays buttons as shown in the first post, with the corresponding functions, but that would mean drawing a million of icons.
... and not only characters, but for example the entire words:Soso wrote: some simple way to insert "exotic" (we don't have them on the physical keyboard) characters in text.
... so someone, who does not have appropriate keyboard, can insert russian or polish word Thank you for use in this forum, for example.
That can be a very simple script that would read INI file, displaying each line from the INI in the menu and from there insert into the text.
Idea about DLL in first post is too complicated, so what do you think about one simple script for AkelPad users?
:)
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Soso
You were already directed by Skif_off to ContextMenu documentation. Simply write in menu code:Insert method also allows you insert characters by its unicode hex values.
You were already directed by Skif_off to ContextMenu documentation. Simply write in menu code:
Code: Select all
"Спасибо" Insert("Спасибо")
"Dziękuję" Insert("Dziękuję")