meorno1 Posted August 19, 2011 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 .
hannes08 Posted August 19, 2011 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]
meorno1 Posted August 19, 2011 Author 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
water Posted August 19, 2011 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
smartee Posted August 19, 2011 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"))
hannes08 Posted August 19, 2011 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]
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