[Request]AutoIt3 Capture mouse position in a variable?

01/13/2008 07:58 TekiJinn#1
I'm trying to make a small simple to use botting program and I noticed the mouse click command needs coordinates. I looked thru the list of functions etc. Couldent find a way to store your current mouse position into a variable of X and Y **Or something like that** so I figured I would come to the forum and ask if anyone knows a way how?
01/17/2008 06:51 zevorc#2
Opt("PixelCoordMode",2)
Opt("MouseCoordMode",2)

While(1)
$pos = MouseGetPos()
$var = PixelGetColor($pos[0] , $pos[1] )
ToolTip("X,Y: "& $pos[0]&","&$pos[1]&" Col: "& $var,$pos[0]+20,$pos[1]+20)

WEnd

mouse coord x,y is stored in $pos[0],$pos[1]