Jump to content
Sign in to follow this  

Putting to ClipBoard, without ClipPut()

Recommended Posts

I ran into a problem today and I am looking for a work-around. It seems that the issue is the '^c' (Copy) command is not being executed correctly. It has worked for the last 3 months, but now its giving me issues.

Is there a way to 'Copy' what is highlighted, to the clipboard, without using ClipPut or '^c' (Send("{CTRLDOWN}c{CTRLUP}"))?

sleep (2000)
$o_SearchForm = _IEFormGetObjByIndex ($o_IE, 0)
$o_Keywords = _IEFormElementGetObjByIndex ($o_SearchForm, "description" & $var)
Sleep (2000)
Sleep (2000)
$description_text = ClipGet ()
ToolTip ($description_text)
Sleep (1000)
ToolTip ("")

Thanks in Advance.

Share this post

Link to post
Share on other sites

Is there Copy_What_Is_Highlighted () type of command?

If you work with the IE object there are many solutions in the WSH-groups.


.document.execcommand "Copy"

works for you.

HTH, Reinhard

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...