original_docstring: TestConnection sends a small script to Launchcontrol.
docstring: TestConnection sends a small script to Launchcontrol.
docstring_tokens: TestConnection sends a small script to Launchcontrol .
code: def TestConnection():
      """TestConnection sends a small script to Launchcontrol."""
      progressDialog = xbmcgui.DialogProgress()
      progressDialog.create("Launchcontrol", "Testing connection...")
      try:
          l = launchcontrol.Client(
                  url=__addon__.getSetting("address"),
                  positionmin=__addon__.getSetting("positionmin"),
                  positionmax=__addon__.getSetting("positionmax"),
                  speedmin=__addon__.getSetting("speedmin"),
                  speedmax=__addon__.getSetting("speedmax"))
          l.Play("{0.50:4,1.00:0,2.50:4,3.00:0}", "text/prs.kiiroo")
      except Exception as e:
          progressDialog.close()
          xbmcgui.Dialog().ok("Launchcontrol connection test" , "Failed:", e.message)
      else:
          progressDialog.close()
          xbmcgui.Dialog().ok("Launchcontrol connection test" , "Success")
code_tokens: def TestConnection ( ) : progressDialog = xbmcgui . DialogProgress ( ) progressDialog . create ( "Launchcontrol" , "Testing connection..." ) try : l = launchcontrol . Client ( url = __addon__ . getSetting ( "address" ) , positionmin = __addon__ . getSetting ( "positionmin" ) , positionmax = __addon__ . getSetting ( "positionmax" ) , speedmin = __addon__ . getSetting ( "speedmin" ) , speedmax = __addon__ . getSetting ( "speedmax" ) ) l . Play ( "{0.50:4,1.00:0,2.50:4,3.00:0}" , "text/prs.kiiroo" ) except Exception as e : progressDialog . close ( ) xbmcgui . Dialog ( ) . ok ( "Launchcontrol connection test" , "Failed:" , e . message ) else : progressDialog . close ( ) xbmcgui . Dialog ( ) . ok ( "Launchcontrol connection test" , "Success" )
short_docstring: TestConnection sends a small script to Launchcontrol.
short_docstring_tokens: TestConnection sends a small script to Launchcontrol .
comment: """TestConnection sends a small script to Launchcontrol."""