Prevent mouse from waking computer from sleep mode - windows-10

Mouse seems to wake my computer from sleeping at the smallest touch, this is totally useless, but found no way to turn it off.
I did disable the 'Allow device to wake computer..' under Device Manager > Mouse settings.
Windows 10 and mouse is a Logitech M220.

I suggest you the following method, check if it works correctly.
1: Open Command Prompt with Run as administrator
2: type powercfg \DEVICEDISABLEWAKE "devicename" and press Enter
3: Restart the computer
Note: Use your device name you want to disable within quotes instead of devicename, in my example my device name is HID-compliant mouse, you can find your device name from Device Properties > Hardware > Devices > Name

Related

Can't find stop button in Android Studio to stop the emulator

I don't know how to stop the emulator. Apparently, there's supposed to be a stop button but it's not there?
You can close the running Emulator by clicking the x button at the top of the Emulator tab (see image below)
Print a list of your devices:
adb devices
Kill it using emu
adb -s emulator-5432 emu kill
You can close the Emulator by clicking the X button at the top of emulator window. I found this answer on another stack overflow thread. There they've provided a complete explanation along with the original documentation. If you want you can check out that answer here
I know of no other way than the command line, as #Tian said. Closing the emulator window has no effect as far as I know...
To add more explanation:
open a terminal window (either the AS one or any other, as long as adb commands are available)
list the running connected devices with: adb devices
identify your emulator in the resulting list (usually in the form of: emulator-5556 device)
now kill the emulator with: adb -s emulator-5556 emu kill (replace the name of your own emulator in the command of course)
You'll see a confirmation message like OK: killing emulator, bye bye
enter code here
no stop button in bumblebee I also failed to find a way to stop it pressing the power button for long shows options lockdown poweroff and restart which in my case didnt work checked avd location lock file was created so finally killed it through taskmanager by ending qemu task

How do I create a hotkey to change default sound device with Logitech keyboard?

It's really annoying to have to manually change default sound device, especially when I'm playing a game.
How can I program a hotkey to do this?
Step 1: Download nircmd
http://www.nirsoft.net/utils/nircmd.html
The download link is at the bottom of this page. This will enable you to manipulate your default sound device via command line
Step 2: Unzip and move executables to your system directory
This will ensure you can just use "nircmd" in future steps instead of worrying about directory context. You can skip moving the directory if you'd like, you'll just need specify an absolute path for your shortcut in step 4
Step 3: Give your sound devices meaningful names
Right click the sound devices icon in your system tray, select playback devices
Right click sound device, select Properties
Change name to something unique (Speakers/Headphones is fine as long as nothing else is named that!)
Do this for each device you need to toggle between
Step 4: Bind your G Keys
Open the Logitech app and select the tab at the bottom that looks
like a G key
Select the GKey you want to create a binding for (there should be a down carrot when you hover over it)
Select Assign New Command
Select Shortcut
Name it something you will recognize, like "Use Speakers"
Enter the following for the command (secondtextbox), changing DeviceName to the name of the device from step 3:
nircmd setdefaultsounddevice "DeviceName" 1
Repeat these steps for each device you want to toggle between
That's it! Your keys are ready to use!

Black Screen with cursor before log in

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!!

How is the Windows 10 Game-Bar implemented?

Pressing +G in Windows 10 causes the Xbox Game Bar to open - it overlays the current application, regardless of if it's a game or not (though Windows maintains its own database of games as a hint to show the bar automatically on process startup or not)
I wondered how this is possible - I don't have any Windows 10 Xbox App-related processes running on my computer.
Process Explorer shows that when WinKey+G is pressed, the following happens:
An svchost.exe instance (which is hosting the BrokerInfrastructure, DcomLaunch, LSM, PlugPlay Power, and SystemEventsBroker services) invokes "%windir%\System32\bcastdvr.exe" -ServerName:Windows.Media.Capture.Internal.BroadcastDVRServer
bcastdvr.exe then invokes "C:\Windows\System32\GamePanel.exe {hexString} /eventType=8 (where {hexString} is a 16-hex digit (8 byte) string, presumably a window handle or equivalent).
GamePanel.exe then creates the window.
But the overlay window itself is special - it doesn't seem to be a normal hWnd - for example, I observe that my mouse cursor loses its drop-shadow and the "sonar pulse" effect (when I tap the Ctrl key to show my cursor location) stays in-place where my mouse cursor was when I opened the Game bar. I also noticed how smooth and fluid the game-bar's animations are - quite unlike a typical Win32 window. Is it using the XAML UI framework? If so, how is it doing it outside of the Windows UWP Sandbox?
Curiously, the game-bar is also able to target elevated windows too.
I tried - and failed - to inspect the windows using Spy++ because it disappears as soon as another window gets focus - but when I elected to start recording a window (so you get the recording overlay, which always remains on-screen), the overlay disappeared as soon as I used Spy++'s "Find Window" tool. How is the GameBar Recording Overlay doing this?
So it turns out that after some research, I found out that the gamebar is a .exe file located in C:\Program Files\WindowsApps\Microsoft.XboxGamingOverlay_5.120.4062.0_x64__8wekyb3d8bbwe that is opened with the Win-G shortcut (which can be changed). From what I've seen, when opened, you will not be able to see the gamebar in the apps page of task manager, but rather the background processes page where it is grouped with the runtime broker which makes me believe that it is a program that is loaded by default on boot and built in to the ram of the OS of the device. You can find the properties of the gamebar when you expand the gamebar section in the background processes section then right click the "Xbox Game Bar" and then clicking properties. I think that the transition into the gamebar are smooth because of it potentially being an app built in the RAM and offloaded as a background process by default. The SYSTEM account also has full control of the file which furthers supports the possibility that the Xbox Game Bar is a feature that is pinned on windows ram.

Identify Special key keycode

I am using a windows 8 laptop. My old laptop had a key combo, fn+f5, which would make the computer go to sleep. My new laptop has a power button on the side that acts like the one on your phone, it puts the PC to standby/sleep. But i don't like hardware buttons because they wear out.
I plugged in a logitech keyboard that has a dedicated key with the power button symbol and when you press it, it does the same thing. (i did not install any software or drivers btw, just plugged it in) My goal is to use autohotkey to assign a key combo to send the same keycode. There are baked-in some windows functions (I don't know what to call them. Shell commands?) that are supposed to put the PC to sleep but they always put it into hibernation or shut it down, not what i want, which is why i am resorting to this. Does anyone know how to intercept keycodes or something?
Paste this into a text file and save as .AHK and run.
#SingleInstance Force
#InstallKeybdHook
#InstallMouseHook
NP:="Untitled - Notepad"
IfWinExist, % NP
WinActivate
else
IfWinNotExist, % NP
Run, Notepad.exe,, UseErrorLevel, nPID
nPID=%nPID%
if (ErrorLevel){
MsgBox, there is a problem
}else{
ToolTip, Notepad running as PID: %nPID%
Sleep, 1000
ToolTip
}
WinActivate, % NP
WinWaitActive, % NP
Send, {Raw}Hello %A_UserName%,`n`nRight click on the H icon on your traybar`ngoto -> "Open" -> "View" - > "Key History and Script Info"`n`nThis area shows you your past keypresses. =]`n`n-islanq
return
AHK Literature on Special Keys - Link
AHK Literature on InstallKeyboardHook - Link

Resources