Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trigger - if mouse button held for certain period of time?
#8
Function FF_Mouse1
Trigger :     Help - how to add the trigger to the macro
Code:
Copy      Help
;/
function# iid FILTER&f


int+ g_mousembtime=GetTickCount

;Makes the macro specific to a particular mouse.
;For more info, read "Keyboard Detector Help" macro.
;

#compile Keyboard_Detector
;
if(!g_ri.mworking or !g_rir.m[0]) ret -2
SendMessage g_ri.hwnd 0 0 0
int mb=iif(f.tkey<9 f.tkey 0)
if(g_ri.mb!=mb) 0.001
if(g_ri.mb=mb)
,if(g_ri.mouse_id!=g_rir.m[0]) ret -2
else
,if(g_ri.m[0]!=mb) ret -2
,int t=GetTickCount-g_ri.mt[0]
,if(t>1000 or t<0) ret -2
g_ri.m[0]=0; ret iid


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)