Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

about Double click button event

$
0
0
Hello everyone,

I see a piece of code in the following post, but it can't run, prompt the following error, welcome any suggestions, thank you in advance

https://forums.indigorose.com/forum/...051#post205051
Click image for larger version

Name:	drr.png
Views:	16
Size:	14.2 KB
ID:	305777


Code:
ClickTime = DLL.CallFunction(_SystemFolder .. '\\winmm.dll', 'timeGetTime', '', DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
TimeSpace = ClickTime-TimePrevious
if TimeSpace<300 then
--if the time space between two clicks <300 millisecond, then define it as "double-click"then
--(your action here!)
Dialog.Message('haha', 'Success!')
end
TimePrevious=ClickTime
-------on page preload,you must define TimeSpace=0

Viewing all articles
Browse latest Browse all 2105