Chris M 55 Posted October 5, 2014 Report Share Posted October 5, 2014 I have been trying to figure out how to get items from a list to show up in the datagrid and I've tested out something and then go to apply it in a bot I'm working on and it doesn't work. Here is my test code which sometimes throws an error: add list to list(%urls, $list from text("www.gc-entertainment.com www.abdkhalil.com www.furlasweetbrand.com www.pickupmarcbymarcjacobs.com www.schroonriverinn.com www.kidsbikesntrikes.com www.money-online-review.com www.fxzhiyao.com www.splicethis.com www.tyres-info.com www.wuteshoes.com www.qingdaogangchang.com www.szzycar.com www.bjqsfs.com www.htmbicycle.com www.tssrcw.com www.discountmakeupwholesale.com www.mussh-shin.com www.mtcnstore.com www.isdance.com www.siberiany.com www.homesforsalemedford.com www.bdsseo.com www.clothingfavors.com www.brokenprojector.com www.dachengok.com www.elliottforcongress.com www.dqblw.com www.topelevenhacker.com www.moexpunge.com www.yiwangershen.com www.acarpetcare.com www.heelsvogue.com www.acrylicnailsgo.com www.satellitedirectchoice.com www.cerera-service.com www.fjppm.com www.omgheadphone.com www.quemmatouatangerina.com www.ming-du.com www.skynetgenesis.com www.lakecityweddingguide.com www.dizilimani.com www.redcakegallery.com www.kusadasitravel.com www.lawofdating.com www.kellyteen.com www.varldskoket.com www.brittany-gites-by-jewells.com www.teachalessonplayagame.com www.chinapans.com www.jtgufengji.com www.theccwire.com www.maroc-porno.com www.cigaspirit.com www.ouvre-ton-cul.com www.samanthathavasaloverjp.com www.jordanshoesforsales.com www.seikotokusyuu.com www.lovelykatespadeja.com www.coachmoderu.com www.coachjpcheap.com www.genericviagratabsrx.com www.fuengirolaalminuto.com www.agnesbbaggu.com www.sorabuy.com www.watchshijyou.com www.seikogekiyasu.com www.outlethogannegozio.com www.sz-chemical.com www.yohanwibisono.com www.bicifiebre.com www.aquaristhub.com www.guccitenpo.com www.japanbeatsbydre.com www.levitraedmedication.com www.louisvuittonreplicago.com www.chanelkaban.com www.cheapcialispillsuk.com www.louisvuittonreplicato.com www.bzbqswjx.com www.shzisheng.com www.cialis-comparison.com www.angelsdemonsmasons.com www.expo-vente.com www.m-hitozuma.com www.esteembpo.com www.copy-shopping.com www.nyedus.com www.achievement-control.com www.gamemanuals.net www.chinaworkshops.net www.waycoolhair.net www.sacrocuorevi.net www.gjonsson.net www.miraclesoftware.net www.netwang.net www.escortankarabayan.net www.ladiesgames.net www.qualitycycle.net www.thecapturehisheart.net www.ecard-web.net www.djstoddard.net www.applereviewed.net www.qualitydrugsonline.net www.viagrapillole.net www.nilaiwo.net www.kobeshoes.org www.kabansale.org www.hermes-outlets.org www.markstuartdance.org www.bottegavenetasale.org www.carreralunettesfr.org www.sportovniobleceni.org www.sheraa.org www.narcci.org www.no-war-on-iraq.org www.webink.org www.sfastudentgov.org www.chswpirc.org www.rocor-russia.org www.blacksecturkey.org", $new line), "Delete", "Global") plugin command("DataGridUI.dll", "show datagrid", "URLS") loop($list total(%urls)) { plugin command("DataGridUI.dll", "add datagrid row", $next list item(%urls)) } And when I try and do something similar from scraped data it always fails and won't show the data in the grid. Any help would be really appreciated. And for urls, how can I use the datagrid context menu to open say a url in the list? plugin command("DataGridUI.dll", "datagrid contextmenu add", "Open URL", "", "") Quote Link to post Share on other sites
Aymen 385 Posted October 5, 2014 Report Share Posted October 5, 2014 I'm not sure why you are not getting any result but it worked fine for mehttp://screencast.com/t/gtMSvpVKl The only difference is that i put "show datagrid" first plugin command("DataGridUI.dll", "show datagrid", "URLS") add list to list(%urls, $list from text("www.gc-entertainment.com www.abdkhalil.com www.furlasweetbrand.com www.pickupmarcbymarcjacobs.com www.schroonriverinn.com www.kidsbikesntrikes.com www.money-online-review.com www.fxzhiyao.com www.splicethis.com www.tyres-info.com www.wuteshoes.com www.qingdaogangchang.com www.szzycar.com www.bjqsfs.com www.htmbicycle.com www.tssrcw.com www.discountmakeupwholesale.com www.mussh-shin.com www.mtcnstore.com www.isdance.com www.siberiany.com www.homesforsalemedford.com www.bdsseo.com www.clothingfavors.com www.brokenprojector.com www.dachengok.com www.elliottforcongress.com www.dqblw.com www.topelevenhacker.com www.moexpunge.com www.yiwangershen.com www.acarpetcare.com www.heelsvogue.com www.acrylicnailsgo.com www.satellitedirectchoice.com www.cerera-service.com www.fjppm.com www.omgheadphone.com www.quemmatouatangerina.com www.ming-du.com www.skynetgenesis.com www.lakecityweddingguide.com www.dizilimani.com www.redcakegallery.com www.kusadasitravel.com www.lawofdating.com www.kellyteen.com www.varldskoket.com www.brittany-gites-by-jewells.com www.teachalessonplayagame.com www.chinapans.com www.jtgufengji.com www.theccwire.com www.maroc-porno.com www.cigaspirit.com www.ouvre-ton-cul.com www.samanthathavasaloverjp.com www.jordanshoesforsales.com www.seikotokusyuu.com www.lovelykatespadeja.com www.coachmoderu.com www.coachjpcheap.com www.genericviagratabsrx.com www.fuengirolaalminuto.com www.agnesbbaggu.com www.sorabuy.com www.watchshijyou.com www.seikogekiyasu.com www.outlethogannegozio.com www.sz-chemical.com www.yohanwibisono.com www.bicifiebre.com www.aquaristhub.com www.guccitenpo.com www.japanbeatsbydre.com www.levitraedmedication.com www.louisvuittonreplicago.com www.chanelkaban.com www.cheapcialispillsuk.com www.louisvuittonreplicato.com www.bzbqswjx.com www.shzisheng.com www.cialis-comparison.com www.angelsdemonsmasons.com www.expo-vente.com www.m-hitozuma.com www.esteembpo.com www.copy-shopping.com www.nyedus.com www.achievement-control.com www.gamemanuals.net www.chinaworkshops.net www.waycoolhair.net www.sacrocuorevi.net www.gjonsson.net www.miraclesoftware.net www.netwang.net www.escortankarabayan.net www.ladiesgames.net www.qualitycycle.net www.thecapturehisheart.net www.ecard-web.net www.djstoddard.net www.applereviewed.net www.qualitydrugsonline.net www.viagrapillole.net www.nilaiwo.net www.kobeshoes.org www.kabansale.org www.hermes-outlets.org www.markstuartdance.org www.bottegavenetasale.org www.carreralunettesfr.org www.sportovniobleceni.org www.sheraa.org www.narcci.org www.no-war-on-iraq.org www.webink.org www.sfastudentgov.org www.chswpirc.org www.rocor-russia.org www.blacksecturkey.org", $new line), "Delete", "Global") loop($list total(%urls)) { plugin command("DataGridUI.dll", "add datagrid row", $next list item(%urls)) } Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 5, 2014 Report Share Posted October 5, 2014 do you have this? http://www.ubotstudio.com/forum/index.php?/topic/16343-sell-newgen-ui-builder-most-advanced-easy-to-use-tool-for-building-uis-for-ubot/page-3&do=findComment&comment=102329 Quote Link to post Share on other sites
Chris M 55 Posted October 5, 2014 Author Report Share Posted October 5, 2014 No I don't Traffic Cop. And @Aymen - The code above works if I add the data manually like I did above. When I try and use a list I've scrapedalready it doesn't add any data to the table. Quote Link to post Share on other sites
Aymen 385 Posted October 5, 2014 Report Share Posted October 5, 2014 Here is an example that works fine for me plugin command("DataGridUI.dll", "reset datagrid") plugin command("DataGridUI.dll", "show datagrid", "URLS") set(#doc, $plugin function("HTTP post.dll", "$http get", "http://www.ubotstudio.com/resources", $plugin function("HTTP post.dll", "$http useragent string", "Chrome 32.0 Win7 64-bit"), "", "", ""), "Global") clear list(%links) add list to list(%links, $list from text($plugin function("HTTP post.dll", "$http links finder", "All"), $new line), "Delete", "Global") loop($list total(%links)) { plugin command("DataGridUI.dll", "add datagrid row", $next list item(%links)) } Quote Link to post Share on other sites
Bill 7 Posted October 5, 2014 Report Share Posted October 5, 2014 cmmorris1 And for urls, how can I use the datagrid context menu to open say a url in the list? plugin command("DataGridUI.dll", "datagrid contextmenu add", "Open URL", "", "") plugin command("DataGridUI.dll", "datagrid contextmenu add", "Open URL", "open_website()", "")define open_website { shell("cmd.exe /c start {$plugin function("DataGridUI.dll", "$datagridUI get value", $plugin function("DataGridUI.dll", "$datagridUI selected index"), "URLS")}")} Quote Link to post Share on other sites
Chris M 55 Posted October 5, 2014 Author Report Share Posted October 5, 2014 Thanks guys. I'll try those out Quote Link to post Share on other sites
Chris M 55 Posted October 6, 2014 Author Report Share Posted October 6, 2014 I am so frustrated with this plugin. If I do one scraped element then the datagrid shows the data fine. If I try and add more than one column of data it doesn't display either. Does anyone actually know how to use this plugin? I know HelloInsomnia has done something similar. I need help. Quote Link to post Share on other sites
Aymen 385 Posted October 6, 2014 Report Share Posted October 6, 2014 I am so frustrated with this plugin. If I do one scraped element then the datagrid shows the data fine. If I try and add more than one column of data it doesn't display either. Does anyone actually know how to use this plugin? I know HelloInsomnia has done something similar. I need help. do you have an example code you tried ?post it here and i'll see what i can do Quote Link to post Share on other sites
giganut 109 Posted October 8, 2014 Report Share Posted October 8, 2014 Give this a shot. clear table(&urls) clear list(%urls) plugin command("DataGridUI.dll", "reset datagrid") plugin command("DataGridUI.dll", "show datagrid", "urls") add list to list(%urls, $list from text("www.gc-entertainment.com www.abdkhalil.com www.furlasweetbrand.com www.pickupmarcbymarcjacobs.com www.schroonriverinn.com www.kidsbikesntrikes.com www.money-online-review.com www.fxzhiyao.com www.splicethis.com www.tyres-info.com www.webink.org www.sfastudentgov.org www.chswpirc.org www.rocor-russia.org www.blacksecturkey.org", $new line), "Delete", "Global") clear table(&urls) add list to table as column(&urls, 0, 0, %urls) clear list(%urls) plugin command("DataGridUI.dll", "table to datagrid", &urls) 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.