BBC BASIC for Windows
« *SCREENSAVE with variables »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:15pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: *SCREENSAVE with variables  (Read 814 times)
SCREENSAVE
Guest
xx *SCREENSAVE with variables
« Thread started on: Mar 9th, 2009, 5:04pm »

Can *SCREENSAVE be used with a variable detailing the filepath?

Elsewise...how can a user specify a filepath other than changing the source cod
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: *SCREENSAVE with variables
« Reply #1 on: Mar 9th, 2009, 5:20pm »

Quote:
Can *SCREENSAVE be used with a variable detailing the filepath?

You can use OSCLI, as listed in the manual:

Code:
      OSCLI "GSAVE """+file$+""" "+STR$xpos%+","+STR$ypos%+","+ \
      \                            STR$xsize%+","+STR$ysize% 

If only the filepath is variable, you can simplify this to:

Code:
      OSCLI "GSAVE """+file$+""" xpos,ypos,xsize,ysize" 

(*GSAVE is synonymous with *SCREENSAVE)

Richard.

User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls