Jump to content
Sign in to follow this  
Qvintus

Posible to finde the ControlCords by function?

Recommended Posts

Qvintus

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

Share this post


Link to post
Share on other sites
Qvintus

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

Share this post


Link to post
Share on other sites
AdmiralAlkex

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

Share this post


Link to post
Share on other sites
Qvintus

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

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.