CoderAI Posted April 18, 2017 Posted April 18, 2017 Hello Everyone, I am passing some arguments from java to AutoIT which are successfully received by AutoIT using $CmdLine[1], $CmdLine[2] and so on... The arguments to be passed are in the form of list, as shown below: [[1234, abc, xyz, 9999], [2345, yyy, xxx, 8888], [3456, ttt, zzz, 1111]] The problem is I want to capture the entire list / sublist in a variable and use this variable in a 'for' loop at various places as an incremented counter. Please help how can I achieve it. Thanks
benners Posted April 18, 2017 Posted April 18, 2017 Would splitting the arguments into an array help? #include <Array.au3> local $s_Arguments = '[[1234, abc, xyz, 9999], [2345, yyy, xxx, 8888], [3456, ttt, zzz, 1111]]' local $as_Arguments = StringRegExp($s_Arguments, '([[:digit:]]{4}), ([[:alpha:]]{3}), ([[:alpha:]]{3}), ([[:digit:]]{4})', $STR_REGEXPARRAYGLOBALMATCH) _ArrayDisplay($as_Arguments)
CoderAI Posted April 18, 2017 Author Posted April 18, 2017 Need to implement. Any other suggestion please.
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