Hidden Posted May 10, 2009 Posted May 10, 2009 Hey... So I am trying get my script to click a certain location in Mozilla Firefox, on a Flash Game. The aim is for it to click at a certain location while the window is minimized but I'm just getting nothing. My current script: While 1 ControlClick("[CLASS:MozillaWindowClass INSTANCE:7]", "left", 1, 411, 231) Sleep(1300) Wend I have also tried While 1 ControlClick("Title - Mozilla Firefox", "left", 411, 231) Sleep(1300) Wend Could anyone please steer me in the right direction?
Qousio Posted May 10, 2009 Posted May 10, 2009 (edited) Hey... So I am trying get my script to click a certain location in Mozilla Firefox, on a Flash Game. The aim is for it to click at a certain location while the window is minimized but I'm just getting nothing. My current script: While 1 ControlClick("[CLASS:MozillaWindowClass INSTANCE:7]", "left", 1, 411, 231) Sleep(1300) Wend I have also tried While 1 ControlClick("Title - Mozilla Firefox", "left", 411, 231) Sleep(1300) Wend Could anyone please steer me in the right direction? Try this: ControlClick(">Title of Mozzila window here<", "", "[CLASS:MozillaWindowClass INSTANCE:7]", "left", 1, 411, 231) Edited May 10, 2009 by Qousio
Hidden Posted May 10, 2009 Author Posted May 10, 2009 Try this: ControlClick(">Title of Mozzila window here<", "", "[CLASS:MozillaWindowClass INSTANCE:7]", "left", 1, 411, 231) Tried and nothing. I thought it might be that the Coords were wrong, so I set it on the Position indicated by The Window Info I set it on the Controlclick Coords And I used paint to get the coords on the screen. None worked. It just doesn't actually do anything...
Qousio Posted May 10, 2009 Posted May 10, 2009 (edited) Tried and nothing.I thought it might be that the Coords were wrong, so I set it on the Position indicated by The Window InfoI set it on the Controlclick CoordsAnd I used paint to get the coords on the screen. None worked. It just doesn't actually do anything...Could you show me a screenshot of your Au3info tool ? Then I could tell you for sure.(Obviously you must hover it over the right class) Edited May 10, 2009 by Qousio
Hidden Posted May 10, 2009 Author Posted May 10, 2009 Could you show me a screenshot of your Au3info tool ? Then I could tell you for sure.(Obviously you must hover it over the right class)Sure. Here you go.
z0mgItsJohn Posted May 10, 2009 Posted May 10, 2009 (edited) try using only the first three parameters ControlClick ( "title", "text", controlID) Edited May 10, 2009 by John2006 Latest Projects :- New & Improved TCP Chat
Hidden Posted May 10, 2009 Author Posted May 10, 2009 try using only the first three parameters ControlClick ( "title", "text", controlID)John, I get no ID or Text.Here's the pic.
Authenticity Posted May 10, 2009 Posted May 10, 2009 ControlClick('[CLASS:MozillaUIWindowClass]', '', 'MozillaWindowClass7', 'left', 1, 365, 240)
Hidden Posted May 10, 2009 Author Posted May 10, 2009 ControlClick('[CLASS:MozillaUIWindowClass]', '', 'MozillaWindowClass7', 'left', 1, 365, 240) Woo. That works. Thank you
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