Saturday, November 17, 2012

How can you programmatically send keystrokes in Batch Pilot



To send keystrokes via Batch Pilot scripting, you can invoke the WScript.Shell object's SendKeys method. The following is an example for sending Ctrl + N:
    Dim shell

    Set shell = CreateObject("WScript.Shell")

    shell.SendKeys("^n")

Set shell = Nothing


Note: Some hot keys may be alternatively accomplished. For example, calling Pilot.BatchContinue is equivalent to clicking the Navigate to Next Problem button

No comments:

Post a Comment