Jump to content

Capturing the Enter-key of an Input-control


BitRot
 Share

Recommended Posts

I thought my question and the full example given in a previous message (here) would have solved my problem, but alas, it didn't.

Problem : I need to know when the Enter-key is pressed in an input-control ("GUICtrlCreateInput").

I have tried to use the "GUIRegisterMsg($WM_COMMAND,....)" method, but no $EN_ENTER (notification-code 0x0700) was returned. When I did press enter I got a $wParam of 0x1 and a $lParam of 0x0, which is less than usefull. :)

When I tried to register other messages ($WM_KEYDOWN, etc.) they seem to be ignored.

Any idea's ?

P.s.

In a similar note : Any idea to how I can retrieve which event fired a "GUICtrlSetOnEvent" ?

Link to comment
Share on other sites

adapted some previous code... try this...

Thanks for the try, but I'd rather find some way to capture the single event, than to try to explude everything else :P

Murphy's law (and my own experience) says that excluding is a heck-of-a-lot more difficult, and mostly something or another will still slip thru the net. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...