
-----------------------------------
manDEE
Sat Jun 11, 2011 11:09 pm

about Mouse.ButtonWait
-----------------------------------
What is it you are trying to achieve?



What is the problem you are having?
I am doing a school project. One part of my program is to search in a area to get different tools.
I use Mouse.Where for it.
The problem is that the word won't show up because I press my mouse before Mouse.ButtonWait.
I don't know how to explain my problem and I know what I just typed in is really confusing. :?  
I am sorry about that.

Describe what you have tried to solve this problem
I try putting more Mouse.ButtonWait but it didn't work.

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Part of my program:



    delay (800)
    cls
    Pic.Draw (garden1, 1, 1, picMerge)
    Mouse.ButtonWait ("down", x, y, btnNumber, btnUpDown)
    Font.Draw ("I have 5 chances to search.", 180, 110, font2, white)
    Mouse.ButtonWait ("down", x, y, btnNumber, btnUpDown)

    loop
        cls
        Pic.Draw (garden, 1, 1, picMerge)
        Mouse.ButtonWait ("down", x, y, btnNumber, btnUpDown)



        loop
            Pic.Draw (garden, 1, 1, picMerge)
            Mouse.Where (x, y, button)

            if button = 1 and x >= 10 and x = 40 and y = 130 and x = 210 and y = 500 and x =
                    660 and y = 550 and x = 210 and y = 400 and x = 130 and y = 465 and x = 350 and y = 340 and x = 295 and y 