DetectHiddenWindows, at least in conjuction with WinExist, apparently not working.
Issue #85
closed
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:
- Run ‘wes2.ahk’ with AHK and leave it running.
- Run ‘wes1.ahk’ with AHK.
- Press hotkey ‘Ctrl-Alt-minus’
- MsgBox displays “It exists, at least.”
- Kill ‘wes2.ahk’.
- Press hotkey ‘Ctrl-Alt-minus’
- MsgBox displays “I can’t find the window.”
- Kill ‘wes1.ahk’
- Run 'keysharp.exe wes2.ahk” and leave it running.
- Run “keysharp.exe wes1.ahk”.
- Press hotkey ‘Ctrl-Alt-minus’
- MsgBox displays “I can’t find the window.”
No error message is thrown in Keyview or upon execution.
Comments (6)
-
reporter -
reporter -
reporter There are multiple problems here, apparently. I need to create a bug report for WinHide().
-
reporter Fixed by one of the recent commits, unable to tell which one. The test scripts now work in both AHK and Keysharp. Closing.
-
reporter - changed status to resolved
-
reporter - changed status to closed
- Log in to comment
I need to rule out a bug with WinExist(), the other possible culprit. I will report back.