hoppfrosch / WindowPadX

Enhancements on original WindowPad (by Lexikos)
http://hoppfrosch.github.com/WindowPadX
224 stars 42 forks source link

.ini path as parameter #11

Open mjiderhamn opened 9 years ago

mjiderhamn commented 9 years ago

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 commented 7 years ago

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