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.

AppGameKit Showcase / [Plugin] FileExplore (File, Folder and System-Drives Handling)

Author
Message
MadBit
Valued Member
9
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 23rd Apr 2017 00:02 Edited at: 16th Oct 2018 13:54
Hello,
Here is a new plugin for you. Lately, the insufficient support for desktop file browsing was a few times a topic here in the forum.
Now I offer you a plugin, that treats exactly this problem. I hope you can use it.

Plugin: FileExplore

Here is the command list:


The commands starting with 'GetCurrentFile ...'. Refer to the file obtained with GetFirstFile and GetNextFile.

[UPDATE:27-04-2017]
New Function ChooseFileDialog
New Function SaveAsDialog
New Function MessageBox

Function in detail:


[UPDATE:06-05-2017]
New Function - String GetCL()

[UPDATE:16-10-2018]
Added 64Bit DLL

And some code snippets.
System-Drive-Enumeration:


Folder Enumeration:


File Enumeration:


Please tell me if you find bugs or have some suggestions.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)

Attachments

Login to view attachments
nz0
AGK Developer
11
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 23rd Apr 2017 00:55
Nice work. We should really have a sticky for plugins.

BatVink
Moderator
15
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 23rd Apr 2017 10:29
Good work, and thank you sir!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
blink0k
AGK Developer
5
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 24th Apr 2017 01:25
Would it be possible to add the openfile dialog to this .dll?
Stab in the Dark software
Valued Member
16
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 24th Apr 2017 14:03 Edited at: 24th Apr 2017 14:03
Quote: "Would it be possible to add the openfile dialog to this .dll?"


AGK has a open file dialog. It needs a save file dialog.
The coffee is lovely dark and deep,and I have code to write before I sleep.
BatVink
Moderator
15
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Apr 2017 18:09
The AppGameKit OpenFile dialog doesn't return the full path of the file. It would be really good to add it, because it would save the effort of having to hand-craft a solution.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
MadBit
Valued Member
9
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 25th Apr 2017 15:44
So after some problems I have now managed to create a file dialog.
Any other suggestion?

To be added.
ChooseFileDialog
SaveAsDialog

Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine
blink0k
AGK Developer
5
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 25th Apr 2017 22:28
Message dialog would be cool too
BatVink
Moderator
15
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th Apr 2017 08:34
Quote: "Message dialog would be cool too"


Message() already exists
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
blink0k
AGK Developer
5
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 26th Apr 2017 10:06
Damn. Forgot about that!
Jack
14
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 27th Apr 2017 21:19 Edited at: 27th Apr 2017 21:21
Good work!
+1 for good and easy mass selection

[/url]
MadBit
Valued Member
9
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 27th Apr 2017 22:21 Edited at: 27th Apr 2017 22:25
Thanks Jack and all others.

So, as far as no further requests are available. Here are 3 additional functions. ChooseFileDialog, SaveAsDialog and MessageBox. The MesaageBox offers more flexibility than that of AGK.

Here the NEW Functions in detail.


Download see the first post
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine
blink0k
AGK Developer
5
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 2nd May 2017 23:41
Super duper want: Get command line arguments
MadBit
Valued Member
9
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 6th May 2017 02:37
blink0k wrote: "Super duper want: Get command line arguments"


Added
GetCL()

The strange thing about this is that Paul has already implemented this function but it does not work.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Pixie-Particle-Engine
blink0k
AGK Developer
5
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th May 2017 00:16
Superb! Thanks!
blink0k
AGK Developer
5
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th May 2017 08:45 Edited at: 7th May 2017 08:46
One last request;
Functions to access the copy/paste buffer
Functions to allow access to the right-click menu for file explorer
JohnnyMeek
5
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 7th May 2017 16:21
Mac version would be great to have......
MadBit
Valued Member
9
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 16th Oct 2018 13:47
Hi,

I've updated this plugin for support 64bit-Windows.
You find the download at the first post.

Thanks for your attention.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Cliff Mellangard 3DEGS
Developer
12
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 17th Oct 2018 17:14

Login to post a reply

Server time is: 2019-01-23 08:58:31
Your offset time is: 2019-01-23 08:58:31