저는 현재 PC에서 ps2 게임을 에뮬레이트하고 있으며 Savedata의 손실 에 대한 보험을 갖고 싶습니다. 그래서 PCSX2 당신이일괄 처리 기능이있는 시간 자동 저장
이 조각 (다음 슬롯 및 F2 스위치) F1을 눌러 저장하면 PS2 목적을 위해 더 큰 파일의 일부이다 (I가 필요한 경우를 게시 할 수 있습니다) 하지만 그것은 기본적으로 달성해야 할 것은입니다 pcsx2.exe가 0.135 초마다 을 실행하는지 확인하고 매 3 분마다 게임을 저장하십시오.
이 코드를 실행하면 일괄 처리 스크립트가 즉시 종료되어 eveen에 오류 메시지가 표시됩니다. 누구나이 문제가 무엇이 될 수 있는지 말해 줄 수 있습니까? 아니면 문제가 다른 곳에서 거짓말을해야합니까?
SET /a time=0
:loop
if %time%==180(
nircmd.exe sendkey F1 press
nircmd.exe sendkey F2 press
SET /a time=0
)
tasklist /FI "IMAGENAME eq pcsx2-r5875.exe" 2>NUL | find /I /N "pcsx2r5875.exe">NUL
nircmd.exe wait 100
set /a time+=1
if "%ERRORLEVEL%"=="0" goto loop
편집 : 도움을
@ echo off
nircmd.exe cmdwait 10 nircmd.exe sendkey 0x5B down
nircmd.exe cmdwait 10 nircmd.exe sendkey D press
nircmd.exe cmdwait 10 nircmd.exe sendkey 0x5B up
::simulates windows+D to close all windows
taskkill /f /im explorer.exe
::kills explorer
start /d "C:\Program Files (x86)\Google\Drive" googledrivesync.exe
::Google Drive to backup save files
start /d "C:\Program Files\MotioninJoy\ds3" DS3_Tool.exe
::DS3 Tool to play with wireless playstation controller
start %windir%\System32\DisplaySwitch.exe /internal
::switches to Single-Display mode
start /d "C:\Program Files (x86)\PCSX2 1.2.1" pcsx2-r5875.exe
::starts emulator
SET timeloop=0
goto loop2
:loop
SET timeloop=0
nircmd.exe sendkey F1 press
nircmd.exe sendkey F2 press
echo Saved at %time%
:loop2
nircmd.exe wait 100
set /a timeloop+=1
tasklist /FI "IMAGENAME eq pcsx2-r5875.exe" 2>NUL | find /I /N "pcsx2-r5875.exe">NUL || goto EndOfLoop
if %timeloop% LSS 1800 goto :loop2
goto loop
:EndOfLoop
::loop that autosaves to a different slot every 3 minutes and exits if emulator exits
start %windir%\System32\DisplaySwitch.exe /extend
taskkill /f /im googledrivesync.exe
taskkill /f /im explorer.exe
taskkill /f /im DS3_Tool.exe
start explorer.exe
::finally everything is cleaned up
감사
관심있는 사람들을위한 완벽한 작업 스크립트!
같은 일반 변수로 시스템 변수를 사용하지 마십시오? – Stephan