repeats / Repeat

Cross-platform mouse/keyboard record/replay and automation hotkeys/macros creation, and more advanced automation features.
Apache License 2.0
1.03k stars 76 forks source link

Stuck at press 'play' button and can't start in Windows 10 1709 #18

Closed vanloc0301 closed 5 years ago

vanloc0301 commented 6 years ago

Hi @hptruong93 ,

I have two problem when start Repeat on Windows 10 build 1709.

Information:

Repeat version: 4.0.1 latest version. Windows 10 build 1709. JDK 7 updated 79

The first problem:

I tried run Repeat in command line with command: java -jar Repeat_4_0_1.jar.

An error appear look like this:

capture

Error code:

Exception in thread "main" java.lang.IllegalArgumentException: URI is not hierarchical

Second:

When click button recoder to recoder all action in my screen. When recoder success, I tried to click button play to repeat all action but it stuck (don't run anything when I click button play).

Hope receive your response with this problem. Thank you very much. 💯

hptruong93 commented 6 years ago

Could you try changing the path to not containing a white space? Your directory "tool auto" has a white space in it. Try renaming it to tool_auto to see whether the problem disappears.

hptruong93 commented 6 years ago

Confirmed that having space in the path was the cause of the problem. For the second problem, when recording actions in other programs, you may need appropriate permissions. That is, you may need to run Repeat as administrator in Windows.

vanloc0301 commented 6 years ago

Thanks for first the problem. At the second problem, I think to have the problem relate to Windows 10. I receive two response from the user for this problem.

hptruong93 commented 6 years ago

For the second problem, have you tried running it as administrator? If running from terminal, you'll need to run the terminal as administrator (search for terminal in start menu, right click and choose run as administrator).

vanloc0301 commented 6 years ago

I tried to contact with user in my blog to test. He’s not response my email. I will comment at this issues when receive email from the user in my blog. Thanks @hptruong93

neodingo commented 5 years ago

Do we understand why the path to the jar cannot contain a space?

hptruong93 commented 5 years ago

There's a URL to URI conversion here https://github.com/repeats/Repeat/blob/641e7f51996774e9d19e425d7eafa2630de73cd8/src/utilities/FileUtility.java#L562

URI doesn't like space apparently, which caused the exception.

hptruong93 commented 5 years ago

Looks like the problem is because of the space in directory path. I'm going to close this.

neodingo commented 5 years ago

So we closed a bug due to a space in a file path in 2019? Wow.