Lambort Posted October 23, 2006 Share Posted October 23, 2006 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.comIts the "Play Live" button. Link to comment Share on other sites More sharing options...
Lambort Posted October 24, 2006 Author Share Posted October 24, 2006 anyone?? Link to comment Share on other sites More sharing options...
jinxter Posted October 24, 2006 Share Posted October 24, 2006 PixelSearch () ? > there are 10 types of people in the world, those who understand binary and those who don't. Link to comment Share on other sites More sharing options...
Lambort Posted October 24, 2006 Author Share Posted October 24, 2006 PixelSearch () ?How can i pixelsearch in an IE window and press the "Play Live" button? Link to comment Share on other sites More sharing options...
jinxter Posted October 24, 2006 Share Posted October 24, 2006 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. Link to comment Share on other sites More sharing options...
Lambort Posted October 24, 2006 Author Share Posted October 24, 2006 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?? Link to comment Share on other sites More sharing options...
jinxter Posted October 24, 2006 Share Posted October 24, 2006 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. Link to comment Share on other sites More sharing options...
Lambort Posted October 24, 2006 Author Share Posted October 24, 2006 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? Link to comment Share on other sites More sharing options...
jinxter Posted October 24, 2006 Share Posted October 24, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now