How to select New in menu with sendkeys after selected the action menu bar with ALT F10

I have created a seperate page on a customized table with only the notes factbox on. From a customized page I have created an action where the new page with the note factbox is called. On the onopenpage event I called with Sendkey the WshShell.SendKeys('%{F10}') to see the actions from the notes factbox. So far so good, this works fine. When the page is opened I can see the menu unrolled.

But I want to have that the 'New' action is automatically ready when I open the page. If I send with Sendkey 'N' (new) or {DOWN 2}{ENTER} nothing works. It didn't work to select the New in the menu... It seems that when I have the actions menu opened that on that moment the actions itselfs are not there yet when the sendkey with n is sended to the os.

Can anyone help me with that or is this not possible ?

Thanks in advance,
Kind regards,
Petra

Answers

  • lubostlubost Member Posts: 627
    Try to use Dotnet Sendkeys instead of WshShell.
  • KishormKishorm Member Posts: 921
    Have you tried adding a small delay before the sendkey 'N' ?
  • Petra_VerhellePetra_Verhelle Member Posts: 10
    Hello,

    Yes, I tried to add a delay, the same result...

Sign In or Register to comment.