Posted: 22nd Sep 2003 5:31
HERE IS A SIMPLE FUNCTION FOR SCREENSHOT IN DBPRO
Posted: 22nd Sep 2003 17:50
Nice and simple , I like it - you could swap the values for 0,0,screen width(),screen height() to simplify it even more - like:
Posted: 22nd Sep 2003 21:38
while you're on with screen height() and screen width() commands I was wondering if there was a command/function to find the maximum size your screen can go to.

For example:

set window title "Test"
set window size screen width(),screen height()

this creates a window at a size of 640,480 when I want a window to the full size of the screen.

does anyone know how to do this?

Thanx.

P.S. Sorry for stealing your post PePO, your function is as Van said, short but sweet.
Posted: 23rd Sep 2003 1:21
I think I'll add this feature to my matrix editor. Might tweak the code a litte, but I think it'll be very handy.(Probebly tweak it so that you'll have option on taking screenshot of just the world, or the whole screen(interface&world))

Nice work.

Posted: 23rd Sep 2003 11:04
Shady,
Look for the display mode available commands, I can't remember the syntax exactly, but it's something like DISPLAY MODE AVAILABLE(1024,768)=1, you'd have to check each resolution until you get to the top one. There is examples of displaying the available resolutions, I suggest you check there.


Van-B
Posted: 23rd Sep 2003 17:26
I like it, as a function man myself I will add it to my select group of functions that I keep close.