Sign in to follow this  
Followers 0
reva

AutoIt GUI

4 posts in this topic

I'm trying to present an interface to the user, to select a file/list of files among the many of such available in a given folder.

I have many files on my computer by name start.bat, present in various folders.

I'd like to design a GUI, which shows a list of start.bat in the current drive, as shown below:

D c:\compilation1\start.bat

D c:\backup\compilation1\start.bat

D c:\backup\compilation2\start.bat

D c:\backup\compilation3\start.bat

D c:\backup\compilation15jul08\start.bat

D c:\mycompilation1\start.bat

D c:\testcompilation1\start.bat

The user should be able to select a single file, or multiple files from the check-box for some more actions to follow.

Thanks in advance.

Share this post


Link to post
Share on other sites



So, how is it going? :P

Post what code you have so far and we will try to help.

Take a look in the help file for 'FileFindFirstFile', and 'FileFindNextFile'

Then take a shot at creating a GUI to display the list (GUICreate and GUICtrlCreateListView).

I'm trying to present an interface to the user, to select a file/list of files among the many of such available in a given folder.

I have many files on my computer by name start.bat, present in various folders.

I'd like to design a GUI, which shows a list of start.bat in the current drive, as shown below:

D c:\compilation1\start.bat

D c:\backup\compilation1\start.bat

D c:\backup\compilation2\start.bat

D c:\backup\compilation3\start.bat

D c:\backup\compilation15jul08\start.bat

D c:\mycompilation1\start.bat

D c:\testcompilation1\start.bat

The user should be able to select a single file, or multiple files from the check-box for some more actions to follow.

Thanks in advance.

Share this post


Link to post
Share on other sites

So, how is it going? :whistle:

Post what code you have so far and we will try to help.

Take a look in the help file for 'FileFindFirstFile', and 'FileFindNextFile'

Then take a shot at creating a GUI to display the list (GUICreate and GUICtrlCreateListView).

I've accidentally deleted the script I was working-on till now.

I'll write it in a short while. This is what I've started with. I'm sorry for the delay.

$search = FileFindFirstFile("start.bat")

If $search = -1 Then

MsgBox(0, "Error", "No files matched the search pattern")

Exit

EndIf

$file = ""

While 1

$file = $file& @LF &FileFindNextFile($search)

If @error Then ExitLoop

WEnd

MsgBox(4096, "File:", $file)

FileClose($search)

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