meorno1 Posted August 19, 2011 Share Posted August 19, 2011 Hi , am looking to make some scirpt that search for some number between strings in html source of pages . how can i do that using ff.au3 script without saving the page to my disk and then search for the number example source text Env={user:55555555,locale: i want to get the number only . Link to comment Share on other sites More sharing options...
hannes08 Posted August 19, 2011 Share Posted August 19, 2011 I don't know about ff.au3, but if you've got the text you can use _StringBetween() to get your numbers. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
meorno1 Posted August 19, 2011 Author Share Posted August 19, 2011 I don't know about ff.au3, but if you've got the text you can use _StringBetween() to get your numbers.yes sure this function will help but i want some way to search in html source of page is there any way faster to make this function run in html page without saving the page Link to comment Share on other sites More sharing options...
water Posted August 19, 2011 Share Posted August 19, 2011 Did you have a look at the _FFReadHTML or _FFReadText might do what you need. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
smartee Posted August 19, 2011 Share Posted August 19, 2011 yes sure this function will help but i want some way to search in html source of page is there any way faster to make this function run in html page without saving the pageYou can try this to get the page source $sSource = BinaryToString(InetRead("http://www.google.com")) Link to comment Share on other sites More sharing options...
hannes08 Posted August 19, 2011 Share Posted August 19, 2011 You can try this to get the page source $sSource = BinaryToString(InetRead("http://www.google.com")) Then you can combine: $a_result = _StringBetween(BinaryToString(InetRead("http://yourpage.com"), "Env={user:", ",locale:") Note, that _stringBetween returns an array. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
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