Thom,
Great, that did it.
Do I need to issue the OCR.Activate "@_NOACTIVATE" command? I left it out and
just executed Key "@@_hello", and it worked fine. I assume it would be
cleaner coding to turn off the implied activate since I am always connecting to
the same application (i.e. Remote Desktop Connection or Citrix). Is that
correct?
- Neil
>>> [EMAIL PROTECTED] 12/20/2005 2:11 PM >>>
Greetings,
The Digital OCR connection uses an "implied activate" inside it's keying
commands in order to make sure the keys it sends are going to the correct
window. This is basically looking at and remembering what you had connected
into. For Citrix deployed applications however, the "title" that you see is
not the actual title so to speak so you need to turn the "implied activate"
off and use a specialized keying format to send the keys - that's a complex
way of saying:
Execute the command:
OCR.Activate "@_NOACTIVATE" - after the connect to turn off the implied
activate
And for keying commands use Key "@@_MyKey"
For example
To send an enter key use - Key "@@_{ENTER}"
Regards,
Thom
Thom C. Blackwell
Product Manager
Boston Software Systems
www.BostonWorkStation.com
866 653-5105 - ex 807
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Neil Hans
Sent: Tuesday, December 20, 2005 3:05 PM
To: [email protected]
Subject: [Talk] BWS and Remote Desktop Connection issue.
We are using BWS v8 to help build a Healthcare application called Soarian,
by Siemens Corp. Our IT staff accesses the Soarian application (called
Admin Desktop) using Microsoft's Remote Desktop Connection utility (similar
to Citrix).
I connect to the application using OCR. The problem I have is sending
characters to fields in the application. I have tried:
OCR.Key "hello"
SendKeys "hello"
Key "hello"
None of them are filling-in the field with the word "hello" (without
quotes). I did find that if I used OCR.Key "{DELETE}", it does delete the
content of the field. Here's the code...
Sub InactivateSvcs()
Connect "SDevDsktp", stOCR
OCR.FontSmoothing = False
OCR.Key "{DELETE}"
SendKeys "{HOME}"
SendKeys "hello"
OCR.Key "hi"
Key "h"
I tried this using an OCR connection on the same application but the
application is running on my PC (not using Remote Desktop Connection). The
commands above work for the most part. Actually the "Key" command seems
more reliable. Anyone know why I can't send/paste characters into input
fields using the OCR connection via Remote Desktop Connection?
Thanks,
Neil Hans
Alegent Health
Omaha, NE
ph. 402-717-1079