|
Background:
After adapting code examples (found in the WinWedge manual
for launching WinWedge with a saved configuration file) for
TCPWedge you find that, although TCPWedge launches correctly,
it is necessary to click on it (give it focus) before the
TCP connection is established and data can be collected.
Solution:
We are still researching the cause of this problem, however
here is a simple workaround:
Modify the Shell command in your code to supply the
optional windowstyle argument vbNormalFocus:
| |
RetVal = Shell("C:\Winwedge\TCPWedge.exe C:\Mydocu~1\config.tw3", vbNormalFocus)
|
When the windowstyle argument is ommitted, the default value
of vbMinimizedFocus is assumed and while the description
of this option sounds like it should give the program focus,
you would still need to click on TCPWedge manually. If you
want TCPWedge to run minimized simply check the "Minimize
on Activation" option under the Activate Menu.
For more information on the Shell command refer to the online
Help in VBA or Visual Basic.
|