Ahk_h Compiler context menu Topic is solved

Ask for help, how to use AHK_H, etc.
kyuuuri
Posts: 211
Joined: 09 Jan 2016, 19:20

Ahk_h Compiler context menu

17 Feb 2019, 12:38

Hello, I've been trying to add 3 options to my context menu:
Compile x32 ANSI
Compile x32 Unicode
Compile x64 Unicode

I made a .reg file:

Code: Select all

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x32 Ansi]
@="Compile x32 ANSI"

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x32 Ansi\Command]
@="\"C:\\Program Files\\AutoHotkey\\Compiler\\Ahk2Exe.exe\" /in \"%l\" /bin \"C:\\Program Files\\AutoHotkey\\Win32a\\AutoHotkeySC.bin\""

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x32 Unicode]
@="Compile x32 Unicode"

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x32 Unicode\Command]
@="\"C:\\Program Files\\AutoHotkey\\Compiler\\Ahk2Exe.exe\" /in \"%l\" /bin \"C:\\Program Files\\AutoHotkey\\Win32w\\AutoHotkeySC.bin\""

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x64 Unicode]
@="Compile x64 Unicode"

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x64 Unicode\Command]
@="\"C:\\Program Files\\AutoHotkey\\Compiler\\Ahk2Exe.exe\" /in \"%l\" /bin \"C:\\Program Files\\AutoHotkey\\x64w\\AutoHotkeySC.bin\""
When done, the registry looks like this:
"C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in "%l" /bin "C:\Program Files\AutoHotkey\x64w\AutoHotkeySC.bin"

The problem is that when I do right click compile (any option) it shows a msgbox that says: "Script file not found in: C:\in"

Any help is appreciated, thanks.
kyuuuri
Posts: 211
Joined: 09 Jan 2016, 19:20

Re: Ahk_h Compiler context menu

17 Feb 2019, 16:57

Fixed now:

Code: Select all

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x32 Ansi]
@="Compile x32 ANSI"

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x32 Ansi\Command]
@="\"C:\\Program Files\\AutoHotkey\\AutoHotkey.exe\" \"C:\\Program Files\\AutoHotkey\\Compiler\\Ahk2Exe.ahk\" /in \"%l\" /bin \"C:\\Program Files\\AutoHotkey\\Win32a\\AutoHotkeySC.bin\""

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x32 Unicode]
@="Compile x32 Unicode"

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x32 Unicode\Command]
@="\"C:\\Program Files\\AutoHotkey\\AutoHotkey.exe\" \"C:\\Program Files\\AutoHotkey\\Compiler\\Ahk2Exe.ahk\" /in \"%l\" /bin \"C:\\Program Files\\AutoHotkey\\Win32w\\AutoHotkeySC.bin\""

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x64 Unicode]
@="Compile x64 Unicode"

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Compile x64 Unicode\Command]
@="\"C:\\Program Files\\AutoHotkey\\AutoHotkey.exe\" \"C:\\Program Files\\AutoHotkey\\Compiler\\Ahk2Exe.ahk\" /in \"%l\" /bin \"C:\\Program Files\\AutoHotkey\\x64w\\AutoHotkeySC.bin\""
Thank you!

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 7 guests