meokhung Posted November 11, 2007 Share Posted November 11, 2007 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] Link to comment Share on other sites More sharing options...
xuanmai Posted September 28, 2008 Share Posted September 28, 2008 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 Link to comment Share on other sites More sharing options...
nhatkhang17 Posted September 28, 2008 Share Posted September 28, 2008 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now