Launch shortcut key in codeunit

valezevaleze Member Posts: 1
Hey, i want to add in the trigger "OnOpenPage" in a codeunit the possibility to launch a shortcutKey of nav, for exemple : OnOpenPage --> F1 (open the help page)
is it possible ?

Answers

  • HatchetHarryHatchetHarry Member Posts: 24
    Use the sendkey method.

    WShell: Automation 'Windows Script Host Object Model'.WshShell

    IF ISCLEAR(WShell) THEN
    CREATE(WShell, TRUE, TRUE);

    WShell.SendKeys(ltKeys);
  • krikikriki Member, Moderator Posts: 9,115
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.