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 / File scanner...

Author
Message
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 18th Jul 2008 21:27 Edited at: 22nd Jul 2008 00:06
Hey, this code is for a file explorer. It can handle several different file types from 3d models to music. However, people have been telling me that it runs differently on their computers than mine (no surprise there). My problem is that I haven't been able to copy their problems and then fix them. So, what I need are people who will try this out and give me some feedback. I would continue using the challenge thread, but I don't want to clutter it up a lot.

So, here are the controls:
Click a file to access it (folders will change the path, files will be opened).

Once a file is opened and displayed/played, to get out press any key with the exception of text files, in which you press enter.

You can use the arrow keys to scroll up and down but it can be a bit buggy do to the way it calculates which one you click on, there isn't much of a way around that that I can see. My recommendation is use the up and down arrows on the right side of the screen which will push everything up/down one row.

To go up one level, click the left arrow next to the address bar.

The "Quick Drives" (buttons at the top) allow you to quickly access the more common drives. If you have more, use the my computer button and choose them.

The "Quick Buttons" on the left all work except for control panel.

After viewing/accessing any file, press anykey to close it. The only exception to this is music/sounds. You can now choose a song to play in the background as you explore, so to stop it, just push backspace.

*NOTE: At the beginning of the program, it may request to use REDEDIT.EXE. This is just to read some data (strings telling the location of the desktop and my documents files) and there is absolutely NO writing of data, so don't be concerned.

So, here it is, it is completely self contained (graphics are generated in the code):


I REALLY need some people using older versions of windows. I have tested this on windows vista and a little on xp and 98, but more feedback is greatly appreciated.

Thanks for all your help

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 19th Jul 2008 00:17 Edited at: 19th Jul 2008 01:07
@BN2

Windows 98

The addition of the word Computer at the beginning of the key has caused a sever exception error at line 22. This seems to be new, it didn't happen before. Also, (i'm using dbc 1.20) the text size for the drive letters and stuff can be fixed by including the font at the very beginning of the:



subroutine. When I use 1.20, it is very strict on text sizing and fonts. In 1.13, it works without this addition. All in all, it doesn't hurt anything to include it and it should cover the bases on multiple computers.

Clicking on My Documents or Desktop I receive the error path does not exist.

Enjoy your day.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 20th Jul 2008 22:03 Edited at: 21st Jul 2008 09:16
Quote: "Clicking on My Documents or Desktop I receive the error path does not exist."


Yeah, those paths are taken from the registry. Since you get a severe exception when trying to read from the registry, you have to rem it out, thus losing those lines. I am going to try to fix it now.

[EDIT]
Ok, I think that I fixed it to work with windows 98, tested it out and it works fine. Let me know if it still give you trouble Latch and thanks for all the feedback! BTW, does the clicking work now? I know that it was giving you trouble, accessing the file next to the one you click, so I completely re-wrote a couple subroutines.

[EDIT 2] Added color changing options (click the options button, click the squares and press enter). Also you can now use background music (just click a music or sound file and it will loop). The music/sound will stop when you press backspace.

Should work with windows 9x and computers with a main drive other than C:



Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?

Login to post a reply

Server time is: 2025-06-07 06:36:26
Your offset time is: 2025-06-07 06:36:26