Possible Duplicate:
How can I determine whether Console.Out has been redirected to a file?
Is there a way of telling whether the stdin stream to a console app is coming from the console or from a file using .Net?
I'm writing an app that should read from a file on the stdin if there is one but ideally shouldn't read from the s...
Hello,
I would like to be able to hit SHIFT-CTRL-8 and 9 to get { and } in Ubuntu. Any ideas on how to do that?
-Martin
...
Sometimes a keystroke on a form can have different recipents, depending on the state of the application. See the following sample:
unit Unit1;
interface
uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
ComCtrls,
Buttons;
type
TForm1 = class(TForm)
private
ListView1...
I'm attempting my first modification of Emacs. I recorded a little keyboard macro and had Emacs spit it out as elisp, resulting in:
(setq add-docstring
"\C-rdef\C-n\C-a\C-m\C-p\C-i\C-u6\"\C-u3\C-b")
(global-set-key "\C-c\C-d" 'add-docstring)
Searching the Emacs reference, though, revealed that C-c C-d is already bound in diff mode...
I have a dialog with a number of Alt-Letter shortcuts on labels for textboxes/etc. This dialog can present data in either an editable or a read-only mode. I've received a request to hide the underlines for the shortcuts if the dialog is in read only mode. Other than editing the label text at runtime (ugh) is there any way to remove th...
I would like to bind C-` (control-backquote) but I could not do it.
The sexp
(global-set-key "\M-`" 'other-window)
works, whereas
(global-set-key "\C-`" 'other-window)
doesn't. It fails with the "Invalid modifier in string" error.
...
I like to insert all members of a object automatically, so I dont need to type them (or even click them). Ctrl+J gives me the dropdown, but I like them all in code with a default value,
MyObject.Member1=0;
MyObject.Member2="";
MyObject.Member3=0;
Any Add-In or existing shortcut that can help me with that?
/Edit : I like to have the...
I have a command binding on the main form of my application. It is used to open details of the item that i am viewing. It has an associated keyboard shortcut.
When i use the command in sub-forms i pass the object i want to open details for as a CommandParameter. This works if i attach the command to a button or a context menu, as i can ...
Hi,
I am builing one tool using C#. Its an windows application. I have one text box on a form and I want to assign focus to that text box when user presses Ctrl+F or Ctrl+S. I dont know how to do this.
Can anyone please tell me how to do this?
...
Hi there
I have a MenuBar which contains general menu items like File, View, Tools ,Help.
I have sub items in each of those menuitems.
The problem is that i want to open the 'File' menu automatically when i press Alt+f key.
I could capture the keyevents on the view.
But how to open the File Menu of the MenuBar (what is the function t...
Several MS apps support the concept of chords, like "CTRL+X,Y" which means "holding down CTRL, press X, then Y".
Is this a bespoke thing they (and other companies) implement, or is it built into any APIs? It would be nice to be able to set up event handlers or accelerators based on chords rather than write code to do it.
...
I think some shortcut to create a method stub in eclipse might be useful. Does anyone know how to do it?
...
Consider a snippet of CSS code from a .css file in Visual Studio 2010 to be commented out.
Normally Ctrl-E + Ctrl-C will comment your selected HTML and other source code.
Highlighting CSS code & executing that shortcut combo results in a warning message:
The key combination is bound to command (Comment Selection) which is not cu...
Hey,
How to create shortcut to menu in WinForms.
I think about something like in Visual Studio and Firefox, where I press Alt and mainly menu items shortcut letters have been underline.
How to do this??
...
I have a lot of data-entryists using my ASP.NET application and we have all been wondering if there are any keyboard keys or shortcuts that you can press to trigger:
Check a RadioButton
Uncheck a RadioButton
Check a Checkbox
Uncheck a Checkbox
I know that you can write Javascript and do it yourself, but do any keyboard keys/shortcut...
There seems to be an issue simulating the backspace key with java.awt.Robot.
This thread seems to confirm this but it does not propose a solution.
This works:
Robot rob = new Robot();
rob.keyPress(KeyEvent.VK_A);
rob.keyRelease(KeyEvent.VK_A);
This doesn't:
Robot rob = new Robot();
rob.keyPress(KeyEvent.VK_BACK_SPACE);
rob.keyRelea...
This is a feature I have grown accustomed to in Eclipse (alt-tab). Is there an equivalent in Visual C++?
Thanks!
...
I've been using JQuery hotkeys to make an internal tool for a team of developers. It'd be nice for them to be able to navigate through the entire page using only the keyboard, but I've been having problems when they end up in input fields. Is there a way to bind a hotkey and make it work even inside an input element?
I got my jQuery-h...
When in incremental search mode in Eclipse, is there a way to select the rest of the word?
For example, suppose I want to find the word “handleReservationGranted”. I type Ctrl-f to enter incremental search mode, and start typing the letters “han”. Now suppose I have found the beginning of “handleReservationGranted”. In my search box I h...
There are a zillion questions on SO about keyboard shortcuts in Eclipse, but there's I've always wondered if there is an underlying logic to the decisions of which shortcuts would be ctrl+alt+[some letter], and which would be just ctrl+[some letter] etc. Obviously there is a need to use a variety of combinations because there are only so...