04-12-2023
08:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-12-2023
08:07 AM
Since this appears to be an Inventor dialog, instead of an Excel dialog, I am thinking you may be able to use the last resort method of SendKeys.SendWait(). If you look at the page for its parent SendKeys Class, it shows you what to enter in the String, to simulate common keyboard interactions. The dangerous part is making sure only that specific dialog receives this interaction that you are 'sending out there', and not some other entity on your computer. There are a couple ways to help with that part. One common way I have used before is the AppActivate(ThisApplication.Caption) method. But there are other more complex ways too, using some vb.net methods, like SetForegroundWindow().
AppActivate(ThisApplication.Caption)
System.Windows.Forms.SendKeys.SendWait("{ENTER}")
Wesley Crihfield
(Not an Autodesk Employee)