232showtime Posted October 18, 2014 Share Posted October 18, 2014 (edited) I've made a script and got a little problem with controlsend func because sometimes controlsend is not sending data at all, and if i restarted my computer it will work again perfectly... #Region ### START Koda GUI section ### $1 = GUICtrlCreateButton("-", 32, 88, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Opt("SendKeyDelay", 5) Opt("SendKeyDownDelay", 5) While 1 $_iData = ControlGetText("DOCumentation management system", "", "[CLASS:TEdit; INSTANCE:1]") Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $1 ControlSend("Open", "", "[CLASS:Edit;INSTANCE:1]", $_iData) ; Load PDF EndSwitch WEnd what seems to be the problem? System: 64-bit OS Windows 7 Professional 4 GB RAM Intel®Corei5-3470S CPU @ 2.90 GHz Edited October 18, 2014 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Bert Posted October 18, 2014 Share Posted October 18, 2014 Have you verified nothing else on the system in question gets hung thus causing the issue? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
232showtime Posted October 19, 2014 Author Share Posted October 19, 2014 I really dont know if hung is causing the problem... ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
mikell Posted October 19, 2014 Share Posted October 19, 2014 Did you try WinActivate("Open") and/or ControlFocus just before the ControlSend ? "The control might first need to be given focus with the ControlFocus() command" (helpfile) Link to comment Share on other sites More sharing options...
232showtime Posted October 19, 2014 Author Share Posted October 19, 2014 ill try it... :sorcerer: ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Zedna Posted October 19, 2014 Share Posted October 19, 2014 Use ControlSetText() instead of ControlSend(). Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
232showtime Posted October 20, 2014 Author Share Posted October 20, 2014 I tried ControlFocus and ControlSetText, it still has the same problem. well i guess restart is the only way to fix it, too bad... :mad2: ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. 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