冰楓論壇

標題: TwMS v230.3 ICS 人物左右走 [打印本頁]

作者: prt    時間: 2020-12-23 20:23
標題: TwMS v230.3 ICS 人物左右走
  1. // TwMS v230.3 ICS 人物左右走
  2. [ENABLE]
  3. Alloc(AutoLRICSEntry, 64)
  4. Label(ICSReturn)
  5. RegisterSymbol(AutoLRMain)
  6. Alloc(AutoLRMain, 128)
  7. Label(GoLeft)
  8. Label(GoRight)
  9. RegisterSymbol(AutoLRRange)
  10. Alloc(AutoLRRange, 4)
  11. Alloc(AutoLRValue, 4)
  12. //-----------------------------------------------
  13. AutoLRRange:
  14. DD A    //16進制 A=10 設置0為不左右走
  15. //-----------------------------------------------
  16. AutoLRICSEntry:
  17. cmp [esp],00B9E186
  18. jne ICSReturn
  19. mov [esp],AutoLRMain
  20. ICSReturn:
  21. jmp GetFocus
  22. //-------------------
  23. AutoLRMain:
  24. cmp [AutoLRRange], 0
  25. je 00B9E186
  26. push eax
  27. inc [AutoLRValue]
  28. mov eax,[AutoLRRange]
  29. cmp eax,[AutoLRValue]
  30. jge GoLeft
  31. add eax,[AutoLRRange]
  32. cmp eax,[AutoLRValue]
  33. jge GoRight
  34. mov [AutoLRValue],1
  35. jmp GoLeft

  36. GoLeft:
  37. mov [ebp-1C],FFFFFFFF
  38. pop eax
  39. jmp 00B9E248

  40. GoRight:
  41. mov [ebp-1C],00000001
  42. pop eax
  43. jmp 00B9E248

  44. 0458DE18:
  45. DD AutoLRICSEntry

  46. [DISABLE]
  47. 0458DE18:
  48. DD GetFocus

  49. Dealloc(AutoLRICSEntry)
  50. UnregisterSymbol(AutoLRMain)
  51. Dealloc(AutoLRMain)
  52. UnregisterSymbol(AutoLRRange)
  53. Dealloc(AutoLRRange)
  54. Dealloc(AutoLRValue)
複製代碼





歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