Jump to content

Paste clipboard text to active window of a vertical product?


Recommended Posts

Posted

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).

Posted

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.).

Posted
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.).

 

Untitled.jpg

 

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.

Posted

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.

Posted

Thank you,

How to do it with macro?

Posted

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.).

Posted

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.

Posted

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 :oops:... 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? :unsure:

Posted

I am not good at coding but i want to run the paste command when the "Room Information Management" dialog is activated.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...