Jump to content
UBot Underground

Current List Item?


Recommended Posts

Hello,

 

I'm trying to enter an email from an email list (list from file), the same email needs to be entered twice to confirm it was entered correctly. However I can't find a current list position parameter. I've tried using $list position inside of $list item, this doesn't work as it enters the next email in the list and not current one. I've also tried using previous list item, however this also entered the next email...

ui open file("Emails", #emails)
add list to list(%emaillist, $list from file(#emails), "Delete", "Global")
set list position(%emaillist, 0)
reset account("Any")
type text(<first name field>, $account data("First Name"), "Standard")
type text(<last name field>, $account data("Last Name"), "Standard")
type text($element offset(<email field>, 0), $next list item(%emaillist), "Standard")
type text($element offset(<email field>, 1), $list item(%emaillist, $list position(%emaillist)), "Standard")

I can't seem to figure out how to enter the same email twice from a text file...

Link to post
Share on other sites

You should have a variable which will hold your list position, and increment it manually when you want to go to next list item. Then you just pass that value to "$list item" to retrieve a specific item...

Link to post
Share on other sites

ui open file("Emails"#emails)
add list to list(%emaillist$list from file(#emails), "Delete""Global")
set list position(%emaillist, 0)
reset account("Any")
type text(<first name field>$account data("First Name"), "Standard")
type text(<last name field>$account data("Last Name"), "Standard")
set(#tmp$next list item(%emaillist), "Global")
type text($element offset(<email field>, 0), #tmp"Standard")
type text($element offset(<email field>, 1), #tmp"Standard")

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...