Calling Fkeys from Navision

fidelfidel Member Posts: 14
I am trying to call the functionallity of F3 key from navision code.
Does anybody know how it is done or even better if i can call any other control key (like down or up arrow, Home key etc) [-o<

Comments

  • DenSterDenSter Member Posts: 8,305
  • fidelfidel Member Posts: 14
    if you run myrec.init; on a form (INIT;) it initializes the surrent rec.Actually after a validation of a spec field i want to move the cusrson to a new (*) line on a form
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    fidel wrote:
    Does anybody know how it is done or even better if i can call any other control key (like down or up arrow, Home key etc) [-o<
    To simulate keystrokes, search this forum for "sendkeys". An example is found here: Simulate Button Click
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • fidelfidel Member Posts: 14
    This is excacly what i needed.
    Thanks a lot Luc Van Dyck
    \:D/
  • DenSterDenSter Member Posts: 8,305
    I thought you wanted to simulate tha functionality in code. Can I ask why you want to do it that way? To me it's much easier to just hit F3 instead of moving your hand to the mouse and clicking a button. F3 is so much quicker.
Sign In or Register to comment.