I've got some AutoHotKey scripts that I use to move windows around my monitors. for example, I have [Shift]+[Win]+[Up] set to move the current window to the monitor above the current one ans size proportionally
My problem is that, since upgrading to windows 10 on Friday, executing one of these functions still performs its hotkey action, but then when I release the Shift key while still holding Window, the start menu opens. When I was still on 7, the start menu would only open if I pressed and released the Window key without pressing any other keys.
I don't have this problem with my hotkeys that use Control+Window instead of Shift. It's only when I press and release the Shift key while holding Window.
How can I fix this?
If your hotkey sends any keys other than LWin/RWin, that should suppress the Start menu. For example, Send {Blind}{vkFF}.
If it fails to suppress the Start menu, that most likely means the Win key is being released (virtually or physically) before you send the key, or released and pressed again after you send the key, and is not being masked correctly. You can troubleshoot this by using KeyHistory, which should show a Win-down immediately followed by a Win-up, and should indicate whether these events were generated by AutoHotkey and with what timing.
The Start menu should appear only if you press and release a Win key while not holding any other modifier keys, and without pressing or releasing any other keys. In other words, what you describe should not be possible unless your hotkey is directly or indirectly releasing Shift and pressing and/or releasing the Win key (and Send is failing to mask it).
Recent versions of AutoHotkey do not mask the Win key when used in hotkeys like +#Up::, because the presence of the Shift key has already masked it.
Related
In using AutoHotKey to block access to ALL keys, all keyboard shortcuts do stop working and the windows key on its own can be blocked i.e.
LWin::Return
RWin::Return
also all other keyboard shortcuts are blocked, however windows + L seems to operate on a higher level and works regardless.
I'm not sure if Autohotkey actually can disable the win+L combination, but it can be done through the registry. Here are detailed instructions: How to Disable the Lock Screen Shortcut Key (Win + L) in Windows.
To summarize:
In the registry editor, navigate to this key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies.
Add a new key, "System", in "Policies".
In your newly created "System" key, add a new "DWORD (32-bit) Value".
Name the value “DisableLockWorkstation” and set its value data to "1".
Log off/on or restart.
Note that I haven't verified if this works. Also note that the linked instructions also includes steps to disable all WinKey combos if that is your desire.
I'm writing a script to control a specific application with hotkeys. I divided my task into three tasks:
monitor for global keys,
match pressed global hotkeys to keys to be sent,
send keys to specific application.
Let's say i want to send Ctrl+A to Notepad.exe when i press Ctrl+F3 from anywhere. It's important that the application (notepad in this case) i want to control will not be in focus before i press hotkeys and after it.
I suppose task 3 is about to work with pywinauto and it's keyboard.SendKeys. Task 2 is not difficult. But i have no idea how to monitor (in cycle? depending on keyboard events?) for global hotkeys.
I have used DevC++ and similar environments also have this application. While the overwrite mode is on the code overwrites instead of code moving to right.
The issue can be solved by using fn + insert(print screen) in Windows 8 or above and insert key in lower versions.
Like #Kokul says, you can press the Insert Key. If your Windows machine does not have a physical Insert key, you can press the virtual one, which you can find by pressing:
Windows Key > Ease of Access Keyboard Settings > Use the On-Screen Keyboard
Then press the Insert key which is located on the virtual keyboard to the right of the Enter key. Pressing the virtual key will behave like pressing the physical Insert Key.
I have tried all the possible solutions to solve it given in the internet. But my problem does not solved.
So I want to reset my pc. If so is my pc get back to normal state. Previously I have resetted my pc for another problem. Is my resetting option works again. My friends said that reset options works only once...
Can anybody suggest me what to do??
The issue here seems to be that Windows thinks you have a new monitor that does not exist.
The most common solution that seems to have worked for many people (did not actually work for me, but worth a try): Wait long enough so the mouse cursor to appear when you move the mouse. (blank screen with a white mouse cursor) Then press the Ctrl and enter your login password. Wait until login competed then press Win+P keys, down arrow keys twice, and enter to extend display. (this spans your monitors onto one display)
The solution that worked for me was to unplug all monitors, reboot (hard reset, holding down power button), then plug in just one monitor. (may need to reboot again)
I solved the issue by pressing
Press Ctrl+alt+Esc.
Task Manager Window Appears,Then Click File
Option above,then Select Run New Task from the options that are
listed.
3.Create New Task Window appears and type "explorer" and press Ok. Screen Appears and Restart your laptop again .
You can try the following solution. It works perfectly. 1. Press Ctrl+alt+del 2. Select Task manager 3. Select File option above 4. Click Run new task 5. Type "explorer.exe" and press Enter You'll screen appears again!!
I’m currently writing an MFC dialog app which has a menu. The menu displays correctly and the menu entries work correctly via mouse, accelerators, and hotkeys (e.g., to quit: Ctrl+Q or Alt+F,Q).
Unfortunately, the Enter key doesn’t seem to work. That is, pressing Alt+F will open the File menu and pressing ↑ will highlight the Quit entry, but pressing Enter will not select it.
I know that using menus in dialog apps can be a bit tricky, but I’ve done this successfully before. However, that was a long time ago with a customized VS wizard, so I am trying to remember how to do this from scratch. I tried checking my old code, but could not find anything in reference to VK_RETURN. (No, there’s nothing special in PreTranslateMessage.)
These two questions are related, but they want the dialog to receive the key, I need the menu to get it.
Does anyone know what the problem is and how to fix it?