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

Petra_Verhelle
Member Posts: 10
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
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
0
Answers
-
Try to use Dotnet Sendkeys instead of WshShell.0
-
Have you tried adding a small delay before the sendkey 'N' ?0
-
Hello,
Yes, I tried to add a delay, the same result...
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions