Kodi Community Forum

Full Version: sending click to context menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Would/should it be possible to send a click to the context menu from a dialog?

I'm trying to make a button in the favourites dialog send a click, like renaming a favourite, essentially bypassing opening the context menu.

I looked up the ID's in GUIDialogContextMenu.h, for example

<onclick>SendClick(contextmenu,2)</onclick>

but no dice unfortunately.
First button in context menu will be 1001 (don't know if it will work for You)
pieh Wrote:First button in context menu will be 1001 (don't know if it will work for You)

Would that be the order in the actual context menu entries that appear in the favourites dialog or the order in GUIDialog.h ?

I tried both, and some other ID's but unfortunately it doesn't work for me.
First button in the contextmenu is always 1001, followed by 1002 etc... I don't think sendclick will work if the window is not open. If you do it in the contextmenu, it's working.
If you move away from the selected item to your button then the context menu will behave differently or not all.