Next time please use a title that actually descibes the problem please.
your problem is very simple. just ask if the mouse was hit, and if MouseX() and MouseY() is on the image.
If your image is not rectangular, you may use an additional cursor image that is positioned at the mouseX() and MouseY() position, then use the Command ImagesCollide.
Version 1
version 2
your problem is very simple. just ask if the mouse was hit, and if MouseX() and MouseY() is on the image.
If your image is not rectangular, you may use an additional cursor image that is positioned at the mouseX() and MouseY() position, then use the Command ImagesCollide.
Version 1
while not keydown(1) drawblock image,x,y mx=mousex() my=mousey() if mousehit(1) if (mx>= x) and (mx <=x+imagewidth(image)) if (my>= y) and (my <=y+imagewidth(image)) execfile "notepad.exe" endif endif endif wend
version 2
while not keydown(1) drawimage image,x,y mx=mousex() my=mousey() drawimage mouse2,mx,my if mousehit(1) and imagescollide(image,x,y,0,mouse2,mx,my,0) execfile "notepad.exe" endif wend