win-10-virtual-desktop-enhancer icon indicating copy to clipboard operation
win-10-virtual-desktop-enhancer copied to clipboard

Not running - DLL registration issue?

Open kger opened this issue 7 years ago • 14 comments

I have "unblocked" both the .EXE file and the .DLL file, and even downloaded the latest version of the DLL, but the script still does not work. I put MsgBox statements in the script, and the problem seems to be in executing the "DllCall(GoToDesktopNumberProc, Int, n-1)" statement.

I am running on 64-bit Windows 10.

Any clues as to what else I can try?

kger avatar Apr 01 '17 21:04 kger

More info: Right after the call that loads the DLL, %ErrorLevel% has a value of zero. Right after attempting the "GoToDesktopNumberProc" attempt, %ErrorLevel% is -4 (negative 4). AutoHotKey documentation says that means "The specified function could not be found inside the DLL."

kger avatar Apr 01 '17 21:04 kger

Did you ever get a resolution? I just downloaded / installed and it doesn't work at all. I'm also on Win 10 64-bit.

gityta avatar Apr 05 '17 02:04 gityta

Hi. What is the version of your Windows installations?

sdias avatar Apr 05 '17 09:04 sdias

@sdias: I have Win 10 Home, 64-bit. (The 'free' update from Win 8.x) ver: Microsoft Windows [Version 10.0.14393]

gityta avatar Apr 05 '17 20:04 gityta

I need to clarify... The EXE works. (Mostly, at least. Still checking some key assignments.)
Running the AHK file fails. The systray icon loads, I can right click it, etc., but the hotkeys don't work.

gityta avatar Apr 06 '17 02:04 gityta

I think the problem is either related to admin permissions or with the latest Windows update. I'll have to investigate when I have some time. @gityta That's strange. Maybe AutoHotkey isn't running with enough permissions.

sdias avatar Apr 06 '17 11:04 sdias

For what it's worth, running the script as Administrator did not change the behavior.

gityta avatar Apr 06 '17 15:04 gityta

What version of AutoHotkey do you have installed?

On 6 Apr 2017 4:19 pm, "gityta" [email protected] wrote:

For what it's worth, running the script as Administrator did not change the behavior.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sdias/win-10-virtual-desktop-enhancer/issues/37#issuecomment-292207745, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpaAaHyQmnof2fH0eLe5LgwszHxMo3Uks5rtQJrgaJpZM4Mwn2w .

sdias avatar Apr 06 '17 16:04 sdias

I have version 1.1.24.00 Just updated to 1.1.25.01 and tired again. The script still loads the tray icon but does nothing else. I'm sticking with the EXE, as it's working great.

gityta avatar Apr 06 '17 18:04 gityta

@kger @gityta I'm stumped. You are using the same version of Windows and AutoHotkey that I am. Could it be that the current working directory that you are launching the script with isn't the directory where the script is located in?

sdias avatar Apr 10 '17 13:04 sdias

@sdias I specifically ran the script from the directory where it is located.

gityta avatar Apr 11 '17 00:04 gityta

@gityta Very strange indeed. The only other reason I can think of is that the script and the executable are running different code, but I recompiled the script into a new executable, and both still work on my machine. I'm glad the executable works for you though. I'll leave this open to see if any other people are experiencing this, and based on what they report to see if we can debug this further.

sdias avatar Apr 13 '17 11:04 sdias

Hi @gityta, I am currently revising old issues on this project: do you still experience the bug you reported?

GioBonvi avatar May 18 '17 20:05 GioBonvi

Hi @GioBonvi, I haven't done anything other than use the EXE since posting this. Since it works so well, I just stayed with it. Didn't have time to do any more testing.

gityta avatar May 19 '17 03:05 gityta