AZJIO plugins (PureBasic)

Discuss and announce AkelPad plugins
Post Reply
  • Author
  • Message
Offline
Posts: 330
Joined: Mon Jun 03, 2019 2:33 am

AZJIO plugins (PureBasic)

Post by AZJIO »

Плаг Highlight, скачать яндекс, upload.ee
Плаг ConvKey, скачать яндекс, upload.ee
Плаг Help, скачать яндекс, upload.ee
Last edited by AZJIO on Sun Jun 21, 2020 3:24 pm, edited 8 times in total.

Offline
Posts: 330
Joined: Mon Jun 03, 2019 2:33 am

Post by AZJIO »

Плаг ConvKey
Скачать яндекс, upload.ee

Code: Select all

"Исправить набор ConvKey" Call("ConvKey::ConvKey")
"Транслит ConvKey" Call("ConvKey::ConvKey", 2)
Преобразовывает текст из "привет" в "ghbdtn" и наоборот.

Обновил
Игнорирование пробела справа
режим 3 автопреобразование строки

планы:
можно сделать ini для поддержки конвертирования других языков
Last edited by AZJIO on Sat May 30, 2020 11:43 am, edited 3 times in total.

Offline
Posts: 61
Joined: Thu Feb 04, 2016 5:27 am

Post by c-sanchez »

Ummm interesting, but please make the plugins in English.
ie, I think if the languague in the system is not english will show by default in russian, right? I think is better if by default is english.

And instead of "readme.txt" in russian, make something like
"1Highlight-Eng.txt" and "1Highlight-Rus.txt"
"ConvKey-Eng.txt" and "ConvKey-Rus.txt"
Is better if we have the help/docs in English too :)
Also I think this is the way that is ordered the help of akelpad for all its plugins.

And to end I would like make a plugin request if not problem :P

Offline
Posts: 330
Joined: Mon Jun 03, 2019 2:33 am

Post by AZJIO »

c-sanchez wrote:ie, I think if the languague in the system is not english will show by default in russian, right? I think is better if by default is english.
English by default. Delete the file Highlight_Lang.ini
Is better if we have the help/docs in English too
If I translate into English, it will be like a Google translator.

I do not think that these 2 plugins have practical application. Instead of "ConvKey" it is better to use "TextCorrection". Instead of "Highlight" it is better to use the "Coder plugin", although there is a feature of color adjustment (See also "HighLight_HSB.js"). I want the ConvKey plugin to work on Linux.

Offline
Posts: 330
Joined: Mon Jun 03, 2019 2:33 am

Post by AZJIO »

Обновил плаг Help
Скачать яндекс

Ru-версия - добавлена функция для поиска в интернете. ini-файл для использования готовых ссылок с доменами, %s - в ссылках заменяется на текст слова под курсором. При вызове появляется окно с ListBox с выбором заготовленных в ini ссылок.


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

Кнопка вызова плага

Code: Select all

"Справка" Call("Help::Help") Icon("hh.exe", 0)
Суть плага связать справку с типом файла и найти выделенное слово. Если это будет pb-файл PureBasic, то будет поиск процедуры или ключевого слова в справке PureBasic, а если au3-файл AutoIt3, то поиск функции, макроса и т.д. в справке AutoIt3, аналогично js, html и т.д. Смотреть ini-файл, чтобы связать тип файла со справкой.

Обновление
Ru-версия - (x86) к стандартному флагу прибавить 10 (например 11), тогда активируется диалоговое окно "Найти" вызываемое по Ctrl+F вставляется слово и подсвечивается на странице.
Ru-версия - улучшение захвата, при курсоре на краях слова и на краях строки
Ru-версия - добавлен флаг -1 (временно) для активации поиска на вкладке "Поиск"
Ru-версия - захват слово включая русские буквы [а-яА-ЯёЁ]

Offline
Posts: 61
Joined: Thu Feb 04, 2016 5:27 am

Post by c-sanchez »

Hi AZJIO, could you make a plugin that allows you to use external tools easily?
This is as we can configure external tools in Programmer's Notepad
Image
As you can see, this allows you to configure everything very easily.
The name of the tool (to be executed) will appear in the "Tools" menu

Currently we can only configure external tools using the Log plugin, but this is a bit unpleasant to really configure.
I did a topic about this a long time ago.
http://akelpad.sourceforge.net/forum/vi ... highlight=

Offline
Posts: 330
Joined: Mon Jun 03, 2019 2:33 am

Post by AZJIO »

