overwolf.games.launchers

Returns an object with launchers status related events and functions.

Methods

getRunningLaunchersInfo(callback)

Version added: 0.103.200

Returns an object with information about the currently running launchers.

  • Parameter: callback <function>

    Called with the currently running detected launchers.

Callback argument:
{  
      "launchers":[  
         {  
            "title":"League of Legends Launcher",
            "id":54271,
            "classId":5427,
            "isInFocus":false,
            "position":{  
               "top":252,
               "left":2066,
               "width":1280,
               "height":720
            },
            "handle":329882,
            "commandLine":"E:/Games/RADS/projects/league_client/releases/0.0.0.65/deploy/LeagueClientUx.exe "--release=0.0.0.35" "--remoting-auth-token=scIN957coAwcbo0WW78nzg" "--rads-product-directory=E:/Games/RADS/solutions/league_client_sln/releases/0.0.0.35/deploy/" "--respawn-command=LeagueClient.exe" "--respawn-display-name=League of Legends" "--app-port=57610" "--install-directory=E:/Games/" "--app-name=LeagueClient" "--ux-name=LeagueClientUx" "--ux-helper-name=LeagueClientUxHelper" "--log-dir=LeagueClient Logs" "--bugsplat-name=league_client_riotgames_com" "--bugsplat-platform-id=EUW1" "--project=LeagueClient" "--app-log-file-path=E:/Games/Logs/LeagueClient Logs/2017-04-20T11-12-28_9576_LeagueClient.log" "--app-pid=9576"",
            "processId":1468,
            "path":"E:/Games/RADS/projects/league_client/releases/0.0.0.65/deploy/LeagueClientUx.exe"
         }
      ]
   }

Events How to use events

onUpdated

Version added: 0.103.200

Fired when the launcher info is updated. Passes an ILauncherInfo object.

onLaunched

Version added: 0.103.200

Fired when a launcher was launched.

onTerminated

Version added: 0.103.200

Fired when a launcher is closed.

Types

ILauncherInfo

Properties

title

Returns the title of the represented launcher.

Type: string

id

Returns the instance id of the represented launcher.

Type: int

classId

Returns the class id of the represented launcher.

Type: int

isInFocus

Returns whether the launcher represented is currently in focus.

Type: bool

position

Returns the launcher’s window position.

Type: ODKRect

handle

Returns the launcher’s main window handle

Type: uint

commandLine

Returns the launcher’s process command-line.

Type: string

processId

Returns the¬†launcher’s process id.

Type: uint

path

Returns the process path of the represented launcher.

Type: string