Jump to content
Sign in to follow this  
meokhung

How to use Autoit Window Info when program execute?

Recommended Posts

meokhung

I write auto pots and got a problem

When i move the window so every variable store the coord (X,Y,Color) will become wrong

So i must open source and use Window Info again to check the screen like this:

$SKILL_F1_X =577 ; X coor of mouse

$SKILL_F1_Y =739 ; Y coor of mouse

$SKILL_F1_COLOR =0xEF7142 ; the color at postion on screen.

If i use it, so nothing to say, because i write it, i can find where to change. But when i give the program to my friend, they cant use because the pos of screen .

So i write again, and use GUI to showup [X], [Y], and ..... i dont know the functine to use window info (not use tool)

Anyone know autoit have that Function?

Ex: When i call the function it will return 3 value like below:

Global $X

Global $Y

Global $Color

Func TutorialUseWindowInFo()

call any func here <==== (to read pos of screen)

$X= the current X of poniter

$Y= the current Y of poniter

$Color= the current Color of poniter

EndFunc

Please help me!


[center]Không có việc gì khó, chỉ sợ làm không đượcĐào núi và lấp biển, quyết chí ắc bị điên[/center]

Share this post


Link to post
Share on other sites
xuanmai

I write auto pots and got a problem

When i move the window so every variable store the coord (X,Y,Color) will become wrong

So i must open source and use Window Info again to check the screen like this:

$SKILL_F1_X =577 ; X coor of mouse

$SKILL_F1_Y =739 ; Y coor of mouse

$SKILL_F1_COLOR =0xEF7142 ; the color at postion on screen.

If i use it, so nothing to say, because i write it, i can find where to change. But when i give the program to my friend, they cant use because the pos of screen .

So i write again, and use GUI to showup [X], [Y], and ..... i dont know the functine to use window info (not use tool)

Anyone know autoit have that Function?

Ex: When i call the function it will return 3 value like below:

Global $X

Global $Y

Global $Color

Func TutorialUseWindowInFo()

call any func here <==== (to read pos of screen)

$X= the current X of poniter

$Y= the current Y of poniter

$Color= the current Color of poniter

EndFunc

Please help me!

anh nói tiếng việt đi,ở đây chỉ có 2 anh em ta:D nói tiếng việt cho dễ hiểu

no one

Share this post


Link to post
Share on other sites
nhatkhang17

I write auto pots and got a problem

When i move the window so every variable store the coord (X,Y,Color) will become wrong

So i must open source and use Window Info again to check the screen like this:

$SKILL_F1_X =577 ; X coor of mouse

$SKILL_F1_Y =739 ; Y coor of mouse

$SKILL_F1_COLOR =0xEF7142 ; the color at postion on screen.

If i use it, so nothing to say, because i write it, i can find where to change. But when i give the program to my friend, they cant use because the pos of screen .

So i write again, and use GUI to showup [X], [Y], and ..... i dont know the functine to use window info (not use tool)

Anyone know autoit have that Function?

Ex: When i call the function it will return 3 value like below:

Global $X

Global $Y

Global $Color

Func TutorialUseWindowInFo()

call any func here <==== (to read pos of screen)

$X= the current X of poniter

$Y= the current Y of poniter

$Color= the current Color of poniter

EndFunc

Please help me!

You should get coord of a window, read more about PixelCoordMode option!

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.