ashley Posted December 7, 2007 Posted December 7, 2007 ok well i know how to read how many player but not a whole table...here my code the amount of players.#include <INet.au3> Global $sStart = 'alt="RuneScape"><br>\n', $sEnd = '\n<iframe style="' $sHTML = _INetGetSource('http://www.runescape.com/title.ws') $aArray = StringRegExp($sHTML,'(?s)' & $sStart & '(.*?)' & $sEnd, 3) MsgBox(0,"Runescape",$aArray[0])right if you go to www.runescape.com it says the playes online there...if you click play runescape and then on high/low detail there is a table... how would i read that...and is it possible to put this in a listvies table too. Free icons for your programs
Moderators big_daddy Posted December 14, 2007 Moderators Posted December 14, 2007 If you have the page with the servers table open, this will get the info you're looking for. #include <IE.au3> #include <Array.au3> $sURL = "http://www.runescape.com/" _IEErrorHandlerRegister() $oIE = _IEAttach($sURL, "URL") $oFrame = _IEFrameGetCollection($oIE, 0) $oTables = _IETableGetCollection($oFrame) For $oTable In $oTables If String($oTable.className) = "server" Then $oServerTable = $oTable ExitLoop EndIf Next $aArray = _IETableWriteToArray($oServerTable, 1) _ArrayDisplay($aArray)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now