1)You should create a shorcut of your application folder to Desktop, it will save my time a lot.
2)You should not use random id numbers for your control objects.
3)Never trust registry.xml file because everyone can manupilate its data.
4)You should write comments to your controls.This will help to recognize objects without opening it.
5)In order to save your file registry.xml:
mc.GetApp().GetLocalConfig().SetValue('lastplayed', label)
6)To change visibility of a control:
mc.GetActiveWindow().GetControl(1008).SetVisible(True)
The parameter must start with capital letter. (True, False)
7)Change bool value of control to true:
xbmc.executebuiltin('App.SetBool(1006,true)')
But the reverse is not correct. You should use reset to change bool to false:
xbmc.executebuiltin( 'App.Reset(1006)' )
I created resetAll() function in order not to implement same code repeatedly.
8)Get visibility information:
if mc.GetActiveWindow().GetControl(1000).IsVisible():
8)Set focus to a control:
mc.GetActiveWindow()..GetControl(2989).SetFocus()
9)Connect XML link with a list
mc.GetActiveWindow().GetList(3001).SetContentURL(strChannelMostWatched)
10)Add parameters to string:
strChannelPrograms = 'http://testm.kure.tv/user/XmlFeed.aspx?command=getChannelPrograms&par1=%s&kalite=%s'%(kanalnum,kalite)