Solved How to copy the textual content of a textbox to insert it in a variable
#1
I would like to be able to use the contents of a textbox which, however, its content is not given by an Infolabel, but by the python code that sends the text directly to the textbox with a precise index, in fact if this is removed it will no longer show anything.

I'm trying to ask if somehow it is possible to copy with a script or other, the text contained inside the textbox with a specific ID.


I'll explain:

The content of the textbox id="5" contained within the file: DialogTextViewer.xml is filled directly by the python code (I think so), I would like to be able to use this text to send it to a script, but I don't understand how I can do it.


Is there a way to copy/send text in a textbox, to a variable?



Thanks, any help is greatly appreciated šŸ™
If i helped you, you can thank me with a thumbs up šŸ‘ below, thanks šŸ™.
Kodi 20.x stableĀ release | Skin Confluence (by Jezz_X)
I like editing skins ā¤
Reply
#2
i think

pass the string from info label via
control.getlabel(5) should work.
otherwise i got no idea.
SkinsĀ |Ā Ā Titan M O DĀ  Ā ā€¢Ā  Ā S W A N (WIP)
AddonĀ |Ā Ā script.playlist.helper
Reply
#3
(2023-03-24, 15:19)mardukL Wrote: control.getlabel(5)
Exactly what I needed!!

I thank you infinitely!
(+1 for your help)


(@Klojum this thread can be marked as solved, hope to help other people)
If i helped you, you can thank me with a thumbs up šŸ‘ below, thanks šŸ™.
Kodi 20.x stableĀ release | Skin Confluence (by Jezz_X)
I like editing skins ā¤
Reply
#4
Thread marked solved.

EDIT:
Hmmm... 666 upvotes. Satan is here! Devil
Reply

Logout Mark Read Team Forum Stats Members Help
How to copy the textual content of a textbox to insert it in a variable0