How to know the mime type of the clipboard when pressing the Print-Screen key? - clipboard

On Windows, if I press the Print-Screen key, the current screen is captured into the clipboard. Is there a way to check the mime type of the clipboard?

Related

ahk send alternative in bash script

I want to achieve in a bash script, that when I press any key (e.g. F5) and then type any word (e.g. "hello world"), regardless of whether I positioned in the terminal, or text-editor or browser...
While I was using Windows, then I used Autohotkey for that.
How could I achieve that with bash script in Linux?
While as #Socowi mentioned, you will likely not be able to do this with bash alone, you can use AutoHotkey Linux alternatives like AutoKey for this.
For your specific question, see this guide for setting up and configuring AutoKey on Linux.
More specifically, scroll down to the section labeled "Inserting repetitive text using a hotkey" for how to configure a text-typing hotkey:
Inserting repetitive text using a hotkey
Abbreviations is only one way of inserting text using AutoKey. If you
prefer, you can also insert text using a keyboard shortcut, which
doesn't require typing an abbreviation.
To insert some text that you need to type frequently using a keyboard
shortcut, click the Set button next to Hotkey, then click Press to Set
in the newly opened window, and press the key combination you want to
use for this phrase:
Make sure you use a hotkey that's not already in use or else it may
not work / it will interfere with the already set hotkey. To try this
out, set it to something like Ctrl + F1 (which shouldn't be set by the
system at least).
Remember to click the Save button in the AutoKey toolbar after setting
the phrase hotkey, or else the changes won't have any effect. Now try
it out: focus a text editor, some text field in a web form, etc., and
press the hotkey you've set in AutoKey - the Testing AutoKey text
expansion on Linux phrase should be automatically inserted as soon as
you press the keyboard shortcut.

How do you disable the office 2013 clipboard?

This is what I tried:
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\General]
"AcbControl"=dword:00000001
but the office clipboard still appears. Does this reg flag still work as described in this Kb?
And it did get set:
AcbControl does not disable the Office Clipboard, it merely disables/enables the automatic showing of the Office Clipboard pane.
You can test this manually by enabling the option "Show Office Clipboard Automatically":
If you now check your registry it will get an AcbControl entry with value 0
Now switch off the "Show Office Clipboard Automatically" option:
Check the registry again and notice the AcbControl switched to 1 (refresh RegEdit if you don't see it right away)
If you now copy twice you'll see that it still uses the Office Clipboard, but it just didn't change the status of the pane from invisible to visible.
So you can't turn the Office Clipboard off (you can programatically capture Copy commands and if detected clear the copy buffer, but I don't sense from your question that this is what you are looking for)
To completely disable Office Clipboard - use decimal value 2147483648 (or hexadecimal 80000000).
Source: https://support.microsoft.com/en-us/help/2817672/macro-takes-longer-than-expected-to-execute-many-individual-copy-and-p

How do I show or trace what command a keyboard shortcut is mapped to in Sublime Text?

My keyboard shortcut for "Ctrl+D" is currently being overridden, but I don't know where or what command is overriding it. I'm guessing it is from a plugin.
How can I see what Ctrl+D is currently mapped to?
Open the console (Ctrl`) and enter sublime.log_commands(True). Then enter Ctrl+D (or any keyboard shortcut) in the editor to see the associated command printed to the console.

docx file icon shown differently in my windows7 pc?

I have my windows 7 machine.But in my pc, icon for doc and docx shown in differently.I have also attached the screen shots for your reference.
I have saved doc file as type word97-2003 Document(*.doc)[Save as type in saveas dialog box]
Also saved docx file as type Word Document(*.docx)[Save as type in saveas dialog box]
when i accessing docx file programatically then it will throw some exception if it is in this kind of icon.otherwise it's working fine.
I dont know how to change this icon back to original word2007 icon.Please guide me to get out of this issue?

Vim in OSX: How to paste text from open window into a open file in vim?

In linux, I used Shift + Insert to paste anything in the system clipboard into the terminal. In Mac, there isn't an insert key - so, I'm left wondering how to do that ?
The standard Mac paste shortcut, Command-v, should paste the contents of the clipboard into vim, running in a terminal window, assuming vim is in insert mode. I just pasted the previous sentence into vim on my Mac, by that method. If you are new to Macs, and you have an Apple keyboard, the Command keys have an apple and a strange symbol resembling an octothorpe, with a loop at each corner. On my 3rd party keyboard, they are labeled with a diamond-shaped symbol.
This works with Macvim. The copied text is placed in the + register then in the macvim buffer hit "+p and the text will be pasted into the buffer. I find this quicker than using command-v,comand-c.
If you're using console vim then it is placed in the . register. Hit ".p to paste the text from the clipboard.
In Ubuntu, Shift+Insert is used to paste highlighted text, not to paste text copied in the buffer that was copied using Ctrl+C.
In macOS this functionality of pasting highlighted text can be done with ⇧Shift+⌘Command+V.
I hope this helps any users that are coming from Ubuntu.

Resources