Jump to content
Sign in to follow this  
d3mon

Get text position of a window game

Recommended Posts

d3mon

Hello everybody

In a game, on my head there is my name > so a text and i want to get the position of this text

If it's possible i will be very happy!

All suggests are welcome !


No-life of autoit...what could be better ?LAST SCRIPTS WITH AUTO-IT : CLICK HERE

Share this post


Link to post
Share on other sites
m4tek

Usually names are colored so using PixelSearch might be useful. Find out the color and with PixelSearch you can have the script show you name's coords.

$coords = PixelSearch( 0, 0, 20, 300, 0x0000FF )
If Not @error Then
    MsgBox(0, "Pixel's coords are X,Y:", $coords[0] & "," & $coords[1])
EndIf

Share this post


Link to post
Share on other sites
d4rk

so how you make it a "text" ?

the name of char in online game didn't stand as text, if you want to get it, you have works with the game's memory process (i don't know about this, just read someone's post)


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
m4tek

i want to get the position of this text

He said he wanted position of the name..

And position of his name can be obtained with PixelSearch.

Edited by m4tek

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.