Jump to content

Problems with ControlClick


Recommended Posts

Hi, I'm new here in this forum but actually not new with AutoIt

I'm working on a project for an online game called Metin2

what I now want to do is sending keys to the game although it's minimized.

So I use of course ControlClick

Everything went fine so far with other applications, so I could for example send clicks to my explorer with ControlClick

but whenever I want to send some clicks to this game, it doesn't click the coords i told the script, but it clicks just there, where the mouse was last

so everything works fine but the coords -.-

ControlClick ("METIN2","","","left",1,300,100)

This is the code as I use it at the moment

I know that I normally must fill in the parameter ControlId, but when I scan the game with the AutoIt3 - Window Info Tool, it just doesn't show me the things usually standing under "Control"

so the tool returns just:

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle: 0x000B050E

Is there a way to find the other things, the info-tool doesn't show

or what can I do to get this working?

I would appreciate your help

PS: sorry for my (maybe) bad englisch, I'm german ^_^

Link to comment
Share on other sites

Because this is an "Internet" game. You need to learn about IE.au3 Functions.

Start with _IECreate() in the help file. There are great examples at the bottom of the page

This is one of the only ways to create actions without the window being active.

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

have you checked if the window's title is right?

yep

it clicks into the hidden window, but it doesn't click on the coords i told the script; it just clicks where the mouse had been, when i minimized the window

Link to comment
Share on other sites

Sorry, with no info and all the "Internet" game players, I thought yours was too ( I don't play those )

MouseCoordinatesMode is an "Option" that can be set for the "Client" window. However there is not enough info to get the controls, etc.

8)

NEWHeader1.png

Link to comment
Share on other sites

hmm, just tried it out

and it doesn't seem to work

not even with the Mozilla Firefox Explorer

so where is the problem?

here my code:

_MouseClickPlus ("[CLASS:MozillaUIWindowClass]","left",0, 0,10)

the winhandle should be alright, as

[CLASS:MozillaUIWindowClass]

returns the real handle of mozilla firefox

when I try _MouseClickPlus in the game I want to use it for, it has same effect as ControlClick (it clicks, but not the right coords)

so where is the problem?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...