Jump to content

Recommended Posts

Posted

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

 

Posted
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

  • Moderators
Posted

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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...