Sign in to follow this  
Followers 0
Dudewana

Show folder files and launch on click

4 posts in this topic

I can't find a way to launch an ''_ArrayDisplayed'' file.

    $files = _FileListToArray(@UserProfileDir, "*.*", 1)
    _ArrayDisplay($files)

I want the selected file to be openned) the same way as if i double clicked it (with a button or double click).

Any way I can do this?

Thanks for help i'm a beginner.

Share this post


Link to post
Share on other sites



@Dudewana, welcome to AutoIt and to the forum.

_ArrayDisplay was meant to help you debug your code. if you want to use it as a general-purpose listing tool, then look inside the function, see how it's built, and write a customized version for your needs.

an easier approach might be to build your own GUI with a List control - look a the help for GUICtrlCreateList(). then populate the list with the files you found with _FileListToArray(), and ShellExecute a list entry upon click, or double-click.

 

1 person likes this

Share this post


Link to post
Share on other sites

Thank you for your super fast reply orbs :) 

I'll take a look at this. I just want to make a simple frontend for my emulators and roms and make it easier to launch them. If i'm not able to do so I might code it in html.

Tha

Share this post


Link to post
Share on other sites

Thanks again ** sorry didn't figured out how to edit my post

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0