1. #1
    New Member Follow User Gallery
    Join Date
    Oct 2004
    Posts
    12

    Default Command to press dialog buttons?

    Looked through the forums and could not find an answer. What I specifically would like to do is to have a script that can run
    "new document" and then press the "no" to saving the closing document dialog.
    Is it possible? Thanks!

  2. #2
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,400

    Default

    You can use:

    [IKeyPress,78,[IPress,Document:New Document]]

    The "78" is the equivalent of pressing "N" on the keyboard.

    HTH,

  3. #3
    New Member Follow User Gallery
    Join Date
    Oct 2004
    Posts
    12

    Default

    That was exactly what I needed. I had seen similar ideas that didn't work. Thanks!

  4. #4
    Senior Member Follow User Gallery
    Join Date
    Oct 2005
    Location
    USA
    Age
    34
    Posts
    1,062

    Default

    Hey Marcus, is there a list somewhere of what numbers correlate to keyboard entries?

    Thanks,

    E

  5. #5
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,400

    Default

    Hi Eric,

    The View Keyboard Status slider in the Preferences>Utilities sub-palette will give the number after pressing the key. These are basically the ASCII character codes, though internally ZBrush will be using keycodes so that, for example, the tilde key which ZBrush recognises will be some other key on other keyboards. (It's the @ key on UK keyboards.)

  6. #6
    New Member Follow User Gallery
    Join Date
    Oct 2004
    Posts
    12

    Default

    It looks like they are just standard ascii key codes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •