Like this:
Code: Select all
TGui := Gui('+Resize', "NWin")
TGui.BackColor := "EEAA99"
TGui.Show("x0 y0 w200 h100")
F1 & LButton::{
While( getKeyState("LButton", "P") ) {
PostMessage 0xA1, 2,,, TGui.Hwnd
Sleep(20)
}
}
PostMessage 0xA1 - does nothing.