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
![drr.png Click image for larger version
Name: drr.png
Views: 16
Size: 14.2 KB
ID: 305777]()
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
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