Jump to content

Eggie6

Members
  • Posts

    11
  • Joined

  • Last visited

Eggie6's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, I'm trying to write an formula to the excel, but it actually does not write anything into the cell, any ideas? $formula1="=MID(B"&$utakmice&",SEARCH("-",B"&$utakmice&")-1,1)" _Excel_RangeWrite($oWorkbook, $oWorkbook.Activesheet, $formula1, "C"&$smth)
  2. Hi all, I have a script #include <IE.au3> Local $oIE = _IEAttach("anythinghere") $tags = $oIE.document.GetElementsByTagName("div") $oCollection = $oIE.document.getElementsByClassName("x-panel-btn-td") MsgBox(0, "", $oCollection.length) which shows 8 results, how can i see what those results are, and i need also to get ID of 4th in a row of them Please help
  3. and i've got same outcome... ; find the line that has the search string $txt = StringRegExpReplace(FileRead("stat.txt"), '\s{2,}', @crlf) ;Msgbox(0,"", $txt) ; for preview $array = StringSplit($txt, @crlf, 1) ;_ArrayDisplay($array) ; for preview $goalattempts="" $BallPossession="" $ShotsonGoal="" $ShotsoffGoal="" For $p = 1 to $array[0] If StringInStr($array[$p], "Goal Attempts") Then $goalattempts = $array[$p-1] Else EndIf If StringInStr($array[$p], "Ball Possession") Then $BallPossession = $array[$p-1] Else EndIf If StringInStr($array[$p], "Shots on Goal") Then $ShotsonGoal = $array[$p-1] Else EndIf If StringInStr($array[$p], "Shots off Goal") Then $ShotsoffGoal = $array[$p-1] Else EndIf If $BallPossession <> "" Then MsgBox(1,"", "Ball possession HT" & ': ' & $BallPossession & @LF & "Goal attempts HT" & ': ' & $goalattempts & @LF & "Shots on Goal HT" & ': ' & $ShotsonGoal & @LF) EndIf Next nvm, i just had to put msgbox outside of loop... :S
  4. i did not find a way.... (flashscore.com)
  5. Hi, i have this script For $iii=1 To _FileCountLines("stat.txt") $sLine = FileReadLine("stat.txt",$iii) $GAhti = $iii - 3 $GAati = $iii + 3 $BPhti = $iii - 3 $BPati = $iii + 3 $SOGhti = $iii - 3 $SOGati = $iii + 3 $SOThti = $iii - 3 $SOTati = $iii + 3 $BShti = $iii - 3 $BSati = $iii + 3 If StringInStr($sLine,"Goal Attempts") <> 0 Then $GAht = FileReadLine("stat.txt",$GAhti) $GAat = FileReadLine("stat.txt",$GAati) EndIf If StringInStr($sLine,"Ball Possession") <> 0 Then $BPht = FileReadLine("stat.txt",$BPhti) $BPat = FileReadLine("stat.txt",$BPati) EndIf If StringInStr($sLine,"Shots on Goal") <> 0 Then $SOGht = FileReadLine("stat.txt",$SOGhti) $SOGat = FileReadLine("stat.txt",$SOGati) EndIf If StringInStr($sLine,"Shots off Goal") <> 0 Then $SOTht = FileReadLine("stat.txt",$SOThti) $SOTat = FileReadLine("stat.txt",$SOTati) EndIf If StringInStr($sLine,"Blocked Shots") <> 0 Then $BSht = FileReadLine("stat.txt",$BShti) $BSat = FileReadLine("stat.txt",$BSati) EndIf If $BPht <> "" Then MsgBox(1,"", "Ball possession HT" & ': ' & $BPht & @LF & "Goal attempts HT" & ': ' & $GAht & @LF & "Shots on Goal HT" & ': ' & $SOGht & @LF) EndIf MsgBox(1,"",$GAht) MsgBox(1,"",$SOGht) $GAht = "" $GAat = "" $BPht = "" $BPat = "" $SOGht = "" $SOGat = "" $SOTht = "" $SOTat = "" $BSht = "" $BSat = "" Next ;----------------------------------------------------------------------------- ;----------------------------------------------------------------------------- EndIf _IEQuit($aaaa) Nextin this way, msgbox returns literally empty x times .... if i remove those lower 2 msgboxes, msgbox returns only the string that's in IF .... which means If $BPht <> "" Then returns only $BPht value in msgbox, If $GAht <> "" Then returns only $GAht in msbox, Could you please help me with it?
  6. YEah, but i still need live statistics, which are not available in mobi version WOW, you solved everything right there... i've got all match links now thanks bro
  7. #include <IE.au3> local $aaaa = _IECreate("http://www.flashscore.com/", 0, 1, 1) sleep(3000) Local $oTable = _IETableGetCollection($aaaa) MsgBox(1,"", $oTable) returns nothing for me
  8. I'm trying to get all <tr> id's which are inside <tbody> and have <table class="soccer">
  9. Hi, i've been having trouble with this for the whole day, can anyone help me? website is flashscore.com and i'm trying to get "g_1_QJ7Cu8im" (game link) from elements for the first game inside div, table and everything (right click on first game and inspect elements) thanks in advance
×
×
  • Create New...