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.

DarkBASIC Discussion / new file access code

Author
Message
Soroki
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 21st Aug 2006 23:01
Can anyone post a code where you can call up avi that was just put into a directory. Like, say you already have some avi files. Then you want to call up more avi files, but they just got put into the directory folder, and you don't want to have to go and edit your code. Can anyone make this for me? I am a novice coder and have not enough exp to make something like this. I don't want it to be a pain for anyone, but it really is a necessity.

If we're here to help others, what exactly are the others here for?
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Aug 2006 05:01
Was the avi saved in another windows app? Then is your goal to call up that avi filename in DBC?

Or was the file saved within DBC and you want to call up that filename?

Are you saying you already have code in DBC to look at a directory, but the directory isn't refreshing when you add to it, and you want to be able to see the additional files?

Enjoy your day.
Soroki
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 22nd Aug 2006 21:02
Not exactly. Say there are about five avi files in one dierectory and I want to play each one of them with a 15 second delay in between. I then go and add more files. Instead of going to edit the code and having to make more exe files, I just want those added files to play automatically. The program, when launched, scans the directory for the avi files and plays all available avi. And to answer your other question, no I don't have a code already made. I am too much of a noob coder to make this a reality but I figured if someone didn't mind, they could make it for me. I need it desperatly, and you guys are the only ones that can really help.

If we're here to help others, what exactly are the others here for?
Soroki
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 23rd Aug 2006 20:27
Nevermind. My friend dropped the project, so there is no point in making this. If someone already started it, then go ahead and either finish or delete it. Sorry for the waste of time.

If we're here to help others, what exactly are the others here for?
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 24th Aug 2006 04:00
Take some time and read through the following tutorial so you may be able to help your friend if a similar project came up. When you're done, you should check out some of the other tutorials from one of the legendary DB programmers on the forum - TDK_Man

http://www.matedit.com/novice4.htm

There's also a lot of code and function downloads that can be very useful.

http://www.matedit.com/db.htm

Enjoy your day.
Soroki
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 24th Aug 2006 21:06
Thanks for the links! I might continue the project for my own personal gain, after all, I might need something like that someday.

If we're here to help others, what exactly are the others here for?
Ginga
18
Years of Service
User Offline
Joined: 3rd Jul 2006
Location: Dorset, England
Posted: 25th Aug 2006 02:26
@ Latch .. i use Matedit, but now i;ve nearly finished working on my own so that will b cool .. no where near as good tho And Soroki .. try using the 'Perform file Checklist' and then sorting the results into an array by only choosing ones that have 'avi' at the end .. i have code if u want it
Soroki
19
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 30th Aug 2006 20:42
That would be cool. I have been thinking about just making something sort of like that.

If we're here to help others, what exactly are the others here for?

Login to post a reply

Server time is: 2025-05-25 22:02:14
Your offset time is: 2025-05-25 22:02:14