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_traprest() - restore your mousetrap settings</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_traprest() - restore your mousetrap settings
  Usage:    m_traprest(<memvar>)
  Params:   string <memvar> - memory variable returned from a
            previous m_trapsave()
  Returns:  nothing

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

                 * save the settings
                 tempstr = m_trapsave()

                 * bait the mousetrap()

                 mousetrap(0,28)
                 mousetrap(1,27)
                 mousetrap(2,19,4,5,24)

                 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 doesn't have to be reset after an m_trapsave()
            or m_traprest(). If it is set, it stays set, if it is not set,
            it stays that way.


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