Michel Claveau Posted June 6, 2005 Share Posted June 6, 2005 Hi, all ! With this code : #include <GUIConstants.au3> $mainwindow = GUICreate("Hello World of Test", 260, 120) GUICtrlCreateLabel("input", 30, 43) $input= GUICtrlCreateInput("Blabla", 60, 40, 160, 20) GUICtrlCreateLabel("inpuu", 30, 73) $inpuu= GUICtrlCreateInput("Blibli", 60, 70, 160, 20) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() if $msg=$input then OKinput() if $msg=$inpuu then OKinpuu() if $msg = $GUI_EVENT_CLOSE then exitloop WEnd Func OKinput() MsgBox(0, "GUI Event", "input") EndFunc Func OKinpuu() MsgBox(0, "GUI Event", "inpuu") EndFunc - Modify the first text ("Blabla" ; $input) - Press [Tab] --> Nothing ! ! ! (we are, now, on $inpuu) - wait few seconds - Press any key --> Give event on... $input !??? How to have event when I exit from $input modified ? Thanks by advance, and sorry for my bad english. Link to comment Share on other sites More sharing options...
jpm Posted June 6, 2005 Share Posted June 6, 2005 Hi, all ! With this code : #include <GUIConstants.au3> $mainwindow = GUICreate("Hello World of Test", 260, 120) GUICtrlCreateLabel("input", 30, 43) $input= GUICtrlCreateInput("Blabla", 60, 40, 160, 20) GUICtrlCreateLabel("inpuu", 30, 73) $inpuu= GUICtrlCreateInput("Blibli", 60, 70, 160, 20) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() if $msg=$input then OKinput() if $msg=$inpuu then OKinpuu() if $msg = $GUI_EVENT_CLOSE then exitloop WEnd Func OKinput() MsgBox(0, "GUI Event", "input") EndFunc Func OKinpuu() MsgBox(0, "GUI Event", "inpuu") EndFunc- Modify the first text ("Blabla" ; $input)- Press [Tab] --> Nothing ! ! ! (we are, now, on $inpuu)- wait few seconds- Press any key --> Give event on... $input !??? How to have event when I exit from $input modified ?Thanks by advance, and sorry for my bad english.<{POST_SNAPBACK}>The input control fire event when the input is really terminated that's mean when you do an action on another control.Usually you click on a button so you get the input event if a modification occured and the button event after. That's the reason when you type in the $input control you get the notification as soon you type in the $inpuu but not before. There is no way to determine if the inputing in the control as ended.I hope That's clarify the behavior. Link to comment Share on other sites More sharing options...
Lazycat Posted June 6, 2005 Share Posted June 6, 2005 You can try this solution as workaround. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Michel Claveau Posted June 6, 2005 Author Share Posted June 6, 2005 You can try this solution as workaround.<{POST_SNAPBACK}>Hi ! Your trick (use DllCall+user32) is OK, if the script run in foreground.I could clear up me with that. Thank you. Link to comment Share on other sites More sharing options...
Michel Claveau Posted June 6, 2005 Author Share Posted June 6, 2005 Hi, jpm! Your explanation is clear and clear. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now