Jump to content
Sign in to follow this  
awallisk

opening two website at 15 min interval with autoit in full screen mode

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

@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 by FrancescoDiMuro

Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...