Sign in to follow this  
Followers 0
Fantasyman1919

Control Click Help

9 posts in this topic

#1 ·  Posted (edited)

Title = Chat Open

Class = Button

Instance = 583

ClassnameNN = Button583

Adcanced(Class) = [CLASS:Button; INSTANCE:583]

ID = 2525

Txt = M_????

Position = 755, 667

Size = 51, 19

ControlClick Coords = 51, 15

Style = 0x5000800B

Exstyle = 0x00000004

Handle =0x000606CA

What I am trying to do is make it search for the icon that pops up and open it up. But the Instance, number changes each time but the ID and everything else is the same.

I am trying to get this to work for Eudemons Online

Here is a few examples.

Sleep("4000")

While 1

ControlClick("Eudemons Online","","[iD:2525], left, 1, 51, 19")

if @error then msgbox (1,"error-1","")

Sleep("50")

ControlClick("Eudemons Online","","[CLASS:RICHEDIT; INSTANCE:2]")

if @error then msgbox (1,"error-2","")

Send("5")

WEnd

Or

Sleep("3000")

ControlClick("Eudemons Online", "", "[CLASS:Button; INSTANCE:583]")

For some of the buttons in the game i can just use [CLASS:Button; INSTANCE:583] to get it to work. But when i get a wisper a new box will pop up. I have all the Control info it just wont click it. Any help would really help me out a lot.

Edited by Fantasyman1919

Share this post


Link to post
Share on other sites



This should press the control:

ControlClick("Chat Open","",2525)

Regards

Share this post


Link to post
Share on other sites

I have tried ControlClick("Eudemons Online", "", "[iD:2525]")

ControlClick("Eudemons Online", "", "2525")

ControlClick("Eudemons Online", "", "ID:2525")

And nothing

Share this post


Link to post
Share on other sites

Yes but out of the information that you have posted it seems that the Title isn't "Eudemons Online" but "Chat Open" insted.. maybe that cause the error

Share this post


Link to post
Share on other sites

I have tried ControlClick("Eudemons Online", "", "[iD:2525]")

ControlClick("Eudemons Online", "", "2525")

ControlClick("Eudemons Online", "", "ID:2525")

And nothing

No its Eudemons Online I changed the title window to that.

Share this post


Link to post
Share on other sites

I have tried ControlClick("Eudemons Online", "", "[iD:2525]")

ControlClick("Eudemons Online", "", "2525")

ControlClick("Eudemons Online", "", "ID:2525")

And nothing

No its Eudemons Online I changed the title window to that.

Ok..

I thought this would work:

ControlClick("Eudemons Online", "", "[ID:2525]")

but this is wrong:

ControlClick("Eudemons Online", "", "2525")     ; You could change it to         ControlClick("Eudemons Online", "", 2525)      without quotes :)

- Is it your own program or do you build it in an Object since you could change the Title by your self.. because in the information about the button the title says Chat Open..

Share this post


Link to post
Share on other sites

- Is it your own program or do you build it in an Object since you could change the Title by your self.. because in the information about the button the title says Chat Open..

It doesn't need to be a Object because he changed the name. What do you think WinSetTitle() does?? muttley

Share this post


Link to post
Share on other sites

It doesn't need to be a Object because he changed the name. What do you think WinSetTitle() does?? muttley

Yes offcause it wasn't that I meant.. :)

My point was just that he wanted to ControlClick with another Title as the parameter insted of the one that is actually in the information that he gave us.. and then I am telling him that the problem could might be that the pop up window that he would like to click in might has another Title like Chat Open since it doesn't work with the other title he uses.

Regards

Share this post


Link to post
Share on other sites

I made a list of all the stuff i want automated. Just because it has the name "Chat Open" does not mean thats the name. I just named it that. I know the names of the windows it just wont click what I want it to. It does only on some stuff.

For Example.

Title = Xp Skill

Class = Button

Instance = 8

ClassnameNN = Button8

Adcanced(Class) = [CLASS:Button; INSTANCE:8]

ID = 1192

Txt = XP8

Position = 901, 653

Size = 42, 40

ControlClick Coords = 15, 14

Style = 0x5001800B

Exstyle = 0x00000004

Handle = 0x00060604

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Title = Chat Open

Class = Button

Instance = 585

ClassnameNN = Button585

Adcanced(Class) = [CLASS:Button; INSTANCE:585]

ID = 2525

Txt = M_????

Position = 755, 667

Size = 51, 19

ControlClick Coords = 51, 15

Style = 0x5000800B

Exstyle = 0x00000004

Handle =0x000606CA

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Title = Chat Talk

Class = RICHEDIT

Instance = 2

ClassnameNN = RICHEDIT2

Adcanced(Class) = [CLASS:RICHEDIT; INSTANCE:2]

ID = 2006

Txt =

Position = 23, 251

Size = 256, 53

ControlClick Coords = 183, 19

Style = 0x50010044

Exstyle = 0x00000024

Handle = 0x000314CE

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Title = Chat Send

Class = Button

Instance = 2

ClassnameNN = Button2

Adcanced(Class) = [CLASS:Button; INSTANCE:2]

ID = 2234

Txt = ??

Position = 313, 250

Size = 40, 36

ControlClick Coords = 30, 7

Style = 0x5001800B

Exstyle = 0x00000004

Handle = 0x000314A0

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Title = Chat Close

Class = Button

Instance = 7

ClassnameNN = Button7

Adcanced(Class) = [CLASS:Button; INSTANCE:7]

ID = 2336

Txt = ??

Position = 443, 315

Size = 58, 23

ControlClick Coords = 25, 9

Style = 0x5001800B

Exstyle = 0x00000004

Handle = 0x00000004

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Title = Party Accept

Class = Button

Instance = 259

ClassnameNN = Button259

Adcanced(Class) = [CLASS:Button; INSTANCE:259]

ID = 1143

Txt = ??

Position = 435, 426

Size = 42, 18

ControlClick Coords = 6, 16

Style = 0x5001800B

Exstyle = 0x00000004

Handle = 0x000E0208

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Title = Spawn

Class = Button

Instance = 37

ClassnameNN = Button37

Adcanced(Class) = [CLASS:Button; INSTANCE:37]

ID = 1186

Txt = XP1

Position = 869, 653

Size = 42, 40

ControlClick Coords = 15, 14

Style = 0x5001800B

Exstyle = 0x00000004

Handle = 0x00060644

I am trying to make a bot that will grind exp for me. Is there a way i can record everything that is pressed on my mouse and keyboard?

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