Sign in to follow this  
Followers 0
Hidden

[Noob] ControlClick

9 posts in this topic

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



#2 ·  Posted (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 by Qousio

Share this post


Link to post
Share on other sites

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

#4 ·  Posted (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 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

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

#6 ·  Posted (edited)

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

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

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

Share this post


Link to post
Share on other sites

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