Jump to content
UBot Underground

How To Copy And Delete Data From .csv File?


Recommended Posts

Hello Members!

 

i have a short question:

 

i got a csv file with username, Passwort and birth data. one per line.

 

How can i tell ubot to use 1 line, copy and paste it in a browser window (Exbrowser)?

 

After that, ubot has to delete this line.

 

Has anyone an idea how to realize that? Would be great1

 

Hoep someone could help me!

 

Greetings1

Link to post
Share on other sites

Hi,

 

I have  a short answer. :)

 

You can use an index variable "set" at 0 before the loop and "increment" it at the end of the loop.

 

Then use $table cell and in the 'row" put your "index" variable. Use 0,1,2 for the "columns" you can use 3 $table cell functions where you need them.

 

Regards,

Nick

Link to post
Share on other sites
clear table(&data)
comment("some use the \"ui open file\"
if you choose to use it
just place the #variable in the first feild")
create table from file("{$special folder("Application")}\\your-data-file.csv",&data)
set(#table index,0,"Global")
loop($table total rows(&data)) {
    comment("column one starts at 0,1,2 and so on.
computers start at 0")
    set(#username,$table cell(&data,#table index,0),"Global")
    set(#password,$table cell(&data,#table index,1),"Global")
    set(#dob,$table cell(&data,#table index,2),"Global")
    comment("use the data -- you code goes here")
    increment(#table index)
}

if you plan to use threading I would use  a list instead. They are thread safe.

 

Regards,

Nick

example looping through a table.ubot

Link to post
Share on other sites

Using a list

clear list(%data)
add list to list(%data,$list from file(#UI_open file),"Delete","Global")
loop($list total(%data)) {
    comment("$next list iem 
increments for you. ")
    set(#data NLI,$next list item(%data),"Global")
    comment("split the data uip
starts at 0 too.")
    set(#USER NAME,$list item($list from text(#data NLI,","),0),"Global")
    set(#PASSWORD,$list item($list from text(#data NLI,","),1),"Global")
    set(#DOB,$list item($list from text(#data NLI,","),2),"Global")
    comment("your code here")
}
ui open file("Choose file:",#UI_open file)
ui stat monitor("username: {#USER NAME}","<br>password: {#PASSWORD}
<br>d.o.b: {#DOB}")

The downloadable file will have this too.

 

Regards,
Nick

Link to post
Share on other sites

Using a list

clear list(%data)
add list to list(%data,$list from file(#UI_open file),"Delete","Global")
loop($list total(%data)) {
    comment("$next list iem 
increments for you. ")
    set(#data NLI,$next list item(%data),"Global")
    comment("split the data uip
starts at 0 too.")
    set(#USER NAME,$list item($list from text(#data NLI,","),0),"Global")
    set(#PASSWORD,$list item($list from text(#data NLI,","),1),"Global")
    set(#DOB,$list item($list from text(#data NLI,","),2),"Global")
    comment("your code here")
}
ui open file("Choose file:",#UI_open file)
ui stat monitor("username: {#USER NAME}","<br>password: {#PASSWORD}
<br>d.o.b: {#DOB}")

The downloadable file will have this too.

 

Regards,

Nick

 

thank you so much for your help nick. all worked well, i got the right username, passwort etc but i got this error message and the cells arent deleted after the script:

do you know how i can fix that?

 

best regards!

 

1.png

Edited by papillon121
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...