-
Notifications
You must be signed in to change notification settings - Fork 1
libs.client
disfated edited this page Apr 16, 2011
·
1 revision
Here sits all platform-specific stuff not being directly related to the bot logic.
-
Windows - supported (requires:
pywin32
); -
Unix - supported (requires:
wnck
,gtk
); -
Mac - not supported (requires: );
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!!!")
-
client.activate([window_title = "Die Siedler Online"])
Tries to find game window, activate it and recognize flash-plugin dimensions.
Returnsself
. -
client.error(message)
Standart error message.
Returnsself
. -
client.fatal(message, [code = 1])
Standart fatal error message. Terminates execution with exitcode
. -
client.debug(message)
Standart debug message.
Returnsself
. -
client.zoomout()
Zoom the fuck out!
Returnsself
.