CyVist Posted March 1, 2019 Posted March 1, 2019 Hi I want autoit to search for a filename in a folder, but the filename in my situation is always changing, however logged in a notepad file. What I did before the filename was changing, was opening a folder, then with Send("apple") and Send("{ENTER}") it would load the file called "apple". But now the filename is always changing, and I want autoit to search for the right filename. The right filename is always stored in for instance a Notepad or Excel file on the first row (this might not always be the case, but that's something I have to fix later on). I know I can simply copy the name, but with paste I cannot search in a folder. I need to send the filename keys to make it really search. Send("Alwaysthesametext") to: Send( pick up whatever is the first line from notepad and send that somewhere else) Any suggestions? Kind regards, Igor
LukeLe Posted March 1, 2019 Posted March 1, 2019 You need to get the data inside the notepad/excel to use in your Send() function? Just find a way to read it into a string parameter, then pass that string into Send. For notepad, just read the first line. About Excel, maybe you need Excel UDF to get the data you want. If I misunderstood your idea, could you please explain more? Wondering who uses AutoIT and what it can be used for?
rm4453 Posted March 1, 2019 Posted March 1, 2019 Post a sample of the data file containing the name. As well as some code example of what you have tried (inside code tags).
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