Advertisement
Riremito

JMS v164.0 SS Mouse Fly

Dec 11th, 2022
501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. [Enable]
  2. Alloc(MouseFly, 256)
  3. Label(Return)
  4. Label(AbsoluteMouseXY)
  5. Label(MouseFly_End)
  6.  
  7. MouseFly:
  8. pushad
  9. mov eax,[00A57FEC]
  10. test eax,eax
  11. je MouseFly_End
  12. cmp [eax+9B4],0C // Click
  13. jne MouseFly_End
  14. // see 0083388F
  15. lea eax,[AbsoluteMouseXY]
  16. push 01
  17. push eax
  18. mov ecx,[00A57E88]
  19. call 008B17B5
  20. mov eax,[AbsoluteMouseXY]
  21. mov [esi+21A0],eax // X
  22. mov eax,[AbsoluteMouseXY+4]
  23. mov [esi+21A4],eax // Y
  24. mov [esi+2198],01 // Toggle
  25. MouseFly_End:
  26. popad
  27. // original code
  28. cmp dword ptr [esi+00002198],00
  29. jmp Return
  30.  
  31. // JMS v164.0 only have relative mouse XY
  32. AbsoluteMouseXY:
  33. dd #0
  34. dd #0
  35.  
  36. 00832ACB:
  37. jmp MouseFly
  38. nop
  39. nop
  40. Return:
  41.  
  42. [Disable]
  43. 00832ACB:
  44. cmp dword ptr [esi+00002198],00
  45.  
  46. DeAlloc(MouseFly)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement