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
692 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.PNGI 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.

Thanks !

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

seabrahenrique
Advocate
Advocate

Well,

If you have access to the code of this plugin, is pretty easy to do this on the "Activated" event form:

 

Checkbox1.Value = true: ListBox1.Selected(1) = True: Call ClickButtonEvent

 

But without access the code, in my knowledge, is not possible to do this with another add in VBA.

Maybe your solution could be something like a click macro recorder...

 

I hope can help!

0 Likes
Message 3 of 6

Kh.mbkh
Advocate
Advocate
It is a foreign Add-in (we don't have the code, and we don't know whit which language ti's done).
0 Likes
Message 4 of 6

Ed__Jobe
Mentor
Mentor

Ask the add-in vendor if there is a command line version that would allow you to specify the arguments.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 6

Kh.mbkh
Advocate
Advocate
looking for a solution in programming, which will certainly exist...
0 Likes
Message 6 of 6

Kh.mbkh
Advocate
Advocate
Accepted solution
For anyone who may be interested, I fixed my issue using PywinAuto (A Python library) to do Scraping.
0 Likes