Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / The length of a mouse click?

Author
Message
Colin Hart
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location: United Kingdom
Posted: 26th Jul 2005 03:06
Afternoon All.

Does anyone know how to stop the affect of a mouse click after 1 second? For Example.

if mouseclick()
do some funky stuff
end if mouseclick more than 1 second

MAny Many thanks.

Colin.
Colin Hart
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location: United Kingdom
Posted: 26th Jul 2005 03:57
I have managed to fix it. If anyone is interested then I have pasted my code below.
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 26th Jul 2005 06:34 Edited at: 26th Jul 2005 06:34
Pretty sure that code could be shortened to:



And then replacing the print command with whatever you need done, I do0nt think you need the released variable in there. Not sure though since Im not using DBP at the moment, just off the top of my head.

Login to post a reply

Server time is: 2024-11-27 22:34:49
Your offset time is: 2024-11-27 22:34:49