Jump to content

folder full of jpgs: display jpg, search a text file for its filename


Valhalla1
 Share

Recommended Posts

I have a folder full of jpgs. I want to write some autoit code that will display a jpg and give me an input box. Once I type in the input box to identify the jpg, the script will open a text file and search for the filename of the jpg, and append to the end of the line the text that I entered.

so theres a txt file with a list of jpg file names

aaa.jpg

bbb.jpg

ccc.jpg

my code will display aaa.jpg, I will type "cats", and it will append "cats" to the text file after the correct filename

aaa.jpg cats

bbb.jpg

ccc.jpg

and then continue on to the next jpg and repeat

my problem is I'm not sure how to get it started. How do I get my code to grab the filename of a jpg, store it to a variable? the filenames all have unique strings of numbers (datecodes). once I have the filename stored in a variable I'm pretty sure I can handle having the script search and append the text file, and displaying of the jpg

Edited by Valhalla1
Link to comment
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
 Share

  • Recently Browsing   0 members

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