Julenissen Posted September 22, 2016 Share Posted September 22, 2016 Hi everyone Since this is my first post on this forum, feel free to send me any notes regarding wrong topic, using forbidden words etc. This is my first day with AutoIT, so don't be surprised if the soultion of my problem might be pretty simple ;p So far I have tried my best with C++ so I am not a total newbie at scripting (I guess...) I am currently working on a simple script that opens web browser and then specific website (with weather forcasts). I would like to use WinMove function in order to click the right spots on the website via MouseClick function and thus generating a right forecast. I have tried the script on Google Chrome and it works like charm, but when I tried to move web browser window via WinMove script didn't react at all, only the part with running IE and mouse clicking worked. Does anyone might have a clue what could be the reason for that? Below you can find the script PS. Don't worry to run it. It's Polish website run by on of the universities so no viruses included ;p You can change the display language to English. Run ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe ""http://www.meteo.pl/""") WinWaitActive("METEO.PL - Google Chrome","",10) WinMove ( "METEO.PL - Google Chrome", "", 0, 0, 960, 1040 ) MouseClick("", 164, 492, 1) Sleep(1000) MouseClickDrag("", 944, 425, 944, 599) Sleep(1000) MouseClick("", 785, 589, 1) Sleep(1000) WinMove ( "Meteorogramy - meteorograms - Google Chrome", "", 960, 0, 960, 1040 ) Sleep(10000) Run ("C:\Program Files\Internet Explorer\iexplore.exe ""http://www.meteo.pl/""") WinWaitActive("METEO.PL - Windows Internet Explorer","",10) WinMove ( "METEO.PL - Windows Internet Explorer", "", 960, 0, 960, 1040 ) MouseClick("", 0, 0, 1) Sleep(1000) MouseClickDrag("", 944, 425, 944, 599) Sleep(1000) MouseClick("", 0, 0, 1) Sleep(1000) WinMove ( "Meteorogramy - meteorograms - Windows Internet Explorer", "", 960, 0, 960, 1040 ) I would be very grateful for any advice. Cheers Paul Link to comment Share on other sites More sharing options...
Julenissen Posted September 22, 2016 Author Share Posted September 22, 2016 As I mentioned script works fine for Google Chrome, but I only mentioned it in the title that the browser which causes problems is Internet Explorer. I can't edit the post so I write it here Link to comment Share on other sites More sharing options...
JohnOne Posted September 22, 2016 Share Posted September 22, 2016 Sounds like a problem where supplying your OS (version, arch), IE version, AutoIt version, will help someone, who might be able to help you. Julenissen 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted September 22, 2016 Share Posted September 22, 2016 But as a guess, try adding this to top of script, then you can look it up if you cannot deduce what it does. #AutoIt3Wrapper_UseX64=y Julenissen 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Bert Posted September 22, 2016 Share Posted September 22, 2016 There is a better way to approach this. Most weather services use airport codes or zip codes for locations. I don't have time at the moment but I remember seeing something like that in this forum somewhere when someone made a weather app. Use the search function and I bet you can find it. cheers! -Bert Julenissen 1 The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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