Use:
TOUCH OUT TT, TX, TYto get the current stylus location on the touch screen. TX and TY are the stylusโ X and Y coordinates, while TT equals 0 if nothing is touching the touch screen, and 1 if something is. Then, in your main loop you should add something like:
IF TX < 50 && TX > 100 && TY < 50 && TY > 100 THEN...Changing the numbers to fit a given box would check if the stylus is within the boundaries of said box (or button) that you have on the touch screen. Iโm just assuming this is what you meant from the title of this thread, however.