I am currently using
LicenseFile=
Is there a way to add a timer to the next button?
That way if a certain time period hasn’t elapsed it will ask the user if they have actually read the agreement?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There isn’t anything built-in, but you can call the standard WinAPI
GetTickCountfunction:Call it once from
CurPageChanged(wpLicense)to save the current tick value in a global variable, and then again fromNextButtonClicked(wpLicense)and subtract the new tick from the old tick to get the elapsed time.Two points to note, however:
Just because the page has been open for a while doesn’t mean that they’ve actually read it.
I haven’t tested but I’m pretty sure
NextButtonClickwill be called even if they haven’t selected “yes” (ie. the code handler is called before the internal validation). So you may want to check for this too, to avoid displaying the “have you read it?” message when they haven’t even ticked Yes yet.