DetectHiddenWindows, at least in conjuction with WinExist, apparently not working.

Issue #85 closed
Winter Laite created an issue

Test scripts - these should work in both AHK v2 and Keysharp.

wes2.ahk:

!^]::
{
    MsgBox("Help me debug this!")
}

wes1.ahk:

SetTitleMatchMode(2)
DetectHiddenWindows(True)

^!-::
{
if (WinExist("wes2.ahk ahk_class AutoHotkey"))
    MsgBox("It exists, at least")
else
    MsgBox("I can't find the window.")
}

Steps to confirm AHK works correctly and duplicate error in Keysharp:

  1. Run ‘wes2.ahk’ with AHK and leave it running.
  2. Run ‘wes1.ahk’ with AHK.
  3. Press hotkey ‘Ctrl-Alt-minus’
  4. MsgBox displays “It exists, at least.”
  5. Kill ‘wes2.ahk’.
  6. Press hotkey ‘Ctrl-Alt-minus’
  7. MsgBox displays “I can’t find the window.”
  8. Kill ‘wes1.ahk’
  9. Run 'keysharp.exe wes2.ahk” and leave it running.
  10. Run “keysharp.exe wes1.ahk”.
  11. Press hotkey ‘Ctrl-Alt-minus’
  12. MsgBox displays “I can’t find the window.”

No error message is thrown in Keyview or upon execution.

Comments (6)

  1. Winter Laite reporter

    I need to rule out a bug with WinExist(), the other possible culprit. I will report back.

  2. Winter Laite reporter

    There are multiple problems here, apparently. I need to create a bug report for WinHide().

  3. Winter Laite reporter

    Fixed by one of the recent commits, unable to tell which one. The test scripts now work in both AHK and Keysharp. Closing.

  4. Log in to comment