Skip to content
disfated edited this page Apr 16, 2011 · 1 revision

Here sits all platform-specific stuff not being directly related to the bot logic.

Common

Supported platforms:

  • Windows - supported (requires: pywin32);

  • Unix - supported (requires: wnck, gtk);

  • Mac - not supported (requires: );

Examples

from libs import client

client.activate()
client.activate("Chrooooome")
client.error("There's no more food left...")
client.fatal("Game over", 666)
client.debug("Elvis has entered the building")
client.activate().zoomout().debug("Action!!!")

API

  • client.activate([window_title = "Die Siedler Online"])
    Tries to find game window, activate it and recognize flash-plugin dimensions.
    Returns self.

  • client.error(message)
    Standart error message.
    Returns self.

  • client.fatal(message, [code = 1])
    Standart fatal error message. Terminates execution with exit code.

  • client.debug(message)
    Standart debug message.
    Returns self.

  • client.zoomout()
    Zoom the fuck out!
    Returns self.