Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.ini path as parameter #11

Open
mjiderhamn opened this issue Mar 17, 2015 · 1 comment
Open

.ini path as parameter #11

mjiderhamn opened this issue Mar 17, 2015 · 1 comment

Comments

@mjiderhamn
Copy link

I would suggest allowing a command line parameter that points out the WindowPadX.ini file, so that it does not have to reside in the same directory as the .ahk/.exe

@denolfe
Copy link
Contributor

denolfe commented Nov 9, 2016

Would love to see this as well, so this library could be included as a submodule.

The easiest solution would be to check if the first param has ".ini" in it. Probably something like this:

    Loop %0%
    {
        param := %A_Index%
        if InStr(param, ".ini")
        {
            WindowPadX_Init(param)
        }
        Else 
        {
            gosub WindowPadXInit
            wp_ExecLine(%A_Index%)
        }
    }

I'll probably take a look at this soon.

EDIT: PR Open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants