Valnurat Posted November 9, 2020 Posted November 9, 2020 Hi. Is it possible to load a webpage then add some custom metadata for searching and then reload the same webpage and then use the result for further action and can it be done without showing the webpage? I'm trying to search for specific trips on sas.se Yours sincerely Kenneth.
Nine Posted November 9, 2020 Posted November 9, 2020 Could be or maybe not. Hard to say with the information you just provided. How about posting some code or at least give a detailed path to what you want to achieve ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Valnurat Posted November 9, 2020 Author Posted November 9, 2020 (edited) Right now, I don't have any code. I was just nosy to see is it was possible. I was just thinking like as want to do with out any code: Open sas.dk Add my search criteria Reload sas.dk Do more code to find the trips I want. It seems you of course can use the Local $oIE = _IECreate("http://www.sas.dk"), but then you have the GUI. So if this is possible, maybe I can be directed to the command that I start with load the webpage without any GUI. Edited November 9, 2020 by Valnurat Yours sincerely Kenneth.
Nine Posted November 9, 2020 Posted November 9, 2020 What are the criteria that you would enter ? What would be the criteria that you would retrieve after that ? What will you do with the values retrieve : show that in a GUI ? All that seems quite doable with IE UDF. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Valnurat Posted November 9, 2020 Author Posted November 9, 2020 Search criteria like: From: cph To: las and then a date from and to and 2 adult. Yours sincerely Kenneth.
Nine Posted November 9, 2020 Posted November 9, 2020 Here to start you up, you will need to read the values of the return criteria. #include <IE.au3> Local $sOrigin = "CPH", $sDest = "EWR", $sDepart = "20201112", $sReturn = "20201127", $iAdult = 2 Local $sURL = "https://www.sas.dk/book/flights?search=RT_" & $sOrigin & "-" & $sDest & "-" & $sDepart & "-" & $sReturn & "_a" & $iAdult & _ "c0i0y0&view=upsell&bookingFlow=revenue&sortBy=stop,stop" Local $oIE = _IECreate($sURL) I use EWR since las doesn't seem to be a valid entry... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Valnurat Posted November 12, 2020 Author Posted November 12, 2020 Yes, that helped a lot. Thank you. Yours sincerely Kenneth.
Valnurat Posted November 12, 2020 Author Posted November 12, 2020 In connection with this I noticed that a popup is appearing before I can do more. I would like to check if the "style" in green is "display: block;" then I need to press the OK button in the black arrow. How is that done? Yours sincerely Kenneth.
Nine Posted November 12, 2020 Posted November 12, 2020 Please provide the code that generate this, it will help us to give you appropriate help without writing script from scratch. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Valnurat Posted November 12, 2020 Author Posted November 12, 2020 It isen't much: #include <IE.au3> Local $sOrigin = "CPH", $sDest = "EWR", $sDepart = "20210116", $iAdult = 2 Local $sURL = "https://www.sas.dk/book/flights?search=OW_" & $sOrigin & "-" & $sDest & "-" & $sDepart & "_a" & $iAdult & _ "c0i0y0&view=upsell&bookingFlow=points&sortBy=stop&filterBy=all" Local $oIE = _IECreate($sURL) Yours sincerely Kenneth.
Nine Posted November 12, 2020 Posted November 12, 2020 Here, but please next time, try to attempt something before asking for help. Thanks. #include <Constants.au3> #include <IE.au3> Local $sOrigin = "CPH", $sDest = "EWR", $sDepart = "20210116", $iAdult = 2 Local $sURL = "https://www.sas.dk/book/flights?search=OW_" & $sOrigin & "-" & $sDest & "-" & $sDepart & "_a" & $iAdult & _ "c0i0y0&view=upsell&bookingFlow=points&sortBy=stop&filterBy=all" Local $oIE = _IECreate($sURL), $oWarn For $i = 1 To 30 Sleep(100) $oWarn = _IEGetObjById ($oIE,"got-it") If Not @error Then ExitLoop Next If Not IsObj($oWarn) Then Exit MsgBox ($MB_SYSTEMMODAL,"","Unable to get warning screen") $oWarn.click() That works for me... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Valnurat Posted November 12, 2020 Author Posted November 12, 2020 Thank you. I did, but it was not useful. Can I ask what the $oWarn do in this, because I don't see that as an option in the help Local $oIE = _IECreate($sURL), $oWarn Yours sincerely Kenneth.
Nine Posted November 12, 2020 Posted November 12, 2020 On a Local statement, you can list multiple creation of variables. It is just to save lines “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Valnurat Posted November 12, 2020 Author Posted November 12, 2020 Aha, yes of course. Thank you. Yours sincerely Kenneth.
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