Is there a way to load multiple URL's in a for loop

open multiple urls chrome extension
open multiple urls firefox
chrome open multiple tabs with one click
open a list of urls in chrome
linkclump
script to open multiple urls
open multiple tabs with one link chrome
bulk url opener

I'm trying to control RGB LED's with an ESP8266 module. But if i try to control multiple ESP8266 modules at once, the for loop only works for the last array element.

I've tried Toast.makeText(applicationContext, i.toString(), Toast.LENGTH_SHORT).show() and the loop only counts 2 also if i remove the if statement.

The toast itself works fine on the AVD but not on my Galaxy S8. The loading of all ips doesn't work on my phone and on the AVD. Every time i try to control multiple devices only the last one lights up. Here's my RGBActivity maybe I'm missing something.

iv_rgb.setOnTouchListener {
  _,
  event - >

  if (event.action == MotionEvent.ACTION_DOWN || event.action == MotionEvent.ACTION_MOVE) {

    bitmap = iv_rgb.drawingCache
    val pixel = bitmap.getPixel(event.x.toInt(), event.y.toInt())

    var r = (Color.red(pixel) * brightness) / 100
    var g = (Color.green(pixel) * brightness) / 100
    var b = (Color.blue(pixel) * brightness) / 100

    val hex = "#" + Integer.toHexString(pixel)

    //color_layout.setBackgroundColor(Color.rgb(r, g, b))
    //color_view.text = "RGB: $r, $g, $b, \nHex: $hex\n${Devices.deviceIP[0]}"
    //Toast.makeText(this@RGBActivity, Devices.deviceIP[1], Toast.LENGTH_SHORT).show()
    for (i in Devices.deviceIP.indices) {
      if (Devices.switch[i]) {
        wv_rgb.loadUrl("http://${Devices.deviceIP[i]}/?r${r.toString()}g${g.toString()}b${b.toString()}&")
        Toast.makeText(applicationContext, Devices.deviceIP[i], Toast.LENGTH_SHORT).show()
        //tv_color_rgb.text = "RGB: $r, $g, $b, \nHex: $hex\n${Devices.deviceIP[0]}"
        //sleep(100)

      }
      //wvRGB.loadUrl("http://${Devices.deviceIP[i]}/?r${r.toString()}g${g.toString()}b${b.toString()}&")
      //Toast.makeText(this@RGBActivity, Devices.deviceIP[i], Toast.LENGTH_SHORT).show()
      //sleep(100)

    }

  }
  true

}

If `wv_rgb' is a WebView than for a loadUrl you have to wait for event onPageFinished() (or onPageLoaded() forgot name).

Open Multiple URLs, Opens a list of URLs. because URLs of tabs are accessible, although this access is only used to set the URL of tabs opened by the extension. There is a check box "don't load tabs until selected". In the same way add one more check box with option "load tabs 3 at a time when 1st one is selected. That means if I open the first tab 3 more

inside the loop you can try using onPageStarted() passing view url anf favicon and than call onPageFinished()(as stated by @blackapps) passing view and url. or try using conventional for loop(not sure, but worth a shot).

also you can look into this link https://android--code.blogspot.com/2016/03/android-detect-when-webview-finish.html

Multiple Url Opener – Free One-Click Tool, No Install Required, There is no limit to the number of URLs that the Multiple URL Opener can handle. The tricky part is knowing your own computer and how many pages it can open� Open multiple URls at once with single click. Also supports delay in opening URls. Open multiple URls at once with single click. You can also add delay in opening each url.

Thanks for your answers they've helped me a lot but for me i could not wait for the webView to finish loading beacause this would be to slow to control multiple ESP8266 Modules.

I've used an array of webViews to load the urls in a short time period.

colorPickerView.setColorListener(ColorListener { color, _ ->
    brightness = seekBar.progress

    r = (Color.red(color)*brightness)/255
    g = (Color.green(color)*brightness)/255
    b = (Color.blue(color)*brightness)/255

    val hex = "#" + Integer.toHexString(color)


    for (i in Devices.deviceIP.indices) {
        if (Devices.switch[i]) {
            url = "http://${Devices.deviceIP[i]}/?r${r}g${g}b${b}&"
            wvRGB[i].settings.javaScriptEnabled = true
            wvRGB[i].loadUrl(url)
            //Toast.makeText(this@RGBActivity, "${Devices.deviceIP[i]}", Toast.LENGTH_SHORT).show()
        }
    }

})

Open Multiple URL, Free tool to Open Multiple URL, Open Multiple Links, Multi URL Opener, Bulk Links Opener SEO experts may need to check the page speed, simultaneous connections, site load time, and other How can I get the Web sites to show in tabs? Open a whole list of URLs at the same time! Paste URLs into the field below and press Submit. Press Open All (which will appear) to pop up all the websites at once, or open each URL individually. We recommend setting your browser to open new windows in tabs (here's how).

Open Multiple Web Sites At Once With A Single Click, How good it is if you can open all these web sites together with a single click from The trick to create a desktop script which can open multiple URL's in your the following into it and replace the site name/URL with the ones you want to load. Hi I have a array of urls which I want to load in the same browser window one by one. For now I am able to load a single url in a browser window using. window.location = url; But when I put this window.location in a function and call that function infinitely in a loop with some delay the page just keeps on loading and nothing gets displayed.

Open Multiple URLs – Get this Extension for 🦊 Firefox (en-US), How are you enjoying Open Multiple URLs? Log in to rate this extension. This way we can apply the query to each URL in a list of all the URL’s. Head to the Data tab in the ribbon and press the From Web button under the Get & Transform section. If you’re working with Excel 2013 or earlier via the add-in, then this will be found under the Power Query tab. Enter the URL and press the Ok button.

How to open Multiple URLs in one Click Easiest Way, There have also some add-ons for the browser to open URLs. Using this extension user can Duration: 1:30 Posted: Mar 6, 2016 So with that said there are multiple ways to fix this. The most useful one is to setup 301 redirects for every option and redirect the user to the one you want to use. This way even if an outside source links to one of the variations google will go through that link, hit the redirect, and see the final URL and use that for ranking.

Comments
  • What is wv_rgb?
  • Yes wv_rgb is a WebView
  • and than call onPageFinished()(as stated by ... One can not call onPageFinished(). It's an event. One can override it and place code in it which is executed ... when the page is finished.