Code: Select all
TGui := Gui('+Resize')
TGui.Title := "TGui"
TGui.Show("w300 h100")
OnMessage(0x0201, WM_LBUTTONDOWN)
WM_LBUTTONDOWN(wParam, lParam, msg, hwnd) {
if wParam = 1{
PostMessage 0xA1, 2,,, TGui.Hwnd
}
}
Code: Select all
TGui := Gui('+Resize')
TGui.Title := "TGui"
TGui.Show("w300 h100")
wvc := WebView2.create(TGui.Hwnd)
wv := wvc.CoreWebView2
wv.Navigate('file:///' . A_ScriptDir . '/test.html')
OnMessage(0x0201, WM_LBUTTONDOWN)
WM_LBUTTONDOWN(wParam, lParam, msg, hwnd) {
if wParam = 1{
PostMessage 0xA1, 2,,, TGui.Hwnd
}
}