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.

Newcomers DBPro Corner / Command Line Switches - MyGame.exe -w1920 h1080 -Skipintro

Author
Message
Burning Feet Man
16
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 20th Feb 2011 01:54
Most games that I've played use command line switches to set up some key parameters prior to launching the game.

Can command line switches be used with DarkBASIC Pro executables? I've done a search on these forums but didn't find to much information about this technique.

Cheers in advance for any guidance,
BFM

Help build an online DarkBASIC Professional help archive.

http://dbprohelp.wikia.com/wiki/DarkBASIC_Professional_Help_Wiki
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 20th Feb 2011 04:14
You use the CL$ command. All it does is keep one string that you cut up yourself to get individual commands you want for your program.

Burning Feet Man
16
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 20th Feb 2011 09:58 Edited at: 20th Feb 2011 10:14
Thanks heaps Grog!

As always, the answer was right in front of me. Cheers for the heads up.

Quote: "CL$
This command will return the string passed in as a command line when the program is run as a standalone executable."


EDIT: I'll post up a function when I've finished writing one.

Help build an online DarkBASIC Professional help archive.

http://dbprohelp.wikia.com/wiki/DarkBASIC_Professional_Help_Wiki

Login to post a reply

Server time is: 2024-11-23 02:46:49
Your offset time is: 2024-11-23 02:46:49