After some help from @Karnage I managed to access MyOSMC modules separately.
I created menu items with these modules, so I could access some of them directly (which is faster, instead of going through MyOSMC app).
I’m currently using OSMC 2016.02-3 on my Raspberry Pi 2, but this should work with older and newer versions too.
Of course it goes without saying that if MyOSMC app gets changed (as it’s going to be at some point) this tutorial probably won’t work!
For creating a menu/submenu item you need a skin which works with skin shortcuts addon.
Modules are numbered like this:
Osmcsetting.pi - 0
PiOverclock - 1
Updates - 2
Networking - 3
Logging - 4
Appstore - 5
Services - 6
Remotes - 7
These numbers are to be used while creating labels and custom commands for menu items.
Follow the codes below exactly and you’ll get access to MyOSMC modules with names from MyOSMC app.
Label should be:
$INFO[Window.Property(MyOSMC.Module.X.name)]
X is one of the numbers from the above list.
Action should be:
RunScript($INFO[Window.Property(MyOSMC.Module.Script)], $INFO[Window.Property(MyOSMC.Module.X.id)])
X is one of the numbers from the above list.
If you have any questions go ahead and ask, I’ll do my best to help you out.