×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-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!
  • Students Click Here

*Eng-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

Jobs

(VBScript) After using "CATIA.StartCommand" method, how to auto-click the ok button in VBS

(VBScript) After using "CATIA.StartCommand" method, how to auto-click the ok button in VBS

(VBScript) After using "CATIA.StartCommand" method, how to auto-click the ok button in VBS

(OP)
Hello, All

I found the code to use the Catia function in VBScript.

But I want to know, if I use this code: "CATIA.StartCommand ("Assemble")",

the assemble box will pop up with 3 buttons, "OK", "Cancel" and "Preview".

In here, I want to put the code to automatically click the "OK" button.

I've already gotten the "sendkeys" method.

But as far as I searched, this can use in only VBA.

Can anybody tell me how to make it?

RE: (VBScript) After using "CATIA.StartCommand" method, how to auto-click the ok button in VBS

(OP)
Hi, Ferdo

Thank you for your reply.

Yes, I've already known your script.

Here is actually what I want to make.

Please, link to my Youtube.

In here, I want to click automatically the Yes button and OK button.

RE: (VBScript) After using "CATIA.StartCommand" method, how to auto-click the ok button in VBS

(OP)
Hi, ferdo

Thank you for your reply.

Your link is the way to use 'sendkeys' method in vba, right?

I really think the way is very nice way.

But I'd like to know in only vbscript.

Because to use a 'sendkeys' method always seperatly needs a vba file. This means to use it need two files.

One is VBScript, another is VBA.

Do you have any other idea?

RE: (VBScript) After using "CATIA.StartCommand" method, how to auto-click the ok button in VBS

(OP)
Hi, Ferdo, thank you for your reply.

Yes, I'm sorry but I've already checked all replies carefully and tried.

And I can't use the 'vbs' seperatly in my Catia environment.

This means that I have to solve only with 'VBScript'.

I think to change the 'CATIA.StartCommand' method to other way, don't I?

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 Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

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

Click Here to join Eng-Tips and talk with other members!


Resources