2011-03-15 14:33:39 -06:00
|
|
|
import sys
|
|
|
|
from pydfhack import ContextManager
|
|
|
|
|
|
|
|
df_cm = ContextManager("Memory.xml")
|
|
|
|
df = df_cm.get_single_context()
|
|
|
|
|
|
|
|
if not df.attach():
|
|
|
|
print "Unable to attach!"
|
|
|
|
print "Press any key to continue"
|
|
|
|
|
|
|
|
raw_input()
|
|
|
|
sys.exit(1)
|
|
|
|
|
2011-03-18 04:38:37 -06:00
|
|
|
gui = df.gui
|
2011-03-15 14:33:39 -06:00
|
|
|
|
2011-03-18 04:38:37 -06:00
|
|
|
print "view coords: %s" % (gui.view_coords,)
|
|
|
|
print "cursor coords: %s" % (gui.cursor_coords,)
|
|
|
|
print "window size: %s" % (gui.window_size,)
|
2011-03-15 14:33:39 -06:00
|
|
|
|
|
|
|
if not df.detach():
|
|
|
|
print "Unable to detach!"
|
|
|
|
|
|
|
|
print "Done. Press any key to continue"
|
|
|
|
raw_input()
|