sgtkt Posted January 23 Share Posted January 23 (edited) Hi everyone! I am looking for a way that I can open Firefox and every 5 seconds browse to a new website out of a pool of available websites that I define. Firstly, I am having a really hard time finding the basics using the wedriver udf. Can somebody assist in programming this and defining the best logic of the code? So perhaps using a for loop to choose one website, open the url and then sleep 5 seconds is good? Edited January 23 by sgtkt Link to comment Share on other sites More sharing options...
Developers Jos Posted January 23 Developers Share Posted January 23 (edited) For the second time: Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team Edited January 23 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
argumentum Posted January 23 Share Posted January 23 20 minutes ago, sgtkt said: I am looking for a way that I can open Firefox and every 5 seconds Every 5 seconds !. You'll have to share more than what you have as it has no context or purpose. Share your final goal. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
sgtkt Posted January 23 Author Share Posted January 23 I managed by using regular expressions to extract URLs from a received email. Afterwards I want to open that URLs in the list. I'm just adding a delay so I can see the URLs opening one by one Link to comment Share on other sites More sharing options...
Nine Posted January 23 Share Posted January 23 Look at WD_DEMO.au3, there is a navigation example in it. Start with it, come back if you have problems... “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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Solution argumentum Posted January 23 Solution Share Posted January 23 3 minutes ago, sgtkt said: ..just adding a delay so I can see the URLs opening one by one for $n = 1 to UBound(list) -1 ShellExecute(firefox,"https://link from the list") sleep(5000) ..but that makes little sense. Why would you do that ?. What can you see in 5 seconds ?. How browsers are you going to have open !. You still not sharing your final goal. Not that I care for you to divulge your doings but there may be a better approach to your end goal. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
sgtkt Posted January 31 Author Share Posted January 31 Hello again everyone. I am experimenting a little bit with the IE browser navigation (_IECreate, _IENavigate, _IEQuit). Are there equivalent functions for using the Firefox browser? For example what would be the equivalent for the following code in order to use the Firefox browser: $oIE = _IECreate ("about:blank", 1) _IENavigate ($oIE, "www.mysite.com") _IEQuit($oIE) Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 31 Share Posted January 31 1 hour ago, sgtkt said: Are there equivalent functions for using the Firefox browser? https://www.autoitscript.com/forum/search/?q=FF.au3&quick=1 - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
SOLVE-SMART Posted January 31 Share Posted January 31 (edited) Good point @somdcomputerguy 👍 . You @sgtkt could also have a look into the WebDriver (projekt name "au3WebDriver") wiki page section Browser related functionality. Which means the WebDriver approach can handle all the common Browsers out there. Props to @Danp2, @mLipok and all the other contributors. And last but not least @water for a big documentation part in the wiki. Thanks 😊 . Best regards Sven Edited January 31 by SOLVE-SMART Stay innovative! Spoiler 🌍 Au3Forums 🎲 AutoIt (en) Cheat Sheet 📊 AutoIt limits/defaults 💎 Code Katas: [...] (comming soon) 🎭 Collection of GitHub users with AutoIt projects 🐞 False-Positives 🔮 Me on GitHub 💬 Opinion about new forum sub category 📑 UDF wiki list ✂ VSCode-AutoItSnippets 📑 WebDriver FAQs 👨🏫 WebDriver Tutorial (coming soon) 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