Computer Science Canada

Button problems

Author:  kirsty_16 [ Tue Jan 13, 2004 1:43 pm ]
Post subject:  Button problems

Hey everyone
I am trying to finish my ISU but in my program i'm using buttons and they won't work!! Crying or Very sad I only have like 2 more days and i've tried everything i can think of. If anyone can help thanx so much!!

Author:  Boarder16 [ Tue Jan 13, 2004 2:40 pm ]
Post subject: 

post ur code and we can see whats the problem.. Confused

Author:  Cervantes [ Tue Jan 13, 2004 4:02 pm ]
Post subject: 

code:

var x, y, btn : int
loop
Mouse.Where (x,y,btn)
if btn = 1 (thats a right click) then
bla bla bla
end if
if btn = 2 (left click) then
bla bla
end if
if btn = 3 (middle) then
bla
end if
end loop

Author:  santabruzer [ Tue Jan 13, 2004 5:49 pm ]
Post subject: 

button 2 is the left click.. i swear it was 1... Confused

Author:  Andy [ Tue Jan 13, 2004 8:17 pm ]
Post subject: 

nope... when ur using mousewhere, either one returns 1

Author:  Cervantes [ Tue Jan 13, 2004 9:08 pm ]
Post subject: 

oops, i got mixed up... btn 1 = left (main) btn 2 = right (secondary)


: