Jump to content
Sign in to follow this  
NewChild

Making autoit target a specific windows

Recommended Posts

NewChild

I've gotten everything set up, no errors, but the only thing is that it doesn't work on Internet Explorer. 

Opt("WinTitleMatchMode", 2)
$handle = WinGetHandle("Windows Internet Explorer")
$cId = "[CLASS:Internet Explorer_Server; INSTANCE:1]"
$on = False
 
While 1
   
While $on = True
Sleep(1500)
ControlClick($handle, $cId, "Left",  1, 552, 47)
 
That's what I have to start off, I have internet explorer minimzed, full screened, it doesn't do a single click.
 
The thing i want to do is make it go to a specific windows, in this case it's Internet Explorer, having it working in the background I can go play games and stuff, but it doesn't work, any help?

Share this post


Link to post
Share on other sites
DW1
ControlClick($handle, $cId, "Left",  1, 552, 47)
 
That's what I have to start off, I have internet explorer minimzed, full screened, it doesn't do a single click.

 

Again, you are missing a required parameter in the ControlClick function.  $cId is where the "Text" parameter should be.  LIkely, you just want this to be blank since you are using a handle, so just enter "", or '' for the text parameter between $handle and $cId.

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  

×