Can you detect mouse click time..
Well the title probably sounds funny, but is there a way to detect how long you hold down your mouse click. For example if your mouse click is "+attack" and you hold it down, is there a way to detect how long you hold the mouse click before you release it and return the value? Thanks much for you help.
|
Re: Can you detect mouse click time..
Moving this to Scripting Help from Support/Help.
|
Re: Can you detect mouse click time..
Maybe... if you started a countdown from the +attack action, but I don't know if there is any action that represents the mouse un-clicking... So I guess not...
|
Re: Can you detect mouse click time..
-attack ;)
|
Re: Can you detect mouse click time..
Well if you want to calculate it in seconds I would do something like this:
Code: Code:
|
Re: Can you detect mouse click time..
Quote:
|
Re: Can you detect mouse click time..
set_task(1.0, ... makes this method potentially not able to detect mouse clicks between "count" function calls.
|
Re: Can you detect mouse click time..
What about looping at 0.1 second intervals then doing secs = time[id] * 10?
|
| All times are GMT -4. The time now is 08:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.