mark-wiemer-org/ahkpp

Add option to invoke the compiler GUI from the context menu

Closed this issue · 4 comments

Would it be possible to add an option to invoke the compiler GUI from the context menu?

Honestly, I don't use AHK itself at all, so I've never used the compiler GUI 😕 is there any similar behavior in AHK+? Otherwise I'm happy to consider it. It'd be great if you could link some documentation for me so I have a bit more context on exactly what we're looking for

Well, to invoke the AHK2Exe compile using an AHK script would simply be something like...

Run, "C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe"

AHK_settings_ahk2exe

Of course, we can simply do this from Windows explorer, but I thought, hey, this would make things a bit simpler.

AHK_compile_gui3

It's possible. We have RunnerService.compile(), it executes Ahk2Exe.exe /in "inFile" /out "outFile". We need add optional key /gui to force launch GUI instead of compiling: ... /gui /in ... /out ....

Documentation

From where to launch GUI?

  1. Context menu.
  2. Command pallet (user can assign hotkey).
  3. Both?

@mark-wiemer what do you think?

If possible, both is always best :) we should build in a way that it's easy to integrate both. If for some reason we're limited to only one, command palette is more customizable and accessible with hotkeys.