_screen.ActiveForm.CustomerNoText.SetFocus() * Capture the .HWnd value of the invoice form nWHnd = _screen.ActiveForm.HWnd _screen.ActiveForm.CustomerNoText.value = 'CUSTOMER01' keyboard "{enter}" * Compare the current HWnd if nWHnd # _screen.ActiveForm.HWnd && messagebox displayed endif>After this keyboard event there is a messagebox that informed the user that the customer have already exceed the credit limit. This ask the user where to proceed or not by clicking "Yes" or "No" button. I know that I can pass a keyboard event wether to proceed or not.