F4 離開腳本
F5 暫停腳本
低於30% 觸發 ~
AutoIt工具腳本介紹:
http://crazy.molerat.net/learner/cpuroom/net/reading.php?filename=100100995837.dov
腳本原始:- Global $PID
- Global $cHP = 0x00B196F4
- Global $mHP = 0x00B1BFB4
- Global $Paused
- While 1
- TrayCreateItem("Trove - AutoHeal tool")
- $PID = WinGetProcess("Trove", "")
- HotKeySet("{f4}", Halt)
- HotKeySet("{f5}", PauseScript)
- NextS()
- WEnd
- Func NextS()
- While 1
- Refresh()
- Sleep(1000)
- WEnd
- EndFunc ;==>NextS
- Func Refresh()
- $MEMID = _memoryopen($PID)
- $sModule = 'trove.exe'
- $MaxHPBase = _memoryread(_MemoryModuleGetBaseAddress($PID, $sModule) + $mHP, $MEMID, 'dword')
- $mhpb = _memoryread($MaxHPBase + 0x48, $MEMID, 'dword')
- $mhpb = _memoryread($mhpb + 0x208, $MEMID, 'dword')
- $mhpb = _memoryread($mhpb + 0x8, $MEMID, 'dword')
- $mhpb = _memoryread($mhpb + 0xb8, $MEMID, 'dword')
- $CurrentHPBase = _memoryread(_MemoryModuleGetBaseAddress($PID, $sModule) + $cHP, $MEMID, 'dword')
- $chpb = _memoryread($CurrentHPBase + 0x0, $MEMID, 'dword')
- $chpb = _memoryread($chpb + 0x10, $MEMID, 'dword')
- $chpb = _memoryread($chpb + 0x168, $MEMID, 'dword')
- $chpb = _memoryread($chpb + 0x3c, $MEMID, 'Float')
- If ($chpb*100/$mhpb < 30) Then
- ControlSend("Trove", "", "", "Q")
- EndIf
- EndFunc ;==>Refresh
- Func Halt()
- Exit
- EndFunc ;==>Halt
複製代碼
所有站內附件皆會附上安全掃描報告 請會員查看純淨度百分比後判斷使用
相關檔案須知: 取得檔案前,請先詳細閱讀文章內容 避免不必要錯誤與誤會發生。 也可多參考文章討論樓層內容 了解附件檔案相關討論資訊。
|