Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom mouse trigger w/ keyboard detector
#6
Edit Keyboard_Detector:

find:
Function Keyboard_Detector
Code:
Copy      Help
,,g_ri.mouse_id=k

insert after:
Function Keyboard_Detector
Code:
Copy      Help
,,;out "%i %i %i" k raw.mouse.lLastX raw.mouse.lLastY
,,if(k=g_rir.m[1])
,,,if(raw.mouse.lLastY>0) key (VK_VOLUME_DOWN)
,,,else if(raw.mouse.lLastY<0) key (VK_VOLUME_UP)

g_rir.m[1] is identifier of the mouse that is associated with the second filter function. For other mouses it is g_rir.m[0], g_rir.m[2], g_rir.m[3].


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)