AutoMouseLock icon indicating copy to clipboard operation
AutoMouseLock copied to clipboard

Sometimes it doesn't work.

Open ghost opened this issue 9 years ago • 43 comments

This is my setup:

monitor_setup

I don't know what else to tell you. Appreciate the effort, though.

ghost avatar Jun 01 '17 01:06 ghost

What do you mean by "sometimes"? In some games (it works in some games but not others)? Or does it sometimes work in some game and sometimes doesn't work in the same game?

CyberShadow avatar Jun 01 '17 06:06 CyberShadow

I only tested it with CS:GO, and sometimes when I was playing and I moved the mouse fast to the right the game minimized. Sorry if that was unclear.

Another thing I can tell you is that my mouse is set to 5000 dpi when playing. Don't know if that makes a difference or not.

ghost avatar Jun 01 '17 10:06 ghost

Simple way to test if it's working: open a menu or any part of the game's interface where a mouse cursor is visible. If you can't move the mouse cursor to your other monitor, then it is working.

If the game minimized, then it is likely to be due to something else: a mouse gesture interpreted by another program, clicking on an overlay, clicking on an always-on-top window that wasn't visible because it was under the 3D overlay, or it could be a coincidence and the minimization was not due to mouse input (e.g. due to another program's window requesting focus).

CyberShadow avatar Jun 01 '17 10:06 CyberShadow

I did try that and the program does work. However sometimes when I moved the mouse to the right it minimized. I really don't know what else it could be, but I will test it further today, and maybe make a video of it or something.

ghost avatar Jun 01 '17 10:06 ghost

However sometimes when I flicked really fast to the right it minimized. I really don't know what else it could be, but I will test it further today, and maybe make a video of it or something.

A video probably wouldn't help. Here is some things you could try to fix or narrow down the problem:

  • Make sure you are using the right version of this program, as downloaded from here. There may be other programs with similar names and functionality, so be aware of possible confusion.

  • Make sure you aren't using any other similar programs while AutoMouseLock is running. This includes macro programs like AutoHotKey, as well as any complementary software that may have been bundled with with your mouse or keyboard, or their drivers.

  • Try closing other programs running in the background or system tray. That applies to all programs which aren't strictly needed to run the game and AutoMouseLock.

  • Check the game's settings. It should use the same resolution as your desktop resolution (which should be the same as the monitor's native resolution for LCD screens), and use either exclusive full-screen or windowed full-screen (a.k.a. borderless windowed) mode.

  • It could be an issue specific to the game or game engine. Check if you can reproduce the problem in another game, especially one using a different engine.

  • Finally, it would be worth trying to reproduce it with another mouse, if possible.

CyberShadow avatar Jun 01 '17 10:06 CyberShadow

A video probably wouldn't help.

Why not? I mean a video taken with a video camera, not a game capture.

ghost avatar Jun 01 '17 11:06 ghost

Why not? I mean a video taken with a video camera, not a game capture.

Because I think you described what the problem looks like well enough, and I don't think it would provide any more information than your description. You're welcome to record one, of course, but trying things from the list I posted above would probably provide more information.

CyberShadow avatar Jun 01 '17 11:06 CyberShadow

Ok, I'll try my best to provide more information.

ghost avatar Jun 01 '17 11:06 ghost

I wasn't able to replicate it on camera, but it happened twice while I was playing. No other application was requesting focus when the game minimized.

ghost avatar Jun 01 '17 13:06 ghost

The problem is probably related to the automatic activation function (the fact that it has to detect a fullscreen application in order to run). You should make a version without that function and I will test it and report back.

ghost avatar Jun 01 '17 13:06 ghost

Can you compile a debug version? It will print activations and deactivations to a window, which you can place on another monitor and see what it's doing.

CyberShadow avatar Jun 01 '17 18:06 CyberShadow

Sorry, but I can't. I'm not a programmer and have no experience in that field.

ghost avatar Jun 01 '17 18:06 ghost

OK, here is a debug build:

https://dump.thecybershadow.net/04f14fa7d7be5be9dd1e79ae2bb70eee/AutoMouseLock-signed.exe

You can ignore the lines with just numbers; look for the lines with the words "Locking", "Unlocking", "Success" and "Failure". If you see anything suspicious, make a screenshot.

CyberShadow avatar Jun 01 '17 19:06 CyberShadow

This is what it looks like after it minimizes:

unlocking_success

One more:

unlocking_success_2

ghost avatar Jun 01 '17 23:06 ghost

Hmm, first screenshot looks a little suspicious, looks like something stole focus or you clicked on an invisible window? Have you tried closing other programs yet?

Here's a debug build that shows more information, see if you can get it to happen again like the first screenshot:

https://dump.thecybershadow.net/a41ad1e409e779f54ba98e5a2c8b7039/AutoMouseLock-signed.exe

CyberShadow avatar Jun 02 '17 10:06 CyberShadow

New build:

program_manager

ghost avatar Jun 02 '17 11:06 ghost

The first screenshot was your application requesting focus, the second one is the Windows desktop itself. So like I mentioned, there is a problem with the automatic function. A version without it would be better.

ghost avatar Jun 02 '17 11:06 ghost

The first screenshot was your application requesting focus

What do you mean? Did you run it a second time? You should terminate past instances before running a new one.

the second one is the Windows desktop itself.

Yes, nothing suspicious there. Looks like the game minimized and the desktop became focused. Still no clue as to what caused it.

CyberShadow avatar Jun 02 '17 11:06 CyberShadow

What do you mean? Did you run it a second time? You should terminate past instances before running a new one.

I was running it on the second monitor, and when it minimized it became the focus instead of the desktop. And that was the window size of it (640,1020).

ghost avatar Jun 02 '17 11:06 ghost

OK. The program definitely does nothing to request focus to its console window, so it was likely the OS giving focus to the next window in the Z-order. The non-debug version does not create any windows at all.

See my comment above.

CyberShadow avatar Jun 02 '17 11:06 CyberShadow