autohotkey-plus icon indicating copy to clipboard operation
autohotkey-plus copied to clipboard

Use dropdown menu to select required executable in extension settings

Open fade2gray opened this issue 5 years ago • 6 comments

Please see ...

https://github.com/fade2gray/vscode-autohotkey-1/pull/1

fade2gray avatar Sep 25 '20 13:09 fade2gray

I understand what you mean, but why do you need to modify the executable file frequently?

cweijan avatar Sep 26 '20 01:09 cweijan

Hi, I use some old ansi based scripts that I'm trying to convert and need to swap out the executables to see the effect of any changes I've made. I'm not a competent coder and I'm new to vscode and have never used a debugger before.

fade2gray avatar Sep 26 '20 08:09 fade2gray

Also, I assume when converting to v2 we will be changing exe frequently?

Hicsy avatar Sep 26 '20 11:09 Hicsy

Also, I assume when converting to v2 we will be changing exe frequently?

When I say "ansi based scripts", I mean scripts that will only run using AutoHotkeyA32.exe for which I believe v2 will be dropping support.

fade2gray avatar Sep 26 '20 11:09 fade2gray

This situation is rare, I will not add new features, you can use the debugger configuration file. image image template:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "ahk",
            "request": "launch",
            "name": "AHKV2",
            "program": "${file}",
            "runtime": "C:\\Program Files\\Autohotkey\\AutoHotkeyU64.exe",
            "stopOnEntry": true
        },
        {
            "type": "ahk",
            "request": "launch",
            "name": "AHKV1",
            "program": "${file}",
            "runtime": "C:\\Program Files\\Autohotkey\\AutoHotkeyU32.exe",
            "stopOnEntry": true
        }
    ]
}

cweijan avatar Sep 27 '20 02:09 cweijan

This solution prevents the use of the run command in the context menu. It also requires breakpoints to be stepped through if any have been set.

Also, see #56.

fade2gray avatar Nov 30 '20 18:11 fade2gray