stephenrobertson
Jun 15th, 2000, 08:37 AM
Using vb6.0
I have a form which is "always on top." I want to be able to select (highlight) text in any app and the click a button on my form (which is on top) and copy the selected text to the clipboard.
I have tried using:
<< Clipboard.SetText Screen.ActiveControl.SelText >>
but, the window containing the highlighted text is no longer the active window.
How do I reference a window which is no longer active (or was the last active)?
I thought about opening apps within a VB window and using:
<< Clipboard.SetText ActiveForm.ActiveControl.SelText >>
but, this is not my best resolve.
Any ideas?
I have a form which is "always on top." I want to be able to select (highlight) text in any app and the click a button on my form (which is on top) and copy the selected text to the clipboard.
I have tried using:
<< Clipboard.SetText Screen.ActiveControl.SelText >>
but, the window containing the highlighted text is no longer the active window.
How do I reference a window which is no longer active (or was the last active)?
I thought about opening apps within a VB window and using:
<< Clipboard.SetText ActiveForm.ActiveControl.SelText >>
but, this is not my best resolve.
Any ideas?