Category : keyboard-shortcuts

I am using nano editor via SSH to edit files. It has a mapping to control+w for the "where is" command. However, in Windows 7, this keeps closing the terminal window. Is there any way to either disable this control+w to close window binding in Windows 7? I was able to edit the key binding ..

Read more

I wonder if I did something incorrectly, or it is a Windows bug. Here is my code: #include <iostream> #include <Windows.h> using namespace std; int main() { bool quit = false; while (!quit) { bool rightAltMod = GetAsyncKeyState(VK_RMENU); bool leftControlMod = GetAsyncKeyState(VK_LCONTROL); //press and hold right alt to see the bug cout << "rAlt pressed ..

Read more

I’m trying programmatically press a key in other app. Using functions of user32.dll (btw, does it make sense if the app is 64-bit application). I do smth like this: const uint KEYEVENTF_EXTENDEDKEY = 0x0001; const uint KEYEVENTF_KEYUP = 0x0002; private const int VK_F9 = 0x78; [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern IntPtr FindWindowEx( IntPtr ..

Read more