wellingtoncg Posted October 3, 2016 Share Posted October 3, 2016 hello, I wonder if you can help me with two questions? 1 as I do to close a modal form in TUniThreadTimer? 2 to force the browser F5 (refresh)? Ps: I created a test for button with the following code Self.Close; and it worked, when I put in TUniThreadTimer the access violation Version: 0.99.50.1187 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 4, 2016 Administrators Share Posted October 4, 2016 hello, I wonder if you can help me with two questions? 1 as I do to close a modal form in TUniThreadTimer? 2 to force the browser F5 (refresh)? Ps: I created a test for button with the following code Self.Close; and it worked, when I put in TUniThreadTimer the access violation Version: 0.99.50.1187 Are you using Trial edition? Latest version is 0.99.96.1321 Quote Link to comment Share on other sites More sharing options...
wellingtoncg Posted October 4, 2016 Author Share Posted October 4, 2016 Are you using Trial edition? Latest version is 0.99.96.1321 Yes, it is the trial this is the reason for me not close the form? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 4, 2016 Administrators Share Posted October 4, 2016 No Threadtimer can not interact with visual controls. Quote Link to comment Share on other sites More sharing options...
wellingtoncg Posted October 4, 2016 Author Share Posted October 4, 2016 solved using keybd_event(VK_F5, 0, 0, 0) in TUniThreadTimer. to update the browser form is automatically closed and returned to the beginning. thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.