Hi,
Does this help?
(Note: ages old DelphiScript code that might not work in modern TestComplete and/or Windows and I think that you definitely must consider bitness as described here: https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/calli...)
Short answer you can't. Test complete sends real keystrokes and mouse actions when playing back.
Right, without a physical keyboard hooked up, it will still work. However, TestComplete "takes over" the UI input on the operating system while it's executing so any keystrokes ore mouse actions done while the automation is running will interfere.
Define "does not work"? Where is the error? What error message are you getting?
Again... TestComplete needs to be able to interact with the objects on screen. It needs to be able to simulate keyboard and mouse events and it does so using the operating system. What is your purpose behind wanting to block the keyboard? What are you trying to achieve? Perhaps there is a better way.
The answer is this:
you can't. Best practice is that, if an automation is running, the machine should be left untouched. This can be done with VM's in a console mode or a lab.
Hi,
Does this help?
(Note: ages old DelphiScript code that might not work in modern TestComplete and/or Windows and I think that you definitely must consider bitness as described here: https://support.smartbear.com/testcomplete/docs/testing-with/advanced/using-external-functions/calli...)
Subject | Author | Latest Post |
---|---|---|