Jim Nagel <netsurf(a)abbeypress.co.uk> wrote:
can anybody suggest a trick whereby i could make a Netsurf window
at a certain size and position on screen, to display a local file?
If NS itself can't do that, you should be able to manage it by putting the
command to have NS display the page in an Obeyfile, followed perhaps by a
short delay, followed by a command to move and size the window as required.
The latter part can be done with WO_MoveWind commands, eg:
*WO_MoveWind "AntiSpJN" "AntiSpJN Summary" 222 720 1254 1164
(where the parameters are app-name, window-title, and the x0 y0 [x1 y1]
coordinates of the lower left [and optionally also upper right] corner of
implemented by Druck's 'WindOpen' module (from the Armclub website).
In the past I've run Obey files which issued a different WO_... command, to
produce a list of the appname/title/position of all currently displayed
windows, and wrote it to a file on the RAM disk. The obey file then
contained a WaitUntil (by Vince Hudd, IIRC) command to wait for the list
file to get written to, then ran another program which read the file. It
pattern-matched the appname/title parts of the currently displayed windows
and for those that matched certain criteria issued WO_MoveWind commands for
them quoting the precise appname/title combinations of those windows.
Jeremy C B Nicoll - my opinions are my own.