Hello all,
 
I am attempting to control a citrix app through the OCR connection and am 
having difficulties with the Click Command.  It appears that the "CLICK" 
command randomly clicks in a Citrix App using OCR connection and not where the 
script says to click.
 
In order to identify this problem I have tested the following scenarios :
 
1)  Local Desktop - Calculator app
 
    open the calculator application 
 
    activate and connect to calculator app using OCR
 
    using bws development environment Click on 3, click on + , click on 5, 
click on = 
 
    when the script is executed the calculator app results in 8
 
2) RDP - Calculator app 
 
    connect to another machine via RDP
    
    open the calculator application app on the remote machine
 
    activate and connect to calculator app on the remote app using OCR
 
    using bws development environment Click on 3, click on + , click on 5, 
click on = 
 
    when the script is executed the remote calculator app results in 8
 
3) Citrix - Calculator app
 
    connect to another machine using Citrix (ICA)
 
    open the calculator application app on the remote machine
 
    activate and connect to calculator app on the remote app using OCR
 
    using bws development environment Click on 3, click on + , click on 5, 
click on = (All these clicks actually occur where they are supposed to when 
developing but not when executing the script.
 
    when the script is executed the remote calculator does not receive the 
click commands where the BWS  
    developer tells the script to click
 
Notes: this is BWS v9.696 rev 1314.  
           View, Pause, Key_@@ commands work in all scenarios.
 
Here is the Local script.  It is the same for all three environments except 
that offsets in the "Click" command are different.
 
Sub Test_Local()
    
    Debug.Print ""
    Debug.Print "Test Local"
        
    Activate "Calculator", True
    Connect "Calculator", stOCR
    
    OCR.FontFile = "C:\src\BWS\Fonts\calculator fontfile.bwf"
    
    Click "", False, False, 195, 148 'click 3
    Wait 0.1
    Click "", False, False, 228, 185 'click +
    Wait 0.1
    Click "", False, False, 166, 109 'click 5
    Wait 0.1
    Click "", False, False, 230, 226 'click =
    Wait 0.1
    tsum = OCR.View(54, 180, 70, 244, True) 'get the sum
    Debug.Print tsum
    
    Click "", False, False, 93, 213 'click clear
    
End Sub

 
 
Thanks 
 
James Verone

------------------------------------------------

**** JDA Confidentiality Notice ****

This e-mail and any files transmitted with it are strictly confidential and 
intended solely for the addressee.  It may contain material which is legally 
privileged.  If you are not the addressee or the person responsible for 
delivering to the addressee, you must not disclose, copy or take any action in 
reliance of this transmission and that any use of it is strictly prohibited. If 
you have received this transmission in error, please notify JDA eHealth 
Systems, Inc. - [email protected] immediately.

------------------------------------------------




---
To post a message to this list, send mail to: [email protected]

You are currently subscribed as: [email protected]

Unsubscribe in the customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx

Reply via email to