Sign in to follow this  
Followers 0
harry310

Finding X Y

7 posts in this topic

I know this is a very newbie question, but how can i find the X Y coordinates of a point?

Share this post


Link to post
Share on other sites



Autoit Window Info Tool. There's a shortcut made with the install.

Thanks so much, I knew there was an easy answer.

Share this post


Link to post
Share on other sites

I have another problem, The X Y I am trying to find is in another window, and for some reason, the cursor will not go to the correct spot, I think this is because it is seeing the X Y of my desktop and not the 800x600 window.

Share this post


Link to post
Share on other sites

Thanks man, I ended up finding it on my own too. One more question though, here is my script,

CODE
while 1

if $BG = 1 Then

if $Place = "UC" Then

$num4 = Random (78 , 79)

$num5 = Random (184 , 185)

EndIf

if $Place = "TB" Then

$num4 = Random (82 , 83)

$num5 = Random (191 , 192)

EndIf

$num1 = Random (400 , 405)

$num2 = Random (330 , 335)

$num3 = Random (700 , 1032)

$num6 = Random (400 , 405)

$num7 = Random (500 , 1450)

$num8 = Random (132 , 136)

$num9 = Random (357 , 362)

$num10 = Random (27000 , 40000)

$num11 = Random(352, 356)

$num12 = Random(143, 147)

$num13 = Random(20401, 32263)

mouseclick("right", $num1, $num2)

sleep($num3)

mouseclick("left", $num4, $num5)

sleep($num7)

mouseclick("left", $num8, $num9)

sleep($num10)

mouseclick("left", $num11, $num12)

sleep($num13)

winActivate("World of Warcraft")

I need to find out how to change the X Y of the 2nd click, i think it is num4 but when i change the X Y there it seems to only change with the X Cord, do you have an suggestions?

Share this post


Link to post
Share on other sites

I need to find out how to change the X Y of the 2nd click, i think it is num4 but when i change the X Y there it seems to only change with the X Cord, do you have an suggestions?

The x-coordinate of the second click is determined by $num4, however, the y-coordinate is determined by $num5, you'd have to adjust that as well.

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

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