Jump to content

Recommended Posts

Posted

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 ^_^

Posted (edited)

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

Posted

the game I'm talking about is not a browsergame

IE.au3 as far as I know is for the Internet-Explorer.

So what could the Ineternet-Explorer do about a game with real client?

Thanks anyway for your reply

Posted

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

Posted

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

Posted

oh thank you dude!!!!

I think it should work (no time to test it now)

Thank you a 1000 times!

i will post wheather it worked or not!

sounds like me when I first got helped by Gary Frost...lol

8)

NEWHeader1.png

Posted

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?

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
×
×
  • Create New...