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_trapsave() - save your mousetrap settings</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     m_trapsave() - save your mousetrap settings
  Usage:    <memvar> = m_trapsave()
  Params:   none
  Returns:  a character string filled with mouse event settings

 ---------------------------------- 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_traprest()

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