How to respond to an add-in's window (pop-up) in AutoCAD programmatically ?

How to respond to an add-in's window (pop-up) in AutoCAD programmatically ?

Kh.mbkh
Advocate Advocate
472 Views
5 Replies
Message 1 of 6

How to respond to an add-in's window (pop-up) in AutoCAD programmatically ?

Kh.mbkh
Advocate
Advocate

When starting an AutoCAD add-in (with the command "StartPlong"), a pop-up window appears:

Capture.PNG

I wonder if it's possible to answer this window (pop-up) by checking the CheckBox1, clicking the button 2, and 3 ... programmatically.

By searching on the Net, I found some solutions (Use Spy++ to get hundle of buttons ... ) but can't come up with a solution.

N.B.: We don't have any information on the language used to create this foreign Add-in

Thanks !

0 Likes
Accepted solutions (1)
473 Views
5 Replies
Replies (5)
Message 2 of 6

paullimapa
Mentor
Mentor

if the add-on does not allow for command line entry with dialog window disabled, then you're stuck.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 6

Kh.mbkh
Advocate
Advocate

Unfortunately no, I believe the only way to do that is to get the pop-up button's handle (using tools like Spy++) and then do an automatic click (via VB.NET); I'm not sure if there will be a solution with Autolisp...

0 Likes
Message 4 of 6

_gile
Consultant
Consultant

Hi,

What you are trying to do is hacking. You will not get any help on this forum to do that.
You need to go directly to the publisher of this add-in.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 5 of 6

Kh.mbkh
Advocate
Advocate
Accepted solution
it seems that you didn't understand what "Hacking" is...
So for anyone who may be interested, I fixed my issue using PywinAuto (A Python library) to do Scraping.
0 Likes
Message 6 of 6

Yasir.Aman
Advocate
Advocate

Can you provide some details please?

0 Likes