I upgraded AHK to v2.0.2 from v2.0b-4 and just realized that my hidden GUI does not work anymore.
I am spawning an Edge browser session pointing to a local page and using that to execute JS code. I do this for websocket communication for the StreamDeck library I just released.
Here is a code snippet:
Code: Select all
EmptyWindow := Gui("+Owner")
EmptyWindow.Show()
Webbrowser := Gui("+Parent" EmptyWindow.Hwnd)
webpage := Webbrowser.Add("ActiveX",, "Shell.Explorer").value
webpage.navigate("about:<!DOCTYPE html><meta http-equiv='X-UA-Compatible' content='IE=edge'><body></body>")
Webbrowser.Show()
The same code does not work as intended on v2.0.2.
Specifically
Code: Select all
EmptyWindow := Gui("+Owner")
I cannot use the Method Gui.Hide() because the spawned Webbrowser stop responding immediatly and does not process any websocket events until the gui is visible again.
Sure, I could disable the GUI and move it to an area beyond visible bounderies like (x-10000) but I don't like that idea...
Is this a bug? Intended behavior? Is there a better way to accomplish this?