the answer you're looking for is mathematical. you can see whether a cursor is inside of a circle by using the equation \"r^2=x^2+y^2\". therefore, if you have the radius of the circle you drew, you can derive x=sqrt((r^2)-(y^2))... ...so! if you have your x and y mouse offset, you can calculate whether the cursor is inside a circle like so:
dim cX as integer = 100 'circle X (Center)
dim cY as integer = 100 'circle Y (Center)
dim cR as integer = 30 'circle radius
dim mX as integer = 10 'Mouse X
dim mY as integer = 100 'Mouse Y
dim offsX as integer = Math.Abs(mX - cX) 'calculate the mouse offset
dim offsY as integer = Math.Abs(mY - cY)
'WARNING: a square root of a negative number will throw an error so make sure the offsets aren't bigger than the radius first!!
if (offsX <= cR) and (offsY <= cR) then 'Check whether or not it's inside the circle's \"rectangle\"
dim Range as integer = Math.Round(Math.Sqrt((cR * cR) - (offsY * offsY)))
if offsX <= Range then
'you're inside the circle
else
'you're not inside the circle
endif
endif
sorry for giving you VB code, and apologies if there are any errors. i did this top-down without testing. converting it should not be a problem. it's fairly basic code after all.