Grasshopper

algorithmic modeling for Rhino

Hello Forum

How can I simulate key-presses with ghpython?

I'm trying to write a script that prints pdfs - when I print to pdf I get a gui and I need the computer to press enter then write the address. (I know there are other ways to print to pdf but as an exercise I'm trying to do it this way).

Thanks for any advice.

Views: 736

Replies to This Discussion

Hi John

I just quickly googled this and found a stackoverflow discussion.

The sample works.

Attachments:

Hello Giullio

I finally got chance to test that - it works as you say. Thankyou.

I don't understand why I have to import 'wintypes from ctypes' into Ironpython - I thought the point of Ironpython was that it came prepackaged with all that stuff. Shows I have plenty to learn :)

Thanks again!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service