56
18
I'm trying to debug a Visual Studio C# Windows application that immediately takes over the desktop and disables mouse control. When it freezes, I need to be able to stop it somehow. I can press the windows key or ctrl-alt-delete and access the taskbar, but when I move the mouse onto the main part of my screen it's always an hourglass icon and I can't interact. So when I right-click to close the application on the taskbar and a dialogue pops up asking if I want to stop debugging, there's no way for me to click it. I also can't click on anything in task manager.
I looked into how to end tasks from command prompt, but the directions don't make sense. schtasks /end
requires a task name argument that seems to take a path, but I have no way of knowing what the path is that I'm supposed to input. tasklist
returns file names and ID numbers, but neither of those work for schtasks
.
Does anyone have any suggestions?
3ALT+F4 will close any program on Windows – Ramhound – 2017-03-18T16:35:47.630
59@Ramhound Alt+F4 will send a window-close message to the application. If it's unwilling to handle it (e.g. by dropping the event or doing something else) this won't work. – Reinstate Monica - ζ-- – 2017-03-18T16:40:59.367
3@Ramhound It won't close non-GUI programs or programs that choose to ignore the close event. – Carey Gregory – 2017-03-18T16:42:34.250
1If the problem is that a dialogue pops up that can't be manipulated with mouse, you might simply be able to navigate it's buttons by tab or arrow keys and press them with space or enter. – Džuris – 2017-03-19T00:10:29.380
Yes, use the space and enter after the dialog box appears. – JDługosz – 2017-03-19T08:52:21.227
18pull the plug, afaik this worked for all versions of windows. – Display Name – 2017-03-19T09:11:38.000
10Using Ctrl+Alt+Del, Ctrl+Shift+Esc, Win+R and so one don't necessarily require you to use your mouse. Almost all of Windows's functionalities can be used using the keyboard only. For this, you can use the arrow keys, the tab key, or Alt key navigation. – BlueCacti – 2017-03-19T22:44:16.950
2Ctrl+Alt+Delete and then you need to exercise your Tab Fu – xDaizu – 2017-03-20T13:58:18.903
3@SargeBorsch - Doesn't work for my laptop. – Daniel R Hicks – 2017-03-20T20:06:40.030
@DanielRHicks does it have removable battery? – Display Name – 2017-03-20T21:31:46.837
Alt+F, x
is my first goto. – mcalex – 2017-03-21T19:16:03.643@mcalex This doesn't work if an application is unresponsive. – mbomb007 – 2017-03-21T21:19:24.990