Jump to content
Sign in to follow this  
Darknight1366

Why doesn't it work?

Recommended Posts

Darknight1366

ShellExecute("C:\Program Files\Mozilla Firefox\Firefox.exe") ; Working fine
Winwaitactive("Mozilla Firefox" , "Google")
Send("Wow") ;doesn't work


Visit HugeSoft(TM) To Get Any Coding Help or Anything

Share this post


Link to post
Share on other sites
lowray1975

You need to change the WinTextMatchMode or be more exact. The following works perfectly:

Opt("WinTextMatchMode", 2) 
ShellExecute("C:\Program Files\Mozilla Firefox\Firefox.exe") ; Working fine 
Winwaitactive("Mozilla Firefox")
Sleep(5000)
Send("Wow")

More importantly, check out either IE.au3 (included with the AutoIT download) or ff.au3. Both allow you to control the browser via code.

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  

×