Kodi Community Forum

Full Version: First addon to a page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pop up message and/or video right when kodi starts

Right when kodi starts(after the loading screen) I want a message to pop up, or even a video. where would I write the code for that? I was thinking in the skin folder but I don't think that's correct.

Thank you for the help!

Btw. I'm posting this in 2 forums because I don't know which is the correct one.
Pop up message and/or video right when kodi starts

Right when kodi starts(after the loading screen) I want a message to pop up, or even a video. where would I write the code for that? I was thinking in the skin folder but I don't think that's correct.

Thank you for the help!

Btw. I'm posting this in 2 forums because I don't know which is the correct one.
Here is an addon that posts a message when Kodi starts:

https://github.com/KODeKarnage/service.startup.message

It reads a file, and posts that to an ok dialog.

You would want to change the location stored in the service.py file from "/home/osmc/ttmessage.txt" to wherever you want to store the file.

Or you could just delete lines 25 to 43 and enter this instead:

Code:
ok = DIALOG.ok("Your heading",your_message_line1, your_message_line2)

Of course, if you want to write an addon yourself, there is this tutorial: http://kodi.wiki/view/How-to:Write_plugins_for_XBMC

And this is a repo with the general structure of an addon: https://github.com/KODeKarnage/script.skeleton

This is the appropriate forum for questions about writing addons: http://forum.kodi.tv/forumdisplay.php?fid=26
HI,

I am building a addon with 4 options. When I click on an option it does Something. So when you go to video addons and click on the addon, it takes you to a page with 4 options. Once a option is clicked then it downloads a file. I have the downloading part done. I just need help to create the page with the 4 icons and how where to write the code when each icon is clicked.


can anyone point me in the right direction? Right now I only know how to make a popup box when a video addon is clicked..

thank you!
Well let's see... I wrote a detailed response to your other post where you asked how to display a message when Kodi starts.

In that response I provided you with an addon that did what you asked for, details on how to edit it to your specific need, an addon skeleton to help starting your own project, one link to the relevant tutorial on the wiki and another to this sub-forum.

No response from you there.

So you are on your own as far as I am concerned.
I didnt even know someone posted a reply on my other thread. Thanks a lot man. I'll check that out and hopefully it will help me on this one.
thnx
thanks for this. figured it out! great script!
I merged all those crossposts together.
Please go over to the forum rules (wiki) and don't crosspost like this again.