Trapping Key Press Events

ramsay18477ramsay18477 Member Posts: 52
Hi,

Is it possible to trap Key Press events (eg, Pressing 'Esc' key) in Navision to enable us to use them to run certain code ?

If yes, can someone please guide me.

Thanx in advance.
Thanks & Best Regards,

Ram.

Answers

  • SavatageSavatage Member Posts: 7,142
    You can use shortcut keys to do things in nav ex./Ctrl-Shift-F5

    Esc is probably not one I would use - are you thinking of running code on close of form?

    Perhaps if you explained what you are trying to do, it would help alot.
  • garakgarak Member Posts: 3,263
    Hi,

    Is it possible to trap Key Press events (eg, Pressing 'Esc' key) in Navision to enable us to use them to run certain code ?

    If yes, can someone please guide me.

    Thanx in advance.

    What is with the, as Harry said, Shortcuts in the menu button. What's the reason why you ask?
    Do you make it right, it works too!
  • ramsay18477ramsay18477 Member Posts: 52
    Hi Harry / garak,

    Thanx a lot.

    I don't want to use the key events as a shortcut key in the menu button...I already know that.

    I want to trap the events of these keys may be in a trigger or use a function, if available for key press like INKEY or so as we do in other programming languages and run a code, say to execute some transaction.

    Even the implementation of the Shortcut keys to execute the item in the menu button must be built with some code, right ?

    I want to know something like that...

    Thanx again in advance.
    Thanks & Best Regards,

    Ram.
  • garakgarak Member Posts: 3,263
    this is directly not possible in NAV. U need a 3-rd app like a dll to profile the key events
    Do you make it right, it works too!
Sign In or Register to comment.