Jump to content

Close page when page open i chrome - (Moved)


Recommended Posts

Hello,

I have a problem. I try to create autoit script:

when page "www.test.com/qwertyuiop/" open in Google Chrome

then wait 5 sec and close page 

 

Something like this will be good?

 

Run('C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"')                   
Sleep(5000) 
if 
ShellExecute("http://www.google.com")
then sleep(5000)
Send( "^w" )

 

Edited by Elvis439_PL
Link to comment
Share on other sites

  • Developers
5 minutes ago, Elvis439_PL said:

Something like this will be good?

Have you tried and did it work?

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

Is there a reason you are using chrome specifically? There is a whole UDF ready to go for internet explorer. 

Otherwise if you really need chrome I would suggest spending some time reading and understanding how to use this. 

 

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...