Heres the code for a button function that may be useful to you. You need to get the button coordinates when the screen res is set to 1024 by 768. Then whatever your resolution is set to, the coordinates will change with respect the current res.
function button(x1a#,x2a#,y1a#,y2a#)
x1#=(x1a#/1024)*screen width()
x2#=(x2a#/1024)*screen width()
y1#=(y1a#/768)*screen height()
y2#=(y2a#/768)*screen height()
qx#=mousex()
qy#=mousey()
if qx#>x1# and qx#<x2# and qy#>y1# and qy#<y2#
if mouseclick()=1
pressed#=1
else
pressed#=2
endif
else
pressed#=0
endif
endfunction pressed#
and use the code like this:
if button(156,452,278,323)=1
rem start a new game when the button is clicked
endif
if button(156,452,278,323)=2
rem perform func when mouse is over button
endif
Once you start down the Dark Path, forever will it dominate your destiny...