Jump to content
Sign in to follow this  
Hidden

[Noob] ControlClick

Recommended Posts

Hidden

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?

Share this post


Link to post
Share on other sites
Qousio

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 by Qousio

Share this post


Link to post
Share on other sites
Hidden

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

Share this post


Link to post
Share on other sites
Qousio

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

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 by Qousio

Share this post


Link to post
Share on other sites
Hidden

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.

Share this post


Link to post
Share on other sites
z0mgItsJohn

try using only the first three parameters

ControlClick ( "title", "text", controlID)

Edited by John2006

Latest Projects :- New & Improved TCP Chat

Share this post


Link to post
Share on other sites
Hidden

try using only the first three parameters

ControlClick ( "title", "text", controlID)

John, I get no ID or Text.

Here's the pic.

post-22118-1241940914_thumb.jpg

Share this post


Link to post
Share on other sites
Authenticity

ControlClick('[CLASS:MozillaUIWindowClass]', '', 'MozillaWindowClass7', 'left', 1, 365, 240)

Share this post


Link to post
Share on other sites
Hidden

ControlClick('[CLASS:MozillaUIWindowClass]', '', 'MozillaWindowClass7', 'left', 1, 365, 240)
Woo. That works. Thank you :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.