Message-ID: <15269321.01228398699275.JavaMail.root@wombat.diezmil.com>
Date: 2008-12-04T13:51:39Z
From: pieterprovoost at gmail.com
Subject: how to automatically maximize the graph window (under XP) ?
In-Reply-To: <18219242.post@talk.nabble.com>
Hi,
If you have Python running on your system you could create this script (graphics.py):
import win32api
import win32con
import win32gui
def windowEnumerationHandler(hwnd, windowlist):
windowlist.append((hwnd, win32gui.GetWindowText(hwnd)))
mywindows = []
win32gui.EnumWindows(windowEnumerationHandler, mywindows)
for hwnd, windowtext in mywindows:
if windowtext.startswith('R Graphics'):
win32gui.ShowWindow(hwnd, win32con.SW_MAXIMIZE)
Then adds this to your R code:
system("python graphics.py")
--
This message was sent on behalf of pieterprovoost at gmail.com at openSubscriber.com
http://www.opensubscriber.com/message/r-help at r-project.org/9516326.html