Advertisement
Riremito

JMS v20 SS Mouse Fly

May 30th, 2023
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. // SS Mouse Fly v20
  2. [Enable]
  3. Alloc(Hook, 512)
  4. Label(Return)
  5. Label(Toggle)
  6. Label(Return2)
  7. Label(Toggle_End)
  8. Label(EnableMouseFly)
  9. Label(Hook_End)
  10.  
  11. Hook:
  12. cmp [EnableMouseFly],0
  13. je Hook_End
  14. pushad
  15. mov esi,ecx
  16. push 01
  17. lea eax,[esi+400]
  18. push eax
  19. mov ecx,[0065F3F8]
  20. call 005C3F70 // get mouse xy
  21. push [esi+404]
  22. push [esi+400]
  23. push [esi+3C]
  24. call 005B17A0 // teleport
  25. popad
  26. Hook_End:
  27. mov eax,[0065EF88]
  28. jmp Return
  29.  
  30. EnableMouseFly:
  31. dd #0
  32.  
  33. Toggle:
  34. mov eax,[EnableMouseFly]
  35. not eax
  36. mov [EnableMouseFly],eax
  37. Toggle_End:
  38. mov ecx,[0065F3F8]
  39. jmp Return2
  40.  
  41.  
  42.  
  43. 0057EAF0:
  44. jmp Hook
  45. Return:
  46.  
  47. 0048C36D:
  48. jmp Toggle
  49. nop
  50. Return2:
  51.  
  52. [Disable]
  53. 0057EAF0:
  54. mov eax,[0065EF88]
  55.  
  56. 0048C36D:
  57. mov ecx,[0065F3F8]
  58. DeAlloc(Hook)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement