I want to receive when Enter is pressed within the Edit control for it i used a KeyHook But, If the edit control didn't had the $ES_WANTRETURN style then it eats up the Enter pressed whereas if it has $ES_WANTRETURN then always a @CR is inserted With the following code the Edit is not created with $ES_WANTRETURN therefore enter isnt detected, Just place a $ES_WANTRETURN and then the code works #include-once #include <WindowsConstants.au3> #include <EditConstants.au3> #inclu