F10::
t := !t
Data := t
Size = 1
VarSetCapacity(Buf, Size, 0)
NumPut(Data, Buf, "UInt")
PROCESS_VM_WRITE = 0x20
PROCESS_VM_OPERATION = 0x8
Process, Exist, csgo.exe
If(!ErrorLevel) {
MsgBox, Процесс не найден.
ExitApp
}
PID := ErrorLevel
base := GetDllBase("client.dll", ErrorLevel)
pAddress := base + 1878488
Address := pAddress
hProcess := DllCall("OpenProcess", "UInt", PROCESS_VM_WRITE | PROCESS_VM_OPERATION
, "Int", False
, "UInt", PID)
If(!hProcess) {
MsgBox, Не удалось открыть процесс.
ExitApp
}
Ret := DllCall("WriteProcessMemory", "UInt", hProcess
, "UInt", Address
, "UInt", &Buf
, "UInt", Size
, "UInt", 0)
DllCall("CloseHandle", "UInt", hProcess)
If(!Ret) {
MsgBox, Не удалось записать.
ExitApp
}
return
GetDllBase(DllName, PID = 0)
{
TH32CS_SNAPMODULE := 0x00000008
INVALID_HANDLE_VALUE = -1
VarSetCapacity(me32, 548, 0)
NumPut(548, me32, "Uint")
snapMod := DllCall("CreateToolhelp32Snapshot", "Uint", TH32CS_SNAPMODULE
, "Uint", PID)
If (snapMod = INVALID_HANDLE_VALUE) {
Return 0
}
If (DllCall("Module32First", "Uint", snapMod, "Uint", &me32)){
while(DllCall("Module32Next", "Uint", snapMod, "UInt", &me32)) {
If !DllCall("lstrcmpi", "Str", DllName, "UInt", &me32 + 32) {
DllCall("CloseHandle", "UInt", snapMod)
Return NumGet(&me32 + 20)
}
}
}
DllCall("CloseHandle", "Uint", snapMod)
Return 0
}
重要:需要指定脚本用AutoHotkeyA32.exe启动
我玩csgo,我跟大家说一下,这个透视只有人机可以用,不能连上服务器的,用ahk做透视应该是不行的吧(ahk刚入门,不懂)
效果是有的,这段时间没有试
call了好几个DLL,不知道啥意思,利用已有地址写入了点数据。就显示敌人了。看不懂。