SendKeys doesn't work

SendKeys doesn't work

kambed91
Enthusiast Enthusiast
1,202 Views
0 Replies
Message 1 of 1

SendKeys doesn't work

kambed91
Enthusiast
Enthusiast

Hi.

This is my code:

 

Sub newd()
AppActivate ("Autodesk Advance Steel 2019")
AutoCAD.Application.ActiveDocument.SendCommand "_DIMSTYLE" & vbCr & vbCr
SendKeys "{ENTER}", True
End Sub

 

 

When i start it, command "_DIMSTYLE opens the window with dim style manager. Next i would like to "click"by vba the "TAB" key but it doesn't work. When i manually close manager, vba start clicking TAB.

For example, when i put ENTER instead of TAB - when close manager , autocad click enter which start last command _dimstyle. So SendKeys method doesn;t work in my new opened windows but only in main autocad space.

Is there someone who know how to use sendkeys in other windows like Styles Manager or Plot manager?

0 Likes
1,203 Views
0 Replies
Replies (0)