How can I avoid the mouse click during a short period of time???

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default How can I avoid the mouse click during a short period of time???

    Hello to all!!!

    I have a projector movie that opens another projector movie when a specific
    button is clicked.

    It works fine , but, if the user double ckick the button a message window
    appears informing the error.

    How can I avoid the mouse click after the first click, during 4 or 5
    secounds, that is the time left to open the other projector and then, set it
    to run again after that time?

    Is possible to verify the windowPresent for projector.exe as it is possiblo
    to MIAW???


    Thanks a lot!!!


    LAGRO Guest

  2. Similar Questions and Discussions

    1. How do you avoid double-click
      When running flash on a web page you usually have to click the Flash object once and then once again to click a button. Is there a way to avoid...
    2. Allowing opening pdf for a period of time
      Is there a way to create a pdf so that when provided to users, there is a time limit on opening it??? In other words, I have material that is...
    3. Changing a sprite member for a period of time
      Dear Forum I have developed a childs numeracy and spelling game. I have managed to build the back-end of the system i.e the creation of random...
    4. Move mouse cursor to X,Y location and simulate mouse click
      Hi, Just something that slip my mind.. but how do you move the mouse cursor to a sprite member and simulate a mouse click? Any help is...
    5. Loop for a period of time.
      Hello everyone. I am making a auto play slide show of about 50 images. How can i make director loop on a image for say 10 seconds before moving...
  3. #2

    Default Re: How can I avoid the mouse click during a short period of time???

    You can't "avoid" a mouseClick because that's up to the user but if you want
    to avoid executing code that's in the mouseDown or mouseUp handlers then you
    can do this

    property pS, spriteNum, pTimer

    on beginSprite me
    pS = sprite (spriteNum)
    pDelay = 5 * 60 -- 5 is the number of seconds to protect from other
    mouseUp's getting through
    pTimer = the ticks - pDelay
    end

    on mouseUp me
    if the ticks > pTimer + pDelay then
    -- exectute the code to launch the projector or whatever other code
    is neccessary.
    pTimer = the ticks
    end if
    end

    Using the above code the mouseUp event won't execute the code more than once
    every 5 seconds if the button is clicked continuously. But of course you
    run into all sorts of system operations when a file is launching so those
    can't be controlled confidently but can be monitored in some cases with
    buddyAPI or MasterApp. If you understand the system (Windows) then you can
    see when a window becomes available and also check to see when an app is
    launched, etc.



    --
    Craig Wollman
    Word of Mouth Productions
    phone 212 724 8302
    fax 212 724 8151
    [url]www.wordofmouthpros.com[/url]
    "LAGRO" <edd@click21.com.br> wrote in message
    news:blsif6$dn9$1@forums.macromedia.com...
    > Hello to all!!!
    >
    > I have a projector movie that opens another projector movie when a
    specific
    > button is clicked.
    >
    > It works fine , but, if the user double ckick the button a message window
    > appears informing the error.
    >
    > How can I avoid the mouse click after the first click, during 4 or 5
    > secounds, that is the time left to open the other projector and then, set
    it
    > to run again after that time?
    >
    > Is possible to verify the windowPresent for projector.exe as it is
    possiblo
    > to MIAW???
    >
    >
    > Thanks a lot!!!
    >
    >

    Word of Mouth Productions Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139