fathihvac Posted June 3, 2013 Posted June 3, 2013 Hello every body, I don't know exactly if is the right forum. I Run an autocad vertical product, it has a certain window containing a selected combobox .I need a program that detect that the active window is the one wanted and paste from clipboard automatically to the selected field (comobox). Quote
BlackBox Posted June 3, 2013 Posted June 3, 2013 More information is needed (i.e., Screen Shot(s), what vertical product [Revit MEP, AutoCAD MEP?], what combobox of what form [your own custom form, or an internal built-in form?], etc.). Quote
fathihvac Posted June 3, 2013 Author Posted June 3, 2013 More information is needed (i.e., Screen Shot(s), what vertical product [Revit MEP, AutoCAD MEP?], what combobox of what form [your own custom form, or an internal built-in form?], etc.). I have already the text in the clipboard, i want it to be pasted automatically to the field entitled "Room Name" ,the window in concern is an internal form not mine. Quote
BlackBox Posted June 3, 2013 Posted June 3, 2013 If the internal form is Modal (which it appears to be), then the only way you can 'paste' a string value from clipboard is through a mouse, or keyboard macro, presuming that the desired field is the first available field to receive a supplementary macro invocation. Hope that makes (more?) sense to you. Quote
BlackBox Posted June 3, 2013 Posted June 3, 2013 A mouse, or keyboard macro is a single keystroke substitution (usually) for actually pressing Ctrl+V... This mouse, or keyboard macro is only performed by hardware that supports this functionality (i.e., Logitech G700, G510, etc.). Quote
fathihvac Posted June 4, 2013 Author Posted June 4, 2013 I got the following Routine Sub PasteFromClip() AppActivate ("Room Information Management") Application.SendKeys ("^v") End Sub I you can help run it automatically when the window named "Room Information Management" appear on screen. Quote
BlackBox Posted June 4, 2013 Posted June 4, 2013 Firstly, please use . [quote name='fathihvac'] I got the following Routine [code] Sub PasteFromClip() AppActivate ("Room Information Management") Application.SendKeys ("^v") End Sub I you can help run it automatically when the window named "Room Information Management" appear on screen. Thanks for correcting my statement above ... I love learning new things. For completeness, which Event are you hooking to call your PasteFromClip() Method when the "Room Information Management" dialog is activated? Quote
fathihvac Posted June 6, 2013 Author Posted June 6, 2013 I am not good at coding but i want to run the paste command when the "Room Information Management" dialog is activated. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.