klinki Posted February 19, 2009 Posted February 19, 2009 Hi Everybody, I am a newbie to AutoIT and would really appreciate some hints, in order to solve the following problem: I created a script that automaticaly uses the PDF Compare functionality of Adobe Acrobat. (Unfortunately with fixed path- and filename.) Solution1: The names of those files that should be compared with each other will be deliverd by another progam/procedure (PERL). This procedure will iteratively call the AutoIT-exe file and provide the file names as input parameters (command line?) Thus I thought of receivng the names of these files as input parmeters, as soon as the exe-File (compiled AutoIT-Script) is being called. Is there a way to realize this? Solution2: Alternatively I thought of implementing the whole scenario with AutoIT. Therfore I would have to read out the filename and use it, in order to find and select a comparable file (in another folder). The whole process have to be implemented as loop, in order iteratively compare all files. Since I am no expert, Solution1 seems easier to me. Thanks in advance for your help. Cheers, KlinkiAcrobat.au3
erik7426 Posted February 19, 2009 Posted February 19, 2009 Hi Everybody, I am a newbie to AutoIT and would really appreciate some hints, in order to solve the following problem: I created a script that automaticaly uses the PDF Compare functionality of Adobe Acrobat. (Unfortunately with fixed path- and filename.) Solution1: The names of those files that should be compared with each other will be deliverd by another progam/procedure (PERL). This procedure will iteratively call the AutoIT-exe file and provide the file names as input parameters (command line?) Thus I thought of receivng the names of these files as input parmeters, as soon as the exe-File (compiled AutoIT-Script) is being called. Is there a way to realize this? Solution2: Alternatively I thought of implementing the whole scenario with AutoIT. Therfore I would have to read out the filename and use it, in order to find and select a comparable file (in another folder). The whole process have to be implemented as loop, in order iteratively compare all files. Since I am no expert, Solution1 seems easier to me. Thanks in advance for your help. Cheers, Klinki You can use $CmdLine to capture parameters passed to an AutoIt executable. Check out the help file. $CmdLine[0] returns the number of parameters $CmdLine[1] is the first parameter $CmdLine[2] is the second.....and so on....
klinki Posted February 19, 2009 Author Posted February 19, 2009 Hi Erik, thanks so far. It is working - not as difficult as I thought. Have a nice day. Cheers klinki
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