RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Read current game title in Python?

    Scheduled Pinned Locked Moved General Discussion and Gaming
    oled displaypython
    3 Posts 3 Posters 382 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      smartroad
      last edited by

      Hi all,

      I have been making a case and have a small OLED attached (I2C style). At the moment I have it showing basic stats (CPU usage etc). What I'd like to do is show the title of the game/app running. Is there an easy way to find that information? I did find a post and GitHub which had something but it didnt work for me, it seemed to be pulling the info from a log file?

      Reasonable beginner with Python!

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Use the scripting support in EmulationStation and call a script when a game is started, you'll get the game name as one of the parametes and you don't need to parse anything - see more details here.

        S 1 Reply Last reply Reply Quote 1
        • S
          smartroad @mitu
          last edited by

          @mitu Got it all working, took a little time to figure out it was calling bash scripts lol got it going now :)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.