iglow 8 Posted November 17, 2010 Report Share Posted November 17, 2010 lets say i have file which has 1 line with 4 variables:omg|12345|zzz|6789 as we see they are delimited by | and they are in .txt file called text.txt lets say i want to nav to google.com and put 3rd word [zzz] as a value [text]. how to do that as i never worked with delimiters before and variables in one line? thanx in advance Quote Link to post Share on other sites
smartdudeandrew 4 Posted November 17, 2010 Report Share Posted November 17, 2010 I would also like to know. I want to make my bot log in. I want to have 1 file with, Username|password format. How do I add a delimiter and have it enter the username in the username box, and the password in the password box? Quote Link to post Share on other sites
IRobot 43 Posted November 17, 2010 Report Share Posted November 17, 2010 lets say i want to nav to google.com and put 3rd word [zzz] as a value [text]. how to do that as i never worked with delimiters before and variables in one line?Use:add to list Content: $list from textThen set the required value as the 3rd $list item. Quote Link to post Share on other sites
IRobot 43 Posted November 17, 2010 Report Share Posted November 17, 2010 I would also like to know. I want to make my bot log in. I want to have 1 file with, Username|password format. How do I add a delimiter and have it enter the username in the username box, and the password in the password box?Hey dude, Try this:dude.ubotp.txt Quote Link to post Share on other sites
smartdudeandrew 4 Posted November 18, 2010 Report Share Posted November 18, 2010 Hey, how do I tell it which field it should put the username in, and which field for the password. I usually right click and click on fill field. How do I tell it to fill the field with the right username|password position? Quote Link to post Share on other sites
IRobot 43 Posted November 18, 2010 Report Share Posted November 18, 2010 how do I tell it which field it should put the username in, and which field for the password.Use choose by attribute to select the field. Then change chosen attribute, using the #variable for the required field. Quote Link to post Share on other sites
iglow 8 Posted November 22, 2010 Author Report Share Posted November 22, 2010 IRobot what if theres for examle 10 lines and eadch has 3 fileds:user|passwd|name ?How would thi bot work then ? Could You give example with 2 lines? user1|pass1|Mikeuser2|pass2|John coz i kinda dont get it ;( Quote Link to post Share on other sites
IRobot 43 Posted November 22, 2010 Report Share Posted November 22, 2010 IRobot what if theres for examle 10 lines and eadch has 3 fileds:user|passwd|name ?How would thi bot work then ? Could You give example with 2 lines? user1|pass1|Mikeuser2|pass2|John Read each line into a list. Then use $list from text to separate each line into another list of delimited values. Quote Link to post Share on other sites
iglow 8 Posted November 22, 2010 Author Report Share Posted November 22, 2010 Okay so theres no easy way wothout loads of code to do that like - row/item number. Thanx for help now ill work with that :L) Quote Link to post Share on other sites
Praney Behl 314 Posted November 22, 2010 Report Share Posted November 22, 2010 I think its easy enough to use 2 lists one after the other. The 1st one reads the file and saves all lines into different list items, then you run a loop which save every delimited item to its item. Ex.: addtolist(A){$readfile(loc..\somefile.txt)}; loop($listtotal(A)) { addtolist({$listfromtext(#nextlistitem(A),|)}; } I think this code should work.. Praney Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.