10960 IF MX%>=BTNX1%(1) AND MY%>=BTNY1%(1) AND MX%<=BTNX2%(1) AND MY%<=BTNY2%(1) THEN IF M0%=0 AND M1%=0 THEN MOUSE 4,0,0,639,479:GOTO 10980 ELSE MOUSE 3,0,32:MOUSE 4,BTNX1%(1),BTNY1%(1),BTNX2%(1),BTNY2%(1):GOTO 10990
10970 IF MX%>=BTNX1%(2) AND MY%>=BTNY1%(2) AND MX%<=BTNX2%(2) AND MY%<=BTNY2%(2) THEN IF M0%=0 AND M1%=0 THEN MOUSE 4,0,0,639,479:GOTO 10980 ELSE MOUSE 3,0,32:MOUSE 4,BTNX1%(2),BTNY1%(2),BTNX2%(2),BTNY2%(2):GOTO 10990
11010 IF MX%>=BTNX1%(1) AND MY%>=BTNY1%(1) AND MX%<=BTNX2%(1) AND MY%<=BTNY2%(1) THEN IF M0%=0 AND M1%=0 THEN MOUSE 4,0,0,639,479:GOTO 11030 ELSE MOUSE 3,0,32:MOUSE 4,BTNX1%(1),BTNY1%(1),BTNX2%(1),BTNY2%(1):GOTO 11040
11020 IF MX%>=BTNX1%(2) AND MY%>=BTNY1%(2) AND MX%<=BTNX2%(2) AND MY%<=BTNY2%(2) THEN IF M0%=0 AND M1%=0 THEN MOUSE 4,0,0,639,479:GOTO 11030 ELSE MOUSE 3,0,32:MOUSE 4,BTNX1%(2),BTNY1%(2),BTNX2%(2),BTNY2%(2):GOTO 11040
11030 MOUSE 3,0,8
11040 WEND:MX%=MOUSE(0):MY%=MOUSE(1)
11050 FOR I%=1 TO 12
11060 IF MX%>=BTNX1%(I%) AND MY%>=BTNY1%(I%) AND MX%<=BTNX2%(I%) AND MY%<=BTNY2%(I%) THEN BTN%=I%:I%=99:GOTO 11070
11070 NEXT:IF I%<90 THEN GOTO 10990
11080 ON BTN% GOTO 11100,11340,11580,11590,11600,11610,11620,11690,11760,11830,11920,11980