Got it.Yincognito wrote: ↑May 22nd, 2024, 8:26 am Didn't test the code, but:
- Update=-1 is just as speedy as Update=1000 in terms of data retrieval and webparsing, the only difference is the frequency of updating (once vs periodically)
- you're only enabling the ProductN groups in the FinishActions, you need to also update those measure groups and optionally meters coupled with redrawing the skin, in order to display stuff immediately as soon as data is retrieved (this might be the cause of the perceived "slowness")
- you're commanding all 5 ProductN measures to update at roughly the same time, so apart from some being a few ms behind others in retrieval, this should normally happen more or less concurrently (i.e. at the same time) and be faster than the same done sequentially (i.e. one after the other has finished)
- no, there isn't a group bang for commanding measures, but, if you find a way to retrieve multiple product data via the query string in the site's URL (this typically involves an API offering that, and might not be free), then you should be able to use a single request to retrieve multiple product data
P.S. If you want to make the commanding measure chain more automated and compact, you could use something like:and then simply use [CommandBangs] instead of [!CommandMeasure Product1 Update][!CommandMeasure Product2 Update][!CommandMeasure Product3 Update][!CommandMeasure Product4 Update][!CommandMeasure Product5 Update] when needed. You could even store the "1,2,3,4,5," as a variable and use it as the value of the above String option, for ease of use by editing the said variable.Code: Select all
[CommandBangs] Measure=String String=1,2,3,4,5, RegExpSubstitute=1 Substitute="(\d+),":"[!CommandMeasure Product\1 Update]"
Yup, I have the finish actions so they update the meters only after the images have been downloaded. So well, it makes sense, I guess I'll have to get used to the "slowness" (well, it takes like 5 seconds to load, it does it one by one, I guess it's fine then).
Ingenious! I like that idea, I'll have to test it, thank you.
Yup, I'm aware of that. I read the multiple guides on the documentation it just doesn't say anything about Update=-1 scenarios, hence my confusion.balala wrote: ↑May 22nd, 2024, 3:45 pm Just to clarify a thing: the meters have to be updated and the skin has to be redrawn, however the WebParser child measures is enough to be enabled. Not absolutely needed to update them, even if this seems little bit illogical. I1m not talking about slowness / quickness, I'm talking strictly about if they have or not to be updated, in order to retrieve the proper information. When enabling them, they are updated. Obviously not a problem if you update them, but strictly speaking, there is no need for this.
I'm still doubtful about how updating them works tho, for example, my update bangs are on the images finish actions. So meters will update only after images have been downloaded. So, are images downloaded on every CommandMeasure Update ? Or only on the first load and refresh? If that's the case, are the update bangs triggered anyway?