Are you defining a function every frame but never using it?
Why not just:
if mouse.isPressedIn(confirm_button_prova):
confirm_button_prova.fillColor = [-1,0.04,-1]
box.pos = mouse_getPos()
However, you might need to use a colour variable for the JS to work.