Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / SCRENSHOT FOR DBPRO

Author
Message
PePO
20
Years of Service
User Offline
Joined: 24th Jul 2003
Location: Argentina - Salta
Posted: 22nd Sep 2003 05:31
HERE IS A SIMPLE FUNCTION FOR SCREENSHOT IN DBPRO
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
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:

My cats breath smells of cat food.
Shady 2005 Simpson
20
Years of Service
User Offline
Joined: 26th Aug 2003
Location: Newcastle, England
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.
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 23rd Sep 2003 01: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.



A book? I hate book. Book is stupid.
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
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

My cats breath smells of cat food.
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
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.

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX

Login to post a reply

Server time is: 2024-03-29 09:03:26
Your offset time is: 2024-03-29 09:03:26