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 / CL$() Shortcut command Line

Author
Message
DarkSin
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: Under your bed
Posted: 20th Aug 2004 15:35
You can see the code base version here : http://www.thegamecreators.com/?m=codebase_view_code&i=f7b2caa666b473bb331082f388f97f9b

You have to use a shortcut pointing towards your exe but I find it pretty handy. *Note: No External Media Required*
Quote: "`++++++++++++++++++++++++++++++++++
`+ Example Code by: +
`+ DarkSin +
`+ webmaster@redgaming.net +
`+ URHERE.redgaming.net +
`++++++++++++++++++++++++++++++++++

`Set Window Size
if cl$() = str$(-1)
set window on
set display mode 800,600,32
endif

if cl$() = str$(-2)
set window on
set display mode 1024,768,32
endif

if cl$() = str$(-3)
set window off
set display mode 800,600,32
endif

if cl$() = str$(-4)
set window off
set display mode 1024,768,32
endif

`Set Window Text
if cl$() = str$(-1)
set window title "Window: On, Width: 800, Height: 600, Depth: 32"
endif

if cl$() = str$(-2)
set window title "Window: On, Width: 1024, Height: 768, Depth: 32"
endif

if cl$() = str$(-3)
set window title "Window: Off, Width: 800, Height: 600, Depth: 32"
endif

if cl$() = str$(-4)
set window title "Window: Off, Width: 1024, Height: 768, Depth: 32"
endif

`Set Print Text
if cl$() = str$(-1)
print "Window Mode On"
print "Screen Width: 800"
print "Screen Height: 600"
print "Screen Depth: 32"
endif

if cl$() = str$(-2)
print "Window Mode On"
print "Screen Width: 1024"
print "Screen Height: 768"
print "Screen Depth: 32"
endif

if cl$() = str$(-3)
print "Window Mode Off"
print "Screen Width: 800"
print "Screen Height: 600"
print "Screen Depth: 32"
endif

if cl$() = str$(-4)
print "Window Mode Off"
print "Screen Width: 1024"
print "Screen Height: 768"
print "Screen Depth: 32"
endif

wait mouse"


If you have any questions or comments about this code, dont hesitate to contact me by email.


Login to post a reply

Server time is: 2024-11-23 19:44:12
Your offset time is: 2024-11-23 19:44:12