Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quits after launching in Window 11 #18

Open
pukkancsanyo opened this issue Jan 7, 2025 · 14 comments
Open

Quits after launching in Window 11 #18

pukkancsanyo opened this issue Jan 7, 2025 · 14 comments

Comments

@pukkancsanyo
Copy link

Hi,

I tried to use mousemaster on a Window 11 machine, but I faced a strange issue. After clicking the exe file, a window (probably the command promt) flashes for a split second, but the program doesn't load. I tried on a Windows 10 machine, and had no problems.

My system specs are Windows 11 Pro, 24H2. I doesn't have administrative privileges, as it is a company computer, but I don't think that should be a problem, since it is a portable app.

Do you think there is any way to make it work?

Thanks a lot.

@petoncle
Copy link
Owner

petoncle commented Jan 7, 2025

Hi there! Do you know how to use the Windows command prompt? That would be helpful to understand the problem:

  1. Open a command prompt (type cmd in the Windows start menu).
  2. Move to the directory where mousemaster is. For example, if mousemaster.exe is in C:\Users\pukkancsanyo\Downloads, then type this (followed by Enter):
cd C:\Users\pukkancsanyo\Downloads

Now you should see this:

C:\Users\pukkancsanyo\Downloads>
  1. Type mousemaster.exe and copy the error that you see.

@pukkancsanyo
Copy link
Author

Hi,
Thank you for your attention to my matter. I did what you suggested and paste the screenshot about the error here:
image
I can see that there is some problem with the java, but I don't really know how it could be solved (if at all).

@petoncle
Copy link
Owner

petoncle commented Jan 8, 2025

Thanks for sharing the error. It's an annoying one that happens when your Windows username contains special characters (technical details here).
The only way to fix it currently is to run mousemaster from the command line by adding the -Djna.tmpdir parameter like so:

(cd the directory where mousemaster.exe is)
mousemaster.exe -Djna.tmpdir=.

Let me know if that works for you, we could then create a .bat file to simplify it.

@pukkancsanyo
Copy link
Author

I tried to do this, but alas, still have an error:

image

Tried to use the parameter in the way you indicated in the other thread, but unfortunately, got the same results.

@pukkancsanyo
Copy link
Author

I tried it in C: , but there is still an error:

image

however, two dll-s also appeared:

image

I tried it on a separate USB, too, with the same results.

@petoncle
Copy link
Owner

petoncle commented Jan 8, 2025

I tried it in C: , but there is still an error:

image

however, two dll-s also appeared:

image

I tried it on a separate USB, too, with the same results.

This is good. The remaining error is because it's not running as administrator, but we can fix that later. Most of it should work even when not running as administrator. Do you confirm that it's mostly working, now?

@pukkancsanyo
Copy link
Author

Sorry for being a bit ambiguous, by the word "error" I meant to say that it still does not work. The black cmd window flashes for a moment, and then, nothing.

@petoncle
Copy link
Owner

petoncle commented Jan 8, 2025

Ok, let's see what we can do. I'm looking at the screenshot where you ran mousemaster.exe -Djna.tmpdir=.. A few lines are displayed after that, including one showing the mousemaster version (v60).
Can you walk me through what happened after that? Did the command line window close itself automatically after you took the screenshot? If it did close automatically after taking the screenshot, would you be able to take a video recording of it?

@pukkancsanyo
Copy link
Author

Yeah, sure. The command line window does not close automatically, it remains open and even reacts to what I'm doing. I mean that whenever I press a button, it writes out something like this:
2025-01-09T09:10:16.005+01:00 [main] DEBUG mousemaster.ComboWatcher - currentMode = idle-mode, currentlyPressedComboKeys = [], comboPreparation = [+h], partOfComboSequence = false, mustBeEaten = false, commandsToRun = []

@petoncle
Copy link
Owner

petoncle commented Jan 9, 2025

Yeah, sure. The command line window does not close automatically, it remains open and even reacts to what I'm doing. I mean that whenever I press a button, it writes out something like this: 2025-01-09T09:10:16.005+01:00 [main] DEBUG mousemaster.ComboWatcher - currentMode = idle-mode, currentlyPressedComboKeys = [], comboPreparation = [+h], partOfComboSequence = false, mustBeEaten = false, commandsToRun = []

This indicates that mousemaster is waiting for you to press a key combo that matches what's defined in the configuration file. Are you using the neo-mousekeys.properties configuration file? The activation combo is leftctrl + e. What is written in the command line window when you press the activation combo?

@pukkancsanyo
Copy link
Author

Ah, cool, I see now! Sorry for being lame with the last question; it behaved so differently on my other machine. It seems to react now, but if I face any problems, I may come back to you.

Thank for all your help, and keep up your great work!

@petoncle
Copy link
Owner

petoncle commented Jan 9, 2025

No worries! That's great, let me know if you encounter any other problem. Also, we can work on creating a .bat file that you can simply just click instead of having to open cmd and launch mousemaster.exe manually. Let me know if you think that would be helpful.

@pukkancsanyo
Copy link
Author

Hi, I've been testing it, and everything seems OK. That bat file would definitely be helpful, but I can live with this method, too.

@petoncle
Copy link
Owner

petoncle commented Jan 12, 2025

Create a bat file (e.g. mousemaster.bat) in the same directory and put this inside:

cd %~dp0
mousemaster.exe  -Djna.tmpdir=.

I think that should work and you should be able to just double click the bat file. You can also run the bat file as admin if you want the mousemaster overlay to be on top of every other applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants