Jump to content

Posible to finde the ControlCords by function?


Recommended Posts

Hello I'm trying to make a littel program to automaticly try and connect to a Garena room.

Thou problem is I don't want to use my actually mouse so I'm useing ControlClick function.

Here the problem, it's not always the same room I want to enter so I want to be able to just hit a hotkey and set the cords that way.

If it's posible with ControlListView to finde the cords of the selected item thats fine too.

Anyone ideas?

So far my alternative is to resize the window useing ControlMove and then ControlSend to move up and down.

I know:

The rooms I useally want to enter is (103,104,105,106,107,108,109,110)

Meaning I could do:

$WS = ControlGetPos("[CLASS:SkinWindow]", "", "GG_LISTVIEW4")
ControlMove("[CLASS:SkinWindow]", "", "GG_LISTVIEW4", 0,0, $WS[2], 60)

and then use

ControlSend("[CLASS:SkinWindow]", "", "GG_LISTVIEW4", "{Down}") 

'till the right

ControlListView("[CLASS:SkinWindow]", "", "GG_LISTVIEW4", "GetSelected")

I've triet to use

Opt("MouseCoordMode", 2)

but when lineing it up with the "AutoIt Windows Info", it ain't showing the same cords.

Edited by Qvintus
Link to comment
Share on other sites

Well it's not a game, it's a virtual connection maker or so, you login to their client, select a room and open your game.

It's not a game in it's self.

But some rooms are populated and as theres a limit on 225 people connecting to rooms I can take a while of retrys to connect.

Does it count as game automating?

Edited by Qvintus
Link to comment
Share on other sites

OK then.... Did you set clients coordinates for Au3Info too? Otherwize it's no wonder the coords don't match.

Edit: Don't know, but based on the information so far this is my only suggestion.

Edited by AdmiralAlkex
Link to comment
Share on other sites

Not sure what you mean?, I'm useing the ControlClick Coords?

They don't seem to change if I'm changeing mode

EDIT:

Let me try ask a diffrent way, I want to figure out what the ControlClick Cords is for:

ControlListView("[CLASS:SkinWindow]","","GG_LISTVIEW4", "GetSelected")

That's posible with fx.

ControlGetPos("", "" ,ControlListView("[CLASS:SkinWindow]","","GG_LISTVIEW4", "GetSelected"))

Or something?

Edited by Qvintus
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...