WindowPadX icon indicating copy to clipboard operation
WindowPadX copied to clipboard

.ini path as parameter

Open mjiderhamn opened this issue 10 years ago • 1 comments

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

mjiderhamn avatar Mar 17 '15 20:03 mjiderhamn

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

denolfe avatar Nov 09 '16 06:11 denolfe