MAJORSAM Posted April 22, 2009 Posted April 22, 2009 hi....can anyone say me how to get the information of this page? <td style="padding-top:8px;"><embed src="img/de/swf/statusbar.swf?__cv=6393" FlashVars="baseURL=http%3A%2F%2Fint1.seafight.bigpoint.com&gold=282.743&perlen=650.119&rang=10&ranking=14.086&allowedScriptAccess=always&useronline=34.935&mannschaftswert=11&schiffsschaden=10&erfahrungspunkte=722.915&jackpot=479.6+EUR&userID=258987&sid=b280f71cb85264d217336c668605c85e&lang=de" play="true" loop="true" menu="false" quality="best" width="630" height="30" name="" allowScriptAccess="always" allowNetworking="", swLiveConnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" /></td> i want to have this: userID=258987 can anyone pls help me? its the source displayed when clicking it sry for bad english thx ahead
Authenticity Posted April 22, 2009 Posted April 22, 2009 Dim $sSrc = _IEDocReadHTML($oIE) Dim $aMatch = StringRegExp($sSrc, '(?i)<embed.*?userid=(\d+)', 3)Or get a collection of <embed> and use _IEPropertyGet() with 'innerhtml' or 'outerhtml' (don't know which) and use StringInStr or something.Look here for help, http://msdn.microsoft.com/en-us/library/ms...28VS.85%29.aspx
goldenix Posted April 22, 2009 Posted April 22, 2009 (edited) This is how I do it. PS: _arraydisplay lines are just so you can understand how it works. just edit the URL & it should work split[2] = row 2 split[1] = row 1 in the array #include <INet.au3> #include <Array.au3> $HTMLSource = _INetGetSource('www.autoitscript.com') $_Arrayline = StringSplit($HTMLSource, @LF) ; this is the Array $_Arrayline for $i = 1 to $_Arrayline[0] If StringInStr($_Arrayline[$i],'EUR&userID=') Then _sample() ; search source for image links Next Func _sample() $split = StringSplit($_Arrayline[$i],'EUR&userID=',1) ; split line to get DL URL Middle & Right part [ URL SGFDG ] _ArrayDisplay($split,'') $split = StringSplit($split[2],'&',1) ; 3 split $split[2] to get Final page URL [ URL ] _ArrayDisplay($split,'') $DL_Link = $split[1] ConsoleWrite($DL_Link & @CRLF) EndFunc Edited April 22, 2009 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
MAJORSAM Posted April 22, 2009 Author Posted April 22, 2009 This is how I do it. PS: _arraydisplay lines are just so you can understand how it works. just edit the URL & it should work split[2] = row 2 split[1] = row 1 in the array #include <INet.au3> #include <Array.au3> $HTMLSource = _INetGetSource('www.autoitscript.com') $_Arrayline = StringSplit($HTMLSource, @LF) ; this is the Array $_Arrayline for $i = 1 to $_Arrayline[0] If StringInStr($_Arrayline[$i],'EUR&userID=') Then _sample() ; search source for image links Next Func _sample() $split = StringSplit($_Arrayline[$i],'EUR&userID=',1) ; split line to get DL URL Middle & Right part [ URL SGFDG ] _ArrayDisplay($split,'') $split = StringSplit($split[2],'&',1) ; 3 split $split[2] to get Final page URL [ URL ] _ArrayDisplay($split,'') $DL_Link = $split[1] ConsoleWrite($DL_Link & @CRLF) EndFunc i tried this, but nothing happens....is there a way to make a msg box wit the userID auto it wrote out of sorce? i tried that way: MsgBox(4096,"Kontostandt","Dein Kontostand:" & $DL_Link)
goldenix Posted April 22, 2009 Posted April 22, 2009 (edited) the problem was the way data is placed in the source code: in autoit forum its placed differently, this wy we cant find EUR&userID= - wont work cuz we have & in the string, so try to trim this to UserID= & it will work.Make sure it will exit the loop, we dont need to search the leftover code in this example#include <INet.au3> #include <Array.au3> $HTMLSource = _INetGetSource('http://www.autoitscript.com/forum/index.php?showtopic=93693') $_Arrayline = StringSplit($HTMLSource, @LF) ; this is the Array $_Arrayline for $i = 1 to $_Arrayline[0] If StringInStr($_Arrayline[$i],'userID=') Then _sample() ; search source for image links ExitLoop ; make sure its exits the loop hire !!!! we do not need to search the remining code EndIf Next Func _sample() $split = StringSplit($_Arrayline[$i],'userID=',1) ; split line to get DL URL Middle & Right part [ URL SGFDG ] _ArrayDisplay($split,'') $split = StringSplit($split[2],'&',1) ; 3 split $split[2] to get Final page URL [ URL ] _ArrayDisplay($split,'') $DL_Link = $split[1] MsgBox(4096,"Kontostandt","Dein Kontostand:" & $DL_Link) EndFunc Edited April 22, 2009 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
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