Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^S::
- loop {
- ToolTip, Go To choose Character Screen (Loop %A_index%), 0, 0
- Sleep, 750
- Send {p} ; menu
- Sleep, 750
- send {right}
- sleep ,750
- send {right}
- sleep ,750
- send {right}
- sleep ,750
- send {right}
- sleep ,750
- send {right}
- sleep ,750
- send {enter}
- sleep ,750
- sleep ,750
- send {down}
- sleep ,750
- send {down}
- sleep ,750
- send {down}
- sleep ,750
- send {down}
- sleep,750
- send {enter}
- sleep, 750
- send {enter}
- ToolTip, Wating For Swap Character Screen Confirmation (Loop %A_index%), 0, 0
- Loop {
- Sleep, 500
- PixelGetColor, color, 785,586
- Sleep, 500
- } Until (color="0xF4F4F4") ; character select screen confirmation
- ToolTip,Switching To First Character And Disconnecting , 0, 0
- Sleep, 500
- Send {Left} ; 1st char
- Sleep, 1000
- Send {Enter}
- Sleep, 5000
- ;-------------------------------Edit The Directory Here-------------------------------
- cmdline := "netsh advfirewall firewall add rule name=""BATCH GTA 5 BLOCK"" dir=out action=block program=""E:\gta v\GTAV\GTA5.exe"""
- runwait, %cmdline%,, Hide
- ;-------------------------------------------------------------------------------------
- Sleep, 5000
- Send {Enter}
- Sleep, 50
- cmdline := "netsh advfirewall firewall delete rule name=""BATCH GTA 5 BLOCK"""
- runwait, %cmdline%,, Hide
- Sleep, 7000
- Send {Enter}
- Sleep, 7000
- Send {Enter}
- ToolTip, Suspending And Wating For Second Character To Load (Loop %A_index%), 0, 0
- ;-----Suspend
- Sleep 45000
- Process_Suspend("GTA5.exe")
- Sleep, 15000
- Process_Resume("GTA5.exe")
- ;-----------xxxxxxxxxxxx----------------
- ;----Suspend Function
- Process_Suspend(PID_or_Name){
- PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
- h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
- If !h
- Return -1
- DllCall("ntdll.dll\NtSuspendProcess", "Int", h)
- DllCall("CloseHandle", "Int", h)
- }
- ;----Resume Function
- Process_Resume(PID_or_Name){
- PID := (InStr(PID_or_Name,".")) ? ProcExist(PID_or_Name) : PID_or_Name
- h:=DllCall("OpenProcess", "uInt", 0x1F0FFF, "Int", 0, "Int", pid)
- If !h
- Return -1
- DllCall("ntdll.dll\NtResumeProcess", "Int", h)
- DllCall("CloseHandle", "Int", h)
- }
- ProcExist(PID_or_Name=""){
- Process, Exist, % (PID_or_Name="") ? DllCall("GetCurrentProcessID") : PID_or_Name
- Return Errorlevel
- }
- ;------
- Loop {
- Sleep, 5000
- Send {Up}
- PixelGetColor, color, 653, 318
- } Until (color="0x000000")
- ;------------------xxxxxxxxxxxxxx------------------
- ToolTip, Sell Apts and/or CEO Office Manualy Now, 0, 0
- Sleep, 10000
- ToolTip, leave gta online and Go to single player manually, 0,0
- ToolTip, After loading in single player Press CTRL R to reload and CTRL S to begin, 0, 0
- Sleep, 25000
- ^r::Reload
- Sleep, 1500
- }
- ^Esc::ExitApp
Add Comment
Please, Sign In to add comment