Writing a new-menu popup.
#1
Question 
Good day everybody.

I am realy very new to xbmc and need some help.

What I would like to do is:
1. pop a window up. (I have a small idea how to add a new button...)
2. fill in some info and then write the answers out to a file.

Can anybody give me some help?

Thank you kindly
cyber7 (aka AubreyX)
Reply
#2
if the goal is to write some data to a file, you will have to create a script.
this can't be done by simple skinning.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thanx Ronie.

I have written (a UNIX) script that does everything I want to do, but I need to get the information from USER INPUT. Thus:

what I would like to do is in a SCREEN:
+-----------------------+
| ITEM 1: <USER INPUT> |
| ITEM 2: <USER INPUT> |
| ITEM 3: <USER INPUT> |
| ITEM 4: <USER INPUT> |
| ITEM 5: <USER INPUT> |
| ITEM 6: <USER INPUT> |
+-----------------------+

then write to a file the strings that the <USER INPUT> generate. I will then, from my script I will manipulate the file...

I hope you can help

Kind regards
cyber7 (aka AubreyX)
Reply
#4
afaik parsing data to a file can only be done with a python script in xbmc.
you might want to check here: http://forum.xbmc.org/forumdisplay.php?fid=26
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
Hi Ronie,
Thankx for the reply, I have the entire .PY scripts ready, could you give me a pointer to how to incorporate it into a screen?

Cheers and thanx again!
Reply
#6
sure, just add a button to launch the script:

Code:
<control type="button" id="501">
    <posx>250</posx>
    <posy>0</posy>
    <width>40</width>
    <height>40</height>
    <label>-</label>
    <font>-</font>
    <texturenofocus>image-nofocus.png</texturenofocus>
    <texturefocus>image-focus.png</texturefocus>
    <onclick>RunScript(special://home/scripts/Your_Script/default.py)</onclick>
    <onleft>500</onleft>
    <onright>502</onright>
    <onup>501</onup>
    <ondown>501</ondown>
</control>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
Ronie
YOU ARE DA BOMB!!!

kudos to you!!!

Thanx mate Smile
cyber7 (aka AubreyX)
from Cape Town, South Africa
Reply

Logout Mark Read Team Forum Stats Members Help
Writing a new-menu popup.0