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 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 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? 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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now