Hi,
I am creating a script in a Navision codeunit (1) to open and run the Client Monitor.
The Client Monitor is opening correctly but it is not starting.
The following is what I have up till now.
Global Variable:
Name DataType Subtype Length
wshShell Automation 'Windows Script Host Object Model'.WshShell
Code:
IF ISCLEAR(wshShell) THEN
CREATE(wshShell); //Instantiate object
wshShell.SendKeys('%{T}'); //Open tools menu
wshShell.SendKeys('m'); //Open client monitor
///wshShell.SendKeys('ENTER');
wshShell.SendKeys('{ENTER}'); //Run code coverage.
The client monitor screen open correctly. However the start button is not being 'pushed'.
Any ideas?
Thanks in advance
Comments
RIS Plus, LLC
MVP - Business Apps
Thanks for the reply.
I understand your concern. However in this case it is a testing environment (before going live).
They are encountering some problems and require the client monitor so that they could pinpoint bottlenecks in the system.
remember that after filling 2GB of ClientMonitor, nav crashes
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Thanks for informing me about the 2GB limit.
I have tried using the timer automation.
I am probably missing something extremely simple.
When I try to run the code I am getting the following error message:
Microsoft Business Solutions-Navision
Not an allowed option.
OK
I declared the following global variable:
Thanks
use this
sendkey m
sleep(1000)
sendkey enter
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
RIS Plus, LLC
MVP - Business Apps
Is it only for tests and you will see which source are executed for testing your application?
David is right, the CM will CAUSE a bottleneck ....
So, whats the reason why you will use it. Normally the CM will be used to find a bug or a codesnippes where a bug is presumed