COMMANDLINE for ctrl+alt+F5

Johan_007Johan_007 Member Posts: 53
is it possible to input into NAV the COMMANDLINE for ctrl+alt+F5?

Answers

  • philippegirodphilippegirod Member Posts: 191
    Yes, in ShortCutKey property of the MenuItem (so you have to create a menu item to enable this shortcut).
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
  • Johan_007Johan_007 Member Posts: 53
    thats done, but i want to call this shortcut from code... and which dll or ocx must i register?
  • philippegirodphilippegirod Member Posts: 191
    Why do you want to call the shortcut from code?
    Don't you want to call the function (the code called by the shorcut)?
    In my memory (I'm probably too old for new coding rules) a shortcut is here only to help the user.
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
  • Johan_007Johan_007 Member Posts: 53
    some users tend to get lazy, but i need to call the "ctrl+alt+F5" in code.. i have found a solution kind of but i dont know which ocx or dll to install to call it..
    e.g.
    CREATE(lvWinShell);
    lvWinShell.SendKeys('^%{F4}');

    where:
    ctrl = ^
    alt = %
    {F4} = F4

    when i get this rite, its going to make the clients life easier and keeps them happy [-o<
  • Johan_007Johan_007 Member Posts: 53
    GARAK!! U DA MAN!

    http://www.mibuso.com/forum/viewtopic.php?p=136085#136085

    is a good solution!
  • Johan_007Johan_007 Member Posts: 53
    garak wrote:
    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
Sign In or Register to comment.