CoderAI Posted April 18, 2017 Share 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 Link to comment Share on other sites More sharing options...
benners Posted April 18, 2017 Share 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) Link to comment Share on other sites More sharing options...
CoderAI Posted April 18, 2017 Author Share Posted April 18, 2017 Need to implement. Any other suggestion please. 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