c-sanchez
I added a menu for bas-files
From line 227 to line 267, the Russian text must be replaced with English (Menu_by_type.js).
Compile GUI
Compile
Compile DLL
Code check
Get asm-code
Get c-code (does not work)
Jump to function
Help
Compiler version
On line 284 change the path (Menu_by_type.js):

Code: Select all

var sFreeBASICPath = "C:\\Program Files (x86)\\FreeBASIC\\";
Find these files:
\AkelPad\AkelFiles\Tools\Help\Help.ini
\AkelPad\AkelFiles\Plugs\Help\Help.ini
Add lines to it (possibly without " (x86)")

Code: Select all

[bas]
PathCHM="C:\Program Files (x86)\FreeBASIC\FB-manual-0.23.0.chm"
TitleCHM="FreeBASIC Manual"
There is another option
1. Create a menu using my program (SubMenuWin 7-10)
2. Add explorer menu to tab menu

Code: Select all

"Explorer menu"
{
  EXPLORER
}
3. Will need to manually create menu items. But with my program you can understand the logic of the menu.

Maybe in the future I will try to make a plugin using the same method as in the registry. But now I made a pop-up internet search menu and it looks imperfect.

Here is the registry, but the paths need to be fixed:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\basfile]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\basfile\DefaultIcon]
; @="assot.dll,33"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\basfile\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\basfile\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\basfile\shell\open\command]
@="\"C:\\Program Files (x86)\\AkelPad\\AkelPad.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\basfile\shell\OpenActions]
"MUIVerb"="Actions"
"SubCommands"="u.fbc0;u.fbc1;u.fbc2;u.fbc3;u.fbc4"
; "Icon"="C:\\Windows\\System32\\SubMenuWin7_10.ico"


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc0]
@="Compile GUI"
"Icon"="\"C:\\Program Files (x86)\\FreeBASIC\\uninstall.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc0\command]
@="\"C:\\Program Files (x86)\\FreeBASIC\\fbc.exe\" -exx -s gui \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc1]
@="Compile console"
"Icon"="\"C:\\Program Files (x86)\\FreeBASIC\\uninstall.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc1\command]
@="\"C:\\Program Files (x86)\\FreeBASIC\\fbc.exe\" -exx -s console \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc2]
@="Compile DLL"
"Icon"="\"C:\\Program Files (x86)\\FreeBASIC\\uninstall.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc2\command]
@="\"C:\\Program Files (x86)\\FreeBASIC\\fbc.exe\" -exx -dll \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc3]
@="Code check"
"Icon"="\"C:\\Program Files (x86)\\FreeBASIC\\uninstall.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc3\command]
@="\"C:\\Program Files (x86)\\FreeBASIC\\fbc.exe\" -exx \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc4]
@="Get asm-code"
"Icon"="\"C:\\Program Files (x86)\\FreeBASIC\\uninstall.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\u.fbc4\command]
@="\"C:\\Program Files (x86)\\FreeBASIC\\fbc.exe\" -r \"%1\""


Offline
Posts: 61
Joined: Thu Feb 04, 2016 5:27 am

Post by c-sanchez »

heh very nice options AZJIO, Thank you very much :D
Although I have a preference for plugins and avoid scripts as much as possible, your script seems like a pretty good option.

The SubMenuWin 7-10 looks interesting, however I don't about how works :P
And I also avoid saving entries in the windows registry as much as possible, using akelpad in portable mode.

I tried to add the reg file but it gives me an error
"reg.reg: The specified file is not a registry script"

I'm not sure what I'm doing wrong, maybe is something simple, sorry i am a bit asleep as i write this haha.

if you make a plugin in the future for this, please with nice ini files :P
This is one of the things I like about akelpad in fact, unlike most using XML, akelpad is configured with simple text files

Offline
Posts: 330
Joined: Mon Jun 03, 2019 2:33 am

Post by AZJIO »

I tried to add the reg file but it gives me an error
"reg.reg: The specified file is not a registry script"
The first line should be "Windows Registry Editor Version 5.00".
The last line must be empty.
Otherwise you will receive your message. But I stop trusting you as an advanced user, so I will not recommend using the reg file. The path should be correct and the *.bas file is linked to the basfile class.

I have a desire to make such a plugin, but there is no time and there are drawbacks that I cannot fix, for example, the list of commands should close when clicking past the list, but for me it closes with a cross in the window title.
please with nice
necessarily.
By the way, I wanted to try to make an ini file for a js script. There are examples, I think it's not difficult.
Although I have a preference for plugins and avoid scripts as much as possible
Imagine that you don't know the plug-in or the script. Will you ask what it is to then hate him or love him? If it does what you want, what difference does it make if it's a plugin or a script.
Post Reply