Open then Close a Dialog

Discussion in 'AutoCAD' started by ericju, Sep 11, 2004.

  1. ericju

    ericju Guest

    I'm using SendKeys to open the Tools | Options dialog box. Once the dialog is open, it is modal and no further keys can be sent to it. That is,

    SendKeys "%TN{ENTER}"

    opens the dialog box, but it never gets the enter key needed to close it. Any other way of dealing with this?
     
    ericju, Sep 11, 2004
    #1
  2. Jimmy Bergmark, Sep 11, 2004
    #2
  3. Jimmy Bergmark, Sep 11, 2004
    #3
  4. Any particular reason why you feel you must do
    things this way, rather than use the ActiveX
    interfaces?
     
    Tony Tanzillo, Sep 12, 2004
    #4
  5. ericju

    ericju Guest

    There is some sort of bug. After I plot, my paper background and paper shadow have been turned off. I turn them on with ActiveX and regen all viewports, but it still does not display the paper background and shadow. Opening and closing the options dialog (without making any changes, because at this point the properties have been set with ActiveX) makes the page regen properly.
     
    ericju, Sep 13, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.