DirSelect and FileSelect not working from hotkey call.

Issue #48 closed
Winter Laite created an issue

This code throws no error in Keyview. Pressing the hotkey (Ctrl-Alt-Win-/) causes Keysharp to freeze, and it must be killed manually.

^#!/::
{
    TopMenuFolder := DirSelect("C:\Users\" A_UserName "\Documents")
    MsgBox(TopMenuFolder)
}

Without a hotkey the code runs properly, as below:

    TopMenuFolder := DirSelect("C:\Users\" A_UserName "\Documents")
    MsgBox(TopMenuFolder)

FileSelect exhibits similar behavior. The code below runs from AHK, but freezes Keysharp, no errors.

^#!/::
{
    MyFolder := FileSelect("D", "C:\Users\" A_UserName "\Documents")
    MsgBox(MyFolder)
}

Comments (4)

  1. Log in to comment