Automated Keystokes

gideongideon Member Posts: 17
edited 2013-12-23 in NAV Tips & Tricks
Hi,

I am looking for some sort of a list that contains all the keystrokes in NAV. By Keystrokes I mean automated e.g.

By running the following code you automatically close NAV :


CREATE(lvWinShell);
lvWinShell.SendKeys('%{F4}');

% = Crtl

I am looking for the "ALT" Keystroke particularly.

Thank you in advance.

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi gideon,

    Funny I have the same query today and found it through reading a lot of posts.

    Actually % = Alt - i.e. Alt F4 for close

    ^ = Ctrl

    Hope this helps
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • krikikriki Member, Moderator Posts: 9,094
    [Topic moved from Navision DOS forum to Navision forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • garakgarak Member Posts: 3,263
    Shift -> +
    Ctrl -> ^
    ALT -> %

    Backspace -> {BACKSPACE}, {BS} oder {BKSP}
    Break -> {BREAK}
    Caps -> {CAPSLOCK}
    Del -> {DELETE} oder {DEL}
    Down Arrow, Up Arrow -> {DOWN}, {UP}
    Left Arrow, Right Arrow -> {LEFT}, {RIGHT}
    End -> {END}
    Enter -> {ENTER} or ~
    ESC -> {ESC}
    Help -> {HELP}
    Pos1 -> {HOME}
    INS -> {INSERT} or {INS}
    NUMLOCK -> {NUMLOCK}
    Page up / Down -> {PGUP}, {PGDN}
    Scroll -> {SCROLLLOCK}
    TAB -> {TAB}
    F1, F2, ... F16 -> {F1}, {F2}, ... {F16}
    10x h -> {h 10}
    +(EC) -> Big E and Big C
    +EC -> Big E small c

    The Key PRINT ({PRTSC}) can not be used with SendKeys.

    Regards
    Do you make it right, it works too!
  • DaveTDaveT Member Posts: 1,039
    Hi Garak,


    =D> Great to get a full list - Thank you

    ... maybe Alain would move this to tips and tricks forum :wink:
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • krikikriki Member, Moderator Posts: 9,094
    DaveT wrote:
    Hi Garak,


    =D> Great to get a full list - Thank you

    ... maybe Alain would move this to tips and tricks forum :wink:
    DEFINITELY!!!!!!
    [Topic moved from Navision forum to Navision Tips & Tricks forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • gideongideon Member Posts: 17
    Thank you very much...

    Well done on getting a whole list on the keystrokes.
  • Johan_007Johan_007 Member Posts: 53
    which dll or ocx do you install for this?
  • garakgarak Member Posts: 3,263
    To use the "Sendkey" function u must use following "Automation" variable:
    Name	DataType	Subtype	Length
    WSHShell	Automation	'Windows Script Host Object Model'.WshShell	
    

    example:
    IF ISCLEAR(WSHShell) THEN
      CREATE(WSHShell);
    
    WSHShell.SendKeys('%xs');
    WSHShell.SendKeys('{DOWN}');
    

    Regards
    Do you make it right, it works too!
  • Johan_007Johan_007 Member Posts: 53
    who da man??

    WHO DA MAN!?!?!?!

    =D> =D> GARAK DA MAN! =D> =D>

    thanks ALOT!! very much appreciated! \:D/
  • It4Ch1It4Ch1 Member Posts: 36
    Good Post! =D>
  • Ravi_ThakkarRavi_Thakkar Member Posts: 392
    garak wrote:
    Shift -> +
    Ctrl -> ^
    ALT -> %

    Backspace -> {BACKSPACE}, {BS} oder {BKSP}
    Break -> {BREAK}
    Caps -> {CAPSLOCK}
    Del -> {DELETE} oder {DEL}
    Down Arrow, Up Arrow -> {DOWN}, {UP}
    Left Arrow, Right Arrow -> {LEFT}, {RIGHT}
    End -> {END}
    Enter -> {ENTER} or ~
    ESC -> {ESC}
    Help -> {HELP}
    Pos1 -> {HOME}
    INS -> {INSERT} or {INS}
    NUMLOCK -> {NUMLOCK}
    Page up / Down -> {PGUP}, {PGDN}
    Scroll -> {SCROLLLOCK}
    TAB -> {TAB}
    F1, F2, ... F16 -> {F1}, {F2}, ... {F16}
    10x h -> {h 10}
    +(EC) -> Big E and Big C
    +EC -> Big E small c

    The Key PRINT ({PRTSC}) can not be used with SendKeys.

    Regards
    Really a nice post. =D>
    Ravi_Thakkar
    Ahmedabad, Gujarat, India
    E Mail : ravi.thakkar@hotmail.com
  • DenSterDenSter Member Posts: 8,304
    rdebath wrote:
    Off topic, but does that 'btnl=1' make it open the first search result?
  • rdebathrdebath Member Posts: 383
    DenSter wrote:
    rdebath wrote:
    Off topic, but does that 'btnl=1' make it open the first search result?

    Yup, as if you'd hit the "I'm feeling lucky" button ( Button I )
  • SavatageSavatage Member Posts: 7,142
    for example - we use it on the payment journal.
    on entry of the account number we have it automatically do a Shift-F9 to open the form to apply entries.
    saving a step.
    works great.

    plus a few other places
  • mihail_kolevmihail_kolev Member Posts: 379
    Very nice, but how can we construct for ex. Ctrl+Shift+Q combination?
    -Mihail- [MCTS]
  • mihail_kolevmihail_kolev Member Posts: 379
    Savatage wrote:
    I already saw it, I tried lvWinShell.SendKeys('^+{Q}'); lvWinShell.SendKeys('^(+({Q}))'); and some other combinations. Still not working... any suggestions?

    Edit: My bad, works properly, I missed the parameters in the CREATE method :oops:
    -Mihail- [MCTS]
  • geordiegeordie Member Posts: 655
    Hi, does anybody know which is the corresponding DotNet for Automation used to input keystrokes?
    Name   DataType   Subtype   Length
    WSHShell   Automation   'Windows Script Host Object Model'.WshShell
    

    I have some code to upgrade to 2013 but I'm not able to find the right subtype to use :oops:

    Thanks!
Sign In or Register to comment.