When running the code below in a windowed program the button will change when the mouse is at the location X10 Y300 from the top left hand corner of the desktop, not when the mouse is that location in the program.
How do I get around this?
If ImageRectOverlap(Button,10,300,MouseX(),MouseY(),1,1) DrawImage Button2,10,300 If MouseDown(1) Then Status = 2 End If
How do I get around this?