×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Extra! ActiveX Component

Extra! ActiveX Component

Extra! ActiveX Component

(OP)
I am using the Attachmate EXTRA! Object Library to communicate with Extra! from C#.

Opening sessions and sending/reading characters works fine, but when I try to use functions like WaitForString or WaitForCursor they take a bunch of parameters that Ive never seen in any documentation.

Example:
System.Object WaitForCursor ( System.Int16 Row , System.Object Col , System.Object EndRow , System.Object EndCol , System.Object Page , System.Object Type )

What are EndRow and EndCol and Type for ??
And what is the return value, I cant recieve it as a boolean.

RE: Extra! ActiveX Component

The "Wait" objects just pause the code until the string is found. In VB the parameters you've listed are optional. I ususally just use the WaitForString and give at most an X,Y coordinate that tells Extra where to look for the string.

The EndRow and EndCol will allow you to search a specific section of the screen instead of a specific location. I've never used this feature as it seems more difficult and just doesn't have a payoff for your trouble.

calculus

RE: Extra! ActiveX Component

(OP)
*Sigh*
Im still lost.
If someone could show an example of how to use the WaitForCursor method, or any other wait method, in C# I would really appreciate it.

I have tried all different ways that I can think of but I always get 'Invalid cast Exception' or something similar..

Here is one example:

CODE

EXTRA._ScreenWait sw = (EXTRA._ScreenWait) scr.WaitForString("ABC", 1, 1, null, null, null, EXTRA.MatchConstants.xRegExp);
            if (sw.Wait(1000))
                ...
scr being the screen object

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close