Jump to content

Recommended Posts

Posted

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.

Posted

@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.

 

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...