is it possible to get the line number and the email on that line and display it in a message box
e.g
ReadFile>C:\Users\Public\usernames.txt,allFile
Separate>allFile,CRLF,usernames
If>usernames_count<0
//just exit if the file is empty
Exit>0
Endif
//loop through the list of usernames and login for each one
Let>k=0
Repeat>k
Let>k=k+1
Let>this_line=Account_%k%
Let>This_line=lines_%k%
//Value becomes the "k"th line from file c:\usernames.txt
Let>Value=usernames_%k%
//Separate the line by ";" giving two items.
//"This_User_1' is the user name
//"This_User_2' is the password
Separate>Value,;,This_User
//do something
Let>MSG_STAYONTOP=1
Let>MSG_XPOS=1250
Let>MSG_YPOS=650
Let>MSG_HEIGHT=171
Let>MSG_WIDTH=285
//this part of the code displays the line that is being red
Message>this_line
//this part of the code displays the email that is being red
Message>This_user_1
wait>2
Until>k=usernames_count
what i want to do is combine both part of the message box into one box that displays both the "line number, and also the email"
thanks
message box
Moderators: Dorian (MJT support), JRL
Re: message box
First, you need to know that variable names are NOT case sensitive so in the lines:
Let>this_line=Account_%k%
Let>This_line=lines_%k%
The variable "THIS_LINE" can only hold one value at a time. It will be assigned the value of "Account_%k%" then on the next line its value will be changed to the value of "lines_%k%".
Second, you can merge as many variables into one message that you want. They just need to be surrounded by percents. I also like to separate by using a carriage return / line feed (crlf).
//this part of the code displays the line that is being read
//and also displays the email that is being read
Message>%this_line%%crlf%%This_user_1%
Let>this_line=Account_%k%
Let>This_line=lines_%k%
The variable "THIS_LINE" can only hold one value at a time. It will be assigned the value of "Account_%k%" then on the next line its value will be changed to the value of "lines_%k%".
Second, you can merge as many variables into one message that you want. They just need to be surrounded by percents. I also like to separate by using a carriage return / line feed (crlf).
//this part of the code displays the line that is being read
//and also displays the email that is being read
Message>%this_line%%crlf%%This_user_1%