I have the following code that will show the traymenu when you press enter, there's a problem that it will first show the traymenu if you click the tray icon, and then press "T". if you don't click the tray icon first, before pressing T, it will show: script paused, and exit when you press T. Does anyone know how to fix that? #include <Constants.au3> Opt("TrayMenuMode", 1) Opt("WinTitleMatchMode", 4) Global Const $WM_USER = 0x040