Sign in to follow this  
Followers 0
Lambort

Press a flash button?

9 posts in this topic

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.

Share this post


Link to post
Share on other sites



anyone??

Share this post


Link to post
Share on other sites

PixelSearch () ?


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

Share this post


Link to post
Share on other sites

PixelSearch () ?

How can i pixelsearch in an IE window and press the "Play Live" button?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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??

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

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  
Followers 0