In windows, can the right click context menu be altered to only Paste? - windows

I'm not sure if this is possible, but can the context menu in windows that appears when you right click be removed and just have it perform one function. For example... if I right click over an input I see a menu with options: undo,cut,copy,paste,delete. I want no menu to appear and right click to do one thing only, PASTE. I don't want to choose paste from a menu, just do it instantly when I right click.

Related

Add item to Right click Drag and Drop contextual menu on Windows

I need to add items to the contextual menu when I drag and drop a file using the right click.
I can manage to add item in registry for just right click on the file, but not when dragging to another folde.
This is what I'm using just for the right click and works fine.
[HKEY_CLASSES_ROOT\*\shell\TrimResizePicture]
#="Players/Pictures Trim Resize to *x1500"
"Icon"="C:\\cmd_Scripts\\photo2.ico,0"
[HKEY_CLASSES_ROOT\*\shell\TrimResizePicture\command]
#="\"C:\\cmd_Scripts\\resize_trim_picture.bat\" \"%1\""
This is what I've tried for drag and drop right click, and is not working.
[HKEY_CLASSES_ROOT\*\shellex\DragDropHandlers\TrimResizePicture]
#="Players/Pictures Trim Resize to *x1500"
"Icon"="C:\\cmd_Scripts\\photo2.ico,0"
[HKEY_CLASSES_ROOT\*\shellex\DragDropHandlers\TrimResizePicture\command]
#="\"C:\\cmd_Scripts\\resize_trim_picture.bat\" \"%1\""
This is the menu I need to add stuff

Can't move toolbar item into toolbar menu in Visual Studio customization

I'm using Visual Studio 2017, and I really need a menu with useful buttons in the toolbar, now when I got into the customization menu TOOLS -> Customize -> Commands.
I made a custom menu "MY_MENU" and menu item "Close Project", but for some reason I just can't move the menu item into the menu (see picture). How do I do this?
I believe I had the same problem as the questioner, and managed to solve it, details below.
Note: I use Visual Studio 2015 Professional, but this should apply to later versions as well.
Scenario
I created a new Toolbar FooToolBar, and placed to the toolbars like this:
Goal
To place the "Solution explorer" icon inside the menu.
Problem
Inside the Customize window you can't just drag&drop the item to the menu:
Solution
Inside the Toolbar combobox, a new item appeared, select that:
After this, you will see a new area where you should place the icon you wanted to.
Also, remove the previous icon from the previous, FooToolBar toolbar item.
After doing this, press OK and it will work.
Result
I hope I helped someone. :-)
Warning: After you customize a toolbar or menu, make sure that its check box remains selected in the Customize dialog box. Otherwise, your changes won't persist after you close and reopen Visual Studio.
Adding, removing, or moving a menu on the menu bar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Commands tab, leave the Menu bar option button selected, leave Menu Bar selected in the list next to that option, and then perform one of the following sets of steps:
Adding, removing, or moving a toolbar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Toolbar tab, perform one of the following sets of steps:
To add a toolbar, choose the New button, specify a name for the toolbar that you want to add, and then choose the OK button.
Customizing a menu or a toolbar
On the menu bar, choose Tools, Customize.
The Customize dialog box opens.
On the Commands tab, choose the option button for the type of element that you want to customize.
In the list for that type of element, choose the menu or toolbar that you want to customize, and then perform one of the following sets of steps:
To add a command, choose the Add Command button.
In the Add Command dialog box, choose an item in the Categories list, choose an item in the Commands list, and then choose the OK button.

Whats the meaning of the "build&run" button's arrow?

Out of curiosity, when you open xCode and you want to run your app, you must to click "Play" button:
But when you hover this section, a little arrow appears (downright)
Does anybody know the meaning of that element, I thought it was a hidden menu.
When you click and hold on that button, a Menu will appear where you can switch the default action for this button.
You can see the other options here:
Note that you can modify these options by holding either shift (just build), alt (brings up the scheme selector for that scheme first) or ctrl (don't build, just run).

Xcode 5: disable single-click in navigation

So, after struggling with horrible interface choices of Xcode 4, I'm finally on 5.1.1.
The tabs became almost usable. Double clicking can be configured to open a file in a new tab. Good. Double clicking another file opens it in a new tab. Good. Double clicking first file again switches to previously open tab. Good! Double clicking first file while it is open in current tab opens a second tab with that file. Ok, I can live with that, since from there on they just switch from one to another.
So far a surprisingly sane behavior.
Unless you make a single click in the navigation panel by mistake. Single click opens whatever you click in the current tab, all logic and reason be damned.
The question is, how to change single click behavior to "Use separate tab" (or however Xcode refers to that behavior)?
Is there any way to disable single clicks from doing anything at all aside from highlighting the selection?
There's no option to disable the single-click behavior. Two options that get you close to your desired behavior are:
Use a single separate window for most of your tabs. Use a "main" window that has the file navigator visible, and a separate "work" window with the file navigator hidden. If you want to add a tab to the work window, create it in the main window and then drag it's tab over to the work window. This is an extra step, but you'll never have a single click change any of the tabs that you care about (thought it'll still change the primary or focussed editor in the main window, depending on your settings).
Use separate windows for each file. There's a preference setting that lets you create windows instead of tabs when you double-click a file in the file navigator. Use Mission Control instead of the tab bar to navigate between your files.

What's the class/id of the Firefox right-click menu?

I'd like to write a userstyle to modify the right-click menu in Firefox, but need its XUL class and ID. What is it?
(I'd usually use DOM Inspector to find it out, but one can't inspect a right-click menu because focus is lost when switching to the DOM Inspector window.)
The right click context menu that appears when you right click on a webpage has the id = contentAreaContextMenu. You can see here some information on modifying it.

Resources