awallisk Posted September 23, 2018 Share Posted September 23, 2018 Hi there, I am new to scripting and still learning. I google on window scripting and autoIT appear on the search. I am trying to write a script on window to open a chrome browser and go to a particular site and open the site for 15 min in full screen mode and then go to another site and run for 15 min then go back to the previous website in a continuous loop. i go thru the guide and search the forum and all are requesting to use shellexecute. This is what i come out with but it doesn't seem to work. While 1 ;loop indefinitely shellexecute("http://www.google.com","") ;give focus to notepad Sleep(30000) ;sleep 30 seconds shellexecute("http://www.yahoo.com","") ;give focus to wordpad Sleep(30000) ;sleep 30 seconds WEnd Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted September 23, 2018 Share Posted September 23, 2018 (edited) @awallisk Your comments in your code don't represent what your code does. By the way, you could use _IE* functions to open, and set webpages in fullscreen mode. Edited September 23, 2018 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
awallisk Posted September 24, 2018 Author Share Posted September 24, 2018 Hmm... back to the drawing board then ... sigh Link to comment Share on other sites More sharing options...
awallisk Posted September 24, 2018 Author Share Posted September 24, 2018 On 23/09/2018 at 2:38 PM, FrancescoDiMuro said: @awallisk Your comments in your code don't represent what your code does. By the way, you could use _IE* functions to open, and set webpages in fullscreen mode. Hmm... back to the drawing board then Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 24, 2018 Moderators Share Posted September 24, 2018 The point being made above is that you are not explaining what you are trying to accomplish very well. Help us help you, you open the website and then seem to want to give focus to Notepad, then open another site and give focus to Wordpad. What is it you're trying to do with your script? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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