![]() ![]() 4) $AllReady = 0 Sleep ( 1000 ) give browsers some time to load data For $i = 1 To $n $AllReady += _IEPropertyGet ( $oIE, "readystate" ) = 4 4 means "ready" finished to load page Next Until $AllReady = $n Return $oIE return pointers to browsers that are all loaded with data now EndFunc =>LoadData ![]() I used a code similar to this (it runs more browser instances): Func LoadData ( $aQuery ) Local $n = UBound ( $aQuery ), $oIE, $AllReady For $i = 1 To $n - 1 $oIE = _IECreate ( " & $aQuery & "&do=Search", 0, 0, 0 ) Next Do Wait for "ready" state of all IE. In short the strange problem I experienced is like this:ġ) I need to get data from several sites and then assemble data in a single report.Ģ) instead of getting data from each site one at time, (that takes longer time) I thought to "parallelize" the data collectionīy running more instances of explorer at once and then get data from the loaded pages (this way reduces waiting time).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |