Hello again, You both are right! There was copy/paste error in my code and the code doesn't send the space. I created example more alike my real code which is to long to paste here: HotKeySet("{Space}", "dontClickThatButton")
While 1
Sleep(10)
WEnd
Func dontClickThatButton()
ConsoleWrite("Ups I did it again..." & @CRLF)
EndFunc 1. When focus was set on button in another application and code in my previous post generated MsgBox space WAS "consumed" and everything was fine (sorry for not testing that example thoroughly) 2. The code pasted above passes the space (presses the focused button in another application) indeed, but after more testing I found that it concerns only my particular case - java applet window (in windows applications space was NOT passed) The workaround: In first line of my function (dontClickThatButton()) I'm changing focus in the java applet window to some not clickable element and everything works fine. That closes the case, I suppose. Thank you for your cooperation