Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>m_trapnew() - resets all mousetrap events</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_trapnew() - resets all mousetrap events
  Usage:    m_trapnew()
  Params:   none
  Returns:  nothing

 ---------------------------------- Example ---------------------------------

                 * save the settings
                 tempstr = m_trapsave()

                 * clear the events, (disables the trap as well)
                 m_trapnew()

                 * bait the mousetrap() with partial info
                 * all other events are blank from m_trapnew()
                 mousetrap(0,28)

                 m_trapset()
                 * set the trap so the keys set by mousetrap()
                 * are now functional

                 memvar = space(20)
                 @ 10,0 say "Enter Data:" get memvar
                 read

                 * release the mousetrap
                 m_trapfree()

                 * restore the mousetrap events to prior contents
                 m_traprest(tempstr)

  Note:     The mousetrap has to be reset after an m_trapnew() since
            ALL events all cleared, and the trap is released.


See Also: mousetrap() m_trapfree() m_trapset() m_trapsave()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson