View Single Post
Old 04-14-2025, 10:06 AM   #5
beecom
Enthusiast
beecom can extract oil from cheesebeecom can extract oil from cheesebeecom can extract oil from cheesebeecom can extract oil from cheesebeecom can extract oil from cheesebeecom can extract oil from cheesebeecom can extract oil from cheesebeecom can extract oil from cheese
 
Posts: 40
Karma: 1000
Join Date: Jun 2022
Device: Kindle Oasis
Quote:
Originally Posted by jonnyl View Post
KOReader ships with the hello.koplugin test-plugin in the plugins/ folder. You can use that as a template to make your own. Remove the first clode block in main.lua to activate it (you may then also need to check the box to activate it in the plugin-settings) and see how it works.

To create your own, copy the hello.koplugin folder to plugins/myscript.koplugin (or whatever), and rename the script's name and menu entry in the code. Of course also add your own code to execute on pressing the new menu entry.
I think I’ve figured out how to run my code in KOReader. Thank you for your help, jonnyl.
I managed to get hello.koplugin to show up in the menu list, but I couldn't get my code to appear on the list despite trying several times.
beecom is offline   Reply With Quote