Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Jscript ➜ copying to clipboard

copying to clipboard

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Prattler   Lithuania  (15 posts)  Bio
Date Wed 16 Mar 2005 01:26 PM (UTC)
Message
How can I copy something to clipboard with JScript? Didn't find such mushclient function.
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Wed 16 Mar 2005 05:52 PM (UTC)
Message
If its highligted you can use DoCommand to copy it, you can also do it automatically with trigger wildcards (theres a dropdown box when editing the trigger).

However, you can use JScript (or a few others) to set the clipboard. References here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsClipboardClassTopic.asp

Why do you need to send something to the clipboard? (Or I guess what are you sending would be equally pertinant) There might be an easier way.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Prattler   Lithuania  (15 posts)  Bio
Date Reply #2 on Wed 16 Mar 2005 06:03 PM (UTC)
Message
I would like to copy item information into a single line for other programs, etc. Using triggers is inconvenient.

I did see that Clipboard class, but I'm a beginner in JScript. How can I use it? Should I import it somehow? Maybe you could write the code, I'm sure it shouldn't be long.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,843 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.