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.

DarkBASIC Professional Discussion / mouse click deletes?

Author
Message
Graysire
12
Years of Service
User Offline
Joined: 18th Oct 2013
Location:
Posted: 17th Jan 2014 18:57
can't seem to make it so that when you click on an object twice, it deletes. Any suggestions?
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 17th Jan 2014 19:09
Here's a quick example. You can replace the DLL call by simply specifying the number of milliseconds allowed between clicks. The call simply gets the delay time set in the system.



If you need more advanced mouse control, take a look at my library.
http://forum.thegamecreators.com/?m=forum_view&t=201158&b=6

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Jan 2014 11:52
I think this version of Phaelax's code works slightly better:



The original version allowed me to continually increment the number of clicks recorded which I assumed wasn't intended .



Powered by Free Banners
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Jan 2014 16:20
It was intentional, but I guess the OP doesn't need it to.

Login to post a reply

Server time is: 2026-07-06 07:51:59
Your offset time is: 2026-07-06 07:51:59