Share |

Thursday, October 12, 2006

Thanks to sergio for "post" in the forum of Tips dBits.

In order to send pulsations of keyboard from Navision and by means of code C/AL we can use this simple trick:

We defined a variable
WShell
of type
Automation
and subtype
'Windows Script Host Object Model'.WshShell

and we used the following code to send the pulsation of a key Enter

IF ISCLEAR(WShell) THEN IF NOT CREATE(WShell) THEN EXIT;
WShell.SendKeys('{ENTER}');


that evidently we can change by the key that we agree more.

No comments: