冰楓論壇

標題: TwMs_V172.1_ICS_人物左右走 [打印本頁]

作者: sky0823    時間: 2014-7-25 01:29
標題: TwMs_V172.1_ICS_人物左右走
  1. //TwMs_V172.1_ICS_人物左右走
  2. //Author: zengden
  3. //更新時間:2014-07-24
  4. [ENABLE]
  5. Alloc(AutoLRICSEntry, 64)
  6. Label(ICSReturn)
  7. RegisterSymbol(AutoLRMain)
  8. Alloc(AutoLRMain, 128)
  9. Label(GoLeft)
  10. Label(GoRight)
  11. RegisterSymbol(AutoLRRange)
  12. Alloc(AutoLRRange, 4)
  13. Alloc(AutoLRValue, 4)
  14. //-----------------------------------------------
  15. AutoLRRange:
  16. DD A        //距離 16進制 A=10
  17. //-----------------------------------------------
  18. AutoLRICSEntry:
  19. Cmp   [Esp], 00E3B413
  20. Jne   ICSReturn
  21. Mov   [Esp], AutoLRMain
  22. ICSReturn:
  23. Jmp   GetFocus
  24. //-------------------
  25. AutoLRMain:
  26. Cmp   [AutoLRRange], 0
  27. Je    00E3B413
  28. Push  Eax
  29. Inc   [AutoLRValue]
  30. Mov   Eax, [AutoLRRange]
  31. Cmp   Eax, [AutoLRValue]
  32. Jge   GoLeft
  33. Add   Eax, [AutoLRRange]
  34. Cmp   Eax, [AutoLRValue]
  35. Jge   GoRight
  36. Mov   [AutoLRValue], 1
  37. Jmp   GoLeft

  38. GoLeft:
  39. Mov   [Ebp-04], FFFFFFFF
  40. Pop   Eax
  41. Jmp   00E3B85D

  42. GoRight:
  43. Mov   [Ebp-04], 00000001
  44. Pop   Eax
  45. Jmp   00E3B85D
  46. //-----------------------------------------------
  47. 01679788:
  48. DD AutoLRICSEntry
  49. [DISABLE]
  50. 01679788:
  51. DD GetFocus

  52. Dealloc(AutoLRICSEntry)
  53. UnregisterSymbol(AutoLRMain)
  54. Dealloc(AutoLRMain)
  55. UnregisterSymbol(AutoLRRange)
  56. Dealloc(AutoLRRange)
  57. Dealloc(AutoLRValue)
複製代碼





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