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/AppGameKit Studio Showcase / [Plugin] FileExplore (File, Folder and System-Drives Handling)

Author
Message
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 20th Oct 2019 05:40
Sorry, I was in a hurry. The link should work again now.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Qugurun
AGK Developer
5
Years of Service
User Offline
Joined: 8th Dec 2014
Location: Tyumen, Russia
Posted: 23rd Oct 2019 00:01 Edited at: 23rd Oct 2019 00:14
Greetings. Thanks for the plugin. I would like to see the GetWindowPosX, GetWindowPosY function and maybe GetGlobalCrursorX, GetGlobalCrursorY.

For implement moving the window to any place.
https://www.instagram.com/qugurun/
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 23rd Oct 2019 01:28
+1 on that one
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 23rd Oct 2019 19:48
Qugurun wrote: "For implement moving the window to any place."


Is that really necessary?

Test this code.


Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 23rd Oct 2019 23:11 Edited at: 23rd Oct 2019 23:15
Haha. Very cool
Thanks

ps: If i click and drag the title bar it snaps back to it's original position
Qugurun
AGK Developer
5
Years of Service
User Offline
Joined: 8th Dec 2014
Location: Tyumen, Russia
Posted: 24th Oct 2019 00:20 Edited at: 24th Oct 2019 00:24
I feel awkward now. I forgot about GetMaxDeviceWidth (). Thanks a lot, this works great!

blink0k
This is to make a window without a title and drag it by its title. For example, as in Photoshop.
https://www.instagram.com/qugurun/

Attachments

Login to view attachments
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 24th Oct 2019 23:03
Quote: "This is to make a window without a title and drag it by its title. For example, as in Photoshop"

You wouldn't be trying to make separate drag able windows would you?
marvin944
6
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 4th Nov 2019 14:05
Any idea why thi is not working?

FileExplorer.SetWindowStyle(0x10000000 || 0x01000000 || 0x80000000) // (WS_VISIBLE | WS_CLIPSIBLINGS | WS_POPUP)

Using Studio and running it from here. Other examples work.
Dutch
marvin944
6
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 4th Nov 2019 14:42 Edited at: 4th Nov 2019 14:43
Are there any alternatives to getting rid of the title bar? I know some Windows API calls...
Dutch
Qugurun
AGK Developer
5
Years of Service
User Offline
Joined: 8th Dec 2014
Location: Tyumen, Russia
Posted: 4th Nov 2019 18:28
It works for me.

https://www.instagram.com/qugurun/

Attachments

Login to view attachments
marvin944
6
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 11th Nov 2019 21:58
It doesn't for me in AppGameKit Studio.

Other question: is there a command to get files based on joker search? E.g. Name*.png
Dutch
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 13th Nov 2019 12:27
marvin944 wrote: "Other question: is there a command to get files based on joker search? E.g. Name*.png"


In the first post is an example of file enumeration. Do you mean that?

Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
marvin944
6
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 13th Nov 2019 21:19
Yes, exactly, thanks!
Dutch
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 17th Nov 2019 00:04
I have implemented a new function. At the request of marvin944. I think it is a useful function.

SetWindowPosition(posx, posy, zorder, width, height, flags)

I wrapped the Windows function SetWindowPos. [href=https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos]For more information about the flags and the possibilities of zorder (hWndInsertAfter) see the MS website.
[/href]
Here in the example you can see the movable window without title bar and set to Topmost.



I've changed the toolset from 140 (15) to 141 (17) so i hope there are no new problems to use this plugin. And I can't test it with AgkStudio, because I don't have this.
Download see below at the bottom of this post.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)

Attachments

