Valhalla1 Posted September 30, 2010 Share Posted September 30, 2010 (edited) 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 September 30, 2010 by Valhalla1 Link to comment Share on other sites More sharing options...
taietel Posted September 30, 2010 Share Posted September 30, 2010 Look at _FileReadToArray() function. M.I. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
Valhalla1 Posted September 30, 2010 Author Share Posted September 30, 2010 (edited) thanks, got it started now Edited September 30, 2010 by Valhalla1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now