CoderAI

AutoIT value passed by selenium

3 posts in this topic

#1 ·  Posted

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

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

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)

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

Need to implement.

Any other suggestion please.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now