Jump to content

Recommended Posts

Posted

How can I make my program click/press enter on a button in an IE window when the IE window is hidden?

It isn't an image file so it's not as easy as I hoped, it's a button made in flash.

You can see it here: http://gunbound.ijji.com

Its the "Play Live" button.

Posted

maybe this will work? site is blocked here (as is most gamerelated sites), so I can't verify. you have to change the name of the window title in winwaitactive() and the x,y values in mouseclick().

run(@ProgramFilesDir&"\internet explorer\iexplore.exe http://gunbound.ijji.com","",@SW_MAXIMIZE)
WinWaitActive("gunbound","")
MouseClick("left",x,y)

> there are 10 types of people in the world, those who understand binary and those who don't.

Posted

maybe this will work? site is blocked here (as is most gamerelated sites), so I can't verify. you have to change the name of the window title in winwaitactive() and the x,y values in mouseclick().

run(@ProgramFilesDir&"\internet explorer\iexplore.exe http://gunbound.ijji.com","",@SW_MAXIMIZE)
WinWaitActive("gunbound","")
MouseClick("left",x,y)
This won't work for all resolutions though will it? Because I entend for some friends to use this too. I may have to stick with the pixel thing??
Posted

to make it work in all resolutions you probably be better of with pixelsearch(). allthough you could do a check for resolution and press the button accordingly.

> there are 10 types of people in the world, those who understand binary and those who don't.

Posted

to make it work in all resolutions you probably be better of with pixelsearch(). allthough you could do a check for resolution and press the button accordingly.

Yeah man, I'll probably do some resolution check-box type thing, so many pixel colors are the same on that page. Is it possible to get the mouse to click the specified point in a hidden IE window?

Posted

mouse click in hidden window ? might be hard to do as it is actually moving the mouse pointer to the location and presses, if the window isn't visible it'll just click 'in thin air'. controlsend() is something to look at though, maybe you can send a keypress instead ?

> there are 10 types of people in the world, those who understand binary and those who don't.

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
  • Recently Browsing   0 members

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