Login to view attachments
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 27th Nov 2019 05:18
First of all let me say this is THE most awesome plugin i have used. Thanks heap matey.
Would it be possible to add a BrowseFolderDialog
If you're too busy or it's too much of a pain then no worries, i could get but with the choose file dialog.
Thanks again matey
Qugurun
AGK Developer
5
Years of Service
User Offline
Joined: 8th Dec 2014
Location: Tyumen, Russia
Posted: 27th Nov 2019 10:42 Edited at: 27th Nov 2019 10:42
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 27th Nov 2019 19:41
Thanks matey. Awesome work
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 28th Nov 2019 11:25 Edited at: 28th Nov 2019 11:27
Sorry for the late response.
Quote: "First of all let me say this is THE most awesome plugin i have used. Thanks heap matey."

Thank you.

Before I extend this library with the requested function, I want to update AgkSharp first.

I think this weekend.

EDIT:
@Qugurun: good work.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 28th Nov 2019 21:39
Awesome! Thanks
Virtual Nomad
14
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 30th Nov 2019 20:47 Edited at: 30th Nov 2019 20:55
not sure what i'm doing wrong with my load file dialogue routine:

i define a couple of paths early on:


courses\ currently contains 2 folders: "default" and "test"

then, within the load function itself:

instead of delivering me to courses\, as expected, it dives into courses\default


any thoughts appreciated.

note: the syntax advice shows:
String ChooseFileDialog(String Title, String Filter, Integer MultiSelect)
If you enable multi select, and select multiple files. This returns a string containing the selected directory and then all files in it. All are separated by the pipe ('|').

i'm guessing that the MultiSelect parameter is either 0 or 1?

Attachments

Login to view attachments
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 30th Nov 2019 22:09 Edited at: 30th Nov 2019 22:11
Instead of SetWorkingDirectory better use SetInitialDir.

Quote: "i'm guessing that the MultiSelect parameter is either 0 or 1?"

Here you are right 0 = only one file can be selected and 1 = you can select multiple files.
Since you cannot pass arrays from a plugin, all selected files are separated with pipes.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
Virtual Nomad
14
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 1st Dec 2019 02:08 Edited at: 1st Dec 2019 03:27
Quote: "better use SetInitialDir"

was inconsistent until i set the course directory as such:

CourseDir$ = BaseDir$ + "\courses\" with the backslashes before AND after.

i'm moving forward again; thanks, madbit!


add: still inconsistent. gets/sets the right directory but doesn't find ".hole" files on first attempt. same code as above:


i'm sure i'm missing something; can someone provide full example?

MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 1st Dec 2019 06:20 Edited at: 1st Dec 2019 06:41
You need a string pair seperated by the pipe '|'. Left one is the filter descriptor and the right one the filter mask. Please use in the mask part the joker '*' see below.

Here is my test code for this:
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
MadBit
Valued Member
10
Years of Service
User Offline
Joined: 25th Jun 2009
Location: Germany
Posted: 1st Dec 2019 06:46 Edited at: 1st Dec 2019 06:48
Ok, version 20191201 is now downloadable in the first post.

[UPDATE:01-12-2019]
Added New Function - Void SetWindowPosition(Integer posX, Integer posY, Integer zOrder, Integer width, Integer height, Integer flags) ->
wraps SetWindowPos function to set the AGK-Window.
posX, posY -> set the position of the AGK-Window
width, height -> set the size of the AGK-Window. Please let it at 0 (zero). I dont know what happens if not. Use instead Agk-Commands.
zOrder, flags -> refer ms documentation of function SetWindowPos for more information. (Parameters hWndInsertAfter and uFlags)

Added New Function - String ChooseFolderDialog(String title, String initialDir) -> A Dialog to select a folder.
Fixed - The ChooseFileDialog filter sometimes has an unusual behavior.
Share your knowledge. It\'s a way to achieve immortality. (Tenzin Gyatso)
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 2nd Dec 2019 07:02
Great job Mr Bit. Awesome work
Softwizz
10
Years of Service
User Offline
Joined: 14th May 2009
Location: U.K.
Posted: 6th Jan 2020 20:15
I just want to thank you for creating this.

Login to post a reply

Server time is: 2020-02-23 05:27:14
Your offset time is: 2020-02-23 05:27:14