Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Proc1 = xxd.xem
- Proc2 = xsherlock.xem
- ;----------------------------------------------------------------------------------------------------
- Process, Priority, , High
- SetBatchLines, -1
- Params = %1%
- If Params {
- Process, Wait, %Proc2%
- ProcSus(Proc2)
- } Else {
- Run, "%A_AhkPath%" "%A_ScriptFullPath%" berban
- Process, Wait, %Proc1%
- ProcSus(Proc1)
- Process, Wait, %Proc2%
- MsgBox, 262144, %A_ScriptName%: Alert, Processes have been suspended!`n`nPress OK when you are done cheating :)
- ProcRes(Proc1), ProcRes(Proc2)
- }
- ExitApp
- ;=============================================[Std.ahk]=============================================
- ProcSus(PID_or_Name)
- {
- If InStr(PID_or_Name, ".") {
- Process, Exist, %PID_or_Name%
- PID_or_Name := ErrorLevel
- }
- If !(h := DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", PID_or_Name))
- Return -1
- DllCall("ntdll.dll\NtSuspendProcess", "Int", h), DllCall("CloseHandle", "Int", h)
- }
- ProcRes(PID_or_Name)
- {
- If InStr(PID_or_Name, ".") {
- Process, Exist, %PID_or_Name%
- PID_or_Name := ErrorLevel
- }
- If !(h := DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", PID_or_Name))
- Return -1
- DllCall("ntdll.dll\NtResumeProcess", "Int", h), DllCall("CloseHandle", "Int", h)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement