phBot Plugins
  • Introduction
  • Example Plugins
  • phBot API
    • Client
    • Guild
    • Events
    • Players
    • Party
    • NPC
    • Character
    • Academy
    • Inventory
    • Pets
    • Monsters
    • Encoding
    • Locale
    • Config
    • Botting
    • Taxi
    • Packet Injection
    • Log
    • Game Data
    • Teleport
    • Training Area
    • Command Line Arguments
    • Movement
    • Quests
    • Drops
    • Paths
    • Script
    • Notifications
    • Alchemy
    • Misc
  • Chat API
  • Handling Script Commands
  • GUI API
Powered by GitBook
On this page
  1. phBot API

Client

get_client()

This function returns information about the game client.

Usage

get_client()

Returns

None or a dictionary about the game client.

window - Window handle of the client

pid - Process ID of the client

path - Path to the client

running - State of the client. The process state is checked each time this function is called.

{
	'window': 859850,
	'pid': 18420,
	'path': 'C:/Users/...',
	'running': True
}
{
	'window': 0,
	'pid': 0,
	'path': '',
	'running': False
}
PreviousphBot APINextGuild

Last updated 2 years ago