Jump to content
Developer Wiki and Function Reference Links ×

Automatically Press OK


Recommended Posts

Can someone -please- help me with this, I've been trying to do it for hours with no joy. I want to find a way to automatically press "OK" in a dialog pop-up, but can't figure out how to script this.

Basically I'm trying to batch export DWGs from separate VWX files. I'm constructing an automator workflow to point to the files, and then in vectorscript I can get it to "Export DXF/DWG" but then the dialog box pops up, which would require me to press enter every time.

So I basically want a script that tells the dialog box that enter / OK has been pressed.

I tried ItemSel / Command etc. but no luck. My current script (which opens up the dialog box) is:

PROCEDURE menu_Expdwg;

BEGIN

DoMenuTextByName('Export DXFDWG' , 0 );

{ HOW DO I PRESS OK HERE?;}

END;

Run(menu_Expdwg);

I would then need to press enter again to confirm the save location, but guessing this would be the same script.

Anyone that can please help me?

Thanks.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...