ctrl

How can I set and restore FPU CTRL registers?

I can reset FPU's CTRL registers with this: http://support.microsoft.com/kb/326219 But how can I save current registers, and restore them later? It's from .net code.. What I'm doing, is from Delphi calling an .net dll as an COM module. Checking the CTRL registers in delphi yield one value, checking with controlfp in the .net code giv...

Detecting CTRL+V using AS3 in IE

I am not able to detect the keyboard event CTRL+V on a swf using AS3 in IE. It seems to trigger the default browser behavior, and im not able to do anything... Any workaround for this? ...

Clicking HyperLinks in a RichTextBox without holding down CTRL - WPF

I have a WPF RichTextBox with isReadOnly set to True. I would like users to be able to click on HyperLinks contained within the RTB, without them having to hold down CTRL. The Click event on the HyperLink doesn't seem to fire unless CTRL is held-down, so I'm unsure of how to proceed. Thanks for your help, John ...

How to capture CTRL+TAB, CTRL+SHIFT+TAB in WPF?

Does anyone have some sample code that will trap the CTRL+TAB and CTRL+SHIFT+TAB for a WPF application. We have created KeyDown events and also tried adding command bindings with input gestures but we are never able to trap these 2 shortcuts. ...

KeyDown : recognizing multiple keys

How can I determine in KeyDown that Ctrl + Up was pressed. private void listView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Control && e.KeyCode == Keys.Up) { //do stuff } } can't work, because never both keys are pressed exactly in the same second. You always to at first the Ctrl and then the ...

Override Caps Lock with Ctrl using C#

I'm writing (yet another, I know) keyboard remapper using C# and Visual Studio 2008. I followed this guide to learn how to snap up low-level key presses. This works just fine for overriding e.g. normal alphabetical characters on my keyboard, but I seem to need a bit more to make Caps Lock act like Ctrl. My understanding (which may be i...

How to capture CTRL + CTRL key presses in my Win32 application?

How would I capture the user pressing CTRL twice (CTRL + CTRL) globally. I want to be able to have my application window hidden and then make it visible when the user invokes it with the CTRL+CTRL key presses similar to Google Quick Search Box. The user may have focus on a different window. I've looked at RegisterHotKey, but that seems t...

How to assign shortcut key (something like Ctrl+F) to text box in windows form?

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? ...

IE 7 CTRL + click opens a new window - how to suppress it?

Is it possible to suppress the default IE 7 functionality when CTRL+click on link opens a new window? if so, how? Thanks! ...

Threading multiple WebBrowser in VB .net

I'm building a multiple webbrowser inside tabs( 1 predefine webbrowser control per tab) and I want them all to load at the same time or other words must run in thread. Unfortunately I feel a valid fact came from the error message that this is something not possible. Pls help me to check my simple program code below and its error in case ...

ctrl+click or shift+click not always firing the onclick event

Hi, I recently discovered that different browsers handle the onclick event differently when the control of shift key is pressed. Same thing for following links with the middle mouse button. <a href="http://www.example.com/" onclick="alert('onclick');">go to example.com</a> Onclick browser support table Mouse Keyboard C...

vim mapping ctrl-;

In my case the move-right button is ; I want ctrl-; to move the cursor 7 characters to the right. the below .vimrc mapping doesn't work: nmap <c-;> 7; what's wrong? ...

how to change the modifier key from cmd to ctrl in IntelliJ at a Mac?

how to change the modifier key from cmd to ctrl in IntelliJ at a Mac? I have changed it system wide but it hasn't changed in intellij. ...

Python - Using os.popen() to parse Unix "ls" - Problems with Killing Child Process

Hi all. From my understanding, os.popen() opens a pipe within Python and initiates a new sub process. I have a problem when I run a for loop in conjunction with os.popen(). I can't seem to CTRL+C out of the loop. Here is my code: for FILE in os.popen("ls $MY_DIR/"): os.system("./processFile " + FILE) Whenever I try to CTRL+C, ...

Shift+Click Event Woes

Hi there! I'm sure i'm doing something terribly stupid for this not to work, but I can't get my shift event to fire. I've tried both: $('.ShowCannedReport_UserFilterDropdown').each(function (index, element) { $(element).bind('click', function (event) { if (!event.shiftKey && !event.ctrlKey) { ShowCannedReport_Us...

VS2010 CTRL+M keyboard shortcut has stopped working.

I have a strange problem which seems to have recently appeared. I used to be able to press the keyboard shortcut CTRL+M+O to 'collapse to definitions' in VS2010 when editing code, but it seems suddenly the CTRL+M key seems to have stopped working. When I now press the key combination I get the Open File dialogue. I have tried the obvio...

Can I map Control to the Caps Lock key and keep the toggle functionality in Linux?

Can I change the Caps Lock key to Control and still keep the on/off nature of Caps Lock? I've checked into using xmodmap and seem to have hit a dead end. Many people want to swap them, but they also want to swap the way they work. I'd rather keep my new Control key as an on/off switch for Control. ...

C# - Capturing CTRL-Mouse wheel in WebBrowser control

Hi, I'm developing a Windows Forms application in C# with an embedded WebBrowser control to "dummy-proof" (i.e. disable context menus, back button, free navigation, etc.) access to a third-party web application. Right now I'm trying to add the Zoom feature to my custom browser. I have the keyboard combos working for it (CTRL + and CTR...

start without debugging (F5) and start with debugging (Ctrl + F5)

Hi, I have been working on a uni C++ project. I am presently using VS2010 . It is almost the end and now I am facing a strange problem. I try to run my program in debug mode by pressing F5. It works fine. Then I try to run the program by pressing Ctrl + F5, and I get an exception at free.c (It gives an exception to vector.push_back)....

Hooking CTRL pressed in GTK+ application

How can I hook CTRL pressed in "drawingarea_button_press_event_cb" function of GTK+ application? void drawingarea_button_press_event_cb( GtkWidget *widget, GdkEventButton *event ) { ........ } ...