1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to? Invoke View Clipboard from command line

Discussion in 'Support' started by Avi Shmidman, Mar 26, 2012.

  1. Avi Shmidman

    Joined:
    Feb 23, 2012
    Messages:
    238
    Likes Received:
    3
    VIEW has a very useful feature to view the clipboard (File/ViewClipboard). Currently, I know that I can launch VIEW with any random file and then choose File/ViewClipboard. However, I'm wondering how to invoke this directly from the command line, without first loading up another file.
     
  2. Fross

    Joined:
    May 30, 2008
    Messages:
    223
    Likes Received:
    1
    If you are interested in the contents, you could simply 'type' it.

    type clip:

    However that would only work with text data....

    Michael
     
  3. Avi Shmidman

    Joined:
    Feb 23, 2012
    Messages:
    238
    Likes Received:
    3
    Hi Michael,
    Thank you for your answer. However, your suggestion only makes sense for pure-text clipboard contents. However, let's say you simply go into explorer, select a file, and hit "ctrl-c" to copy it.
    If you "type" it in TCC, TCC will report: "Clipboard is not text format"
    On the other hand, in VIEW's View Clipboard box, you can see the full path and file info as it exists on the clipboard.
    In general, the advantages of VIEW's View Clipboard box over "type clip:" are three:
    1] The ability to view it in hex format
    2] The ability to see the clipboard through the prisms of the various available retrieval methods (unicode text, oem text, windows drop handle, OLE private data), etc., to understand why various applications are reacting as they are to the clipboard.
    3] Finally, as demonstrated above, the ability to see all formats of data, such as drop handles, graphics data [in hex format], etc., beyond just straight text.

     
  4. Fross

    Joined:
    May 30, 2008
    Messages:
    223
    Likes Received:
    1
    After I sent this I thought that you probably already knew that...:)

    Given that you won't be able to view all of that in a TCC console window, you would need a GUI application of some kind. So is your question "How can I launch view and go right to the ViewClipboard function? Perhaps with a set of switches that can defined your "prisms?"

    Michael
     
  5. Avi Shmidman

    Joined:
    Feb 23, 2012
    Messages:
    238
    Likes Received:
    3
    Yes, that is my question. How can I issue a command line command to launch view and go right to the ViewClipboard function without first needing to select a file to view?

     
  6. mfarah

    Joined:
    Nov 2, 2009
    Messages:
    226
    Likes Received:
    5
    I would expect
    Code:
    VIEW clip:
    to do the trick (can't test it now, though).
     
  7. Avi Shmidman

    Joined:
    Feb 23, 2012
    Messages:
    238
    Likes Received:
    3
    Tried that, no dice

    [/code][/quote][/code][/quote]
     
  8. FileViewer

    Joined:
    Aug 3, 2011
    Messages:
    37
    Likes Received:
    0
    You can't.

    But I can look at adding an option in the next release.

    Charles.
     
  9. Avi Shmidman

    Joined:
    Feb 23, 2012
    Messages:
    238
    Likes Received:
    3
    Hi Charles,
    Thanks! I believe that this would be a very valuable feature.
    Ideally, also, it would be great if we'd be able to use a command line switch to specify our preferred format (perhaps the user would be able to specify a format number that would correspond with the CF_ values defined in WinUser.h)
    - Avi

     

Share This Page