Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In the case where clipboard sharing is not possible, because there is just a console and no GUI.

share|improve this question
1  
Which operating system is the host? –  iglvzx Feb 7 '12 at 7:10
    
soz, I'm interested in Linux/Ubuntu. But, I think it is ok to keep the question operating system nonspecific. –  stytor Feb 8 '12 at 23:43

2 Answers 2

Can do that with AutoHotKey on a windows host.

I wrote this script which sends the contents of the clipboard once you press Win+v.

Save it as sendClipboard.ahk:

; win + v
#v::
  SendRaw %clipboard%

if you've installed AutoHotKey, you can execute it by double-clicking the file. a "H" icon will appear in the system tray notification area.

Now you will be able to use Win+v to send the clipboard contents as text to the active window.

NOTE: don't forget to press your HOST key, usually the right Ctrl, in order to return the focus to your host os, before using Win+v.

WARNING The script is basic and does not try to protect you from inserting eg. a big image data from the clipboard as text... so it requires you to understand and know what you are doing to make use of it.

share|improve this answer

If you cannot install Guest additions to share the clipboard, you need to create a script on the host OS that stores the clipboard text in a file in a shared folder. On the guest OS you need to create a script that reads any new file in the shared folder and types the content of the textfile.


old, false answer (may still be useful to others)

In order to enable sharing the clipboard between your guest OS and your host OS, you have to install Guest additions (http://superuser.com/questions/42134/virtualbox-shared-clipboard).

Then you need to run a script on your guest OS that listens for clipboard changes. If you use Windows, you can accomplish something like that using AutoHotkey. The script will type the content of the clipboard as text when the content of the clipboard changes.

For Mac you would also have to use a macro program like Keyboard Maestro or iKey. And for Linux some obscure command line tool that requires an software engineering degree to understand.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.