Advertisement
Guest User

Rocksmith Intro Skip

a guest
May 25th, 2019
806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.66 KB | None | 0 0
  1. @echo off
  2. set "rocksmith-path=C:\Program Files (x86)\Steam\steamapps\common\Rocksmith2014"
  3. set "ce-path=C:\Program Files (x86)\Cheat Engine 6.7"
  4. set "speed=10"
  5. set "duration=10"
  6. set "loginTime=5"
  7.  
  8. set "ce-script=%ce-path%\autorun\RocksmithIntroSkip.lua"
  9.  
  10. pushd %rocksmith-path%
  11. start "" Rocksmith2014.exe
  12. popd
  13.  
  14. :searchrocksmith
  15. @tasklist|find "Rocksmith2014"
  16. IF %ERRORLEVEL% == 0 GOTO rocksmithfound
  17. TIMEOUT /T 1
  18. GOTO searchrocksmith
  19.  
  20. :rocksmithfound
  21. FOR /F %%T IN ('Wmic process where^(Name^="Rocksmith2014.exe"^)get ProcessId^|more +1') DO (
  22. SET /A ProcessId=%%T) &GOTO SkipLine                                                  
  23. :SkipLine                                                                              
  24. echo ProcessId = %ProcessId%
  25.  
  26. (
  27. echo openProcess(tonumber(%ProcessId%^)^)
  28. echo speedhack_setSpeed(%speed%^)
  29. echo function pressEnter(timer^)
  30. echo doKeyPress(VK_RETURN^)
  31. echo timer.destroy(^)
  32. echo t=createTimer(nil^)
  33. echo timer_onTimer(t, chooseProfile^)
  34. echo timer_setInterval(t, %loginTime%*1000^)
  35. echo timer_setEnabled(t, true^)
  36. echo end
  37. echo function chooseProfile(timer^)
  38. echo doKeyPress(VK_RETURN^)
  39. echo timer.destroy(^)
  40. echo t=createTimer(nil^)
  41. echo timer_onTimer(t, resetSpeed^)
  42. echo timer_setInterval(t, 3*1000^)
  43. echo timer_setEnabled(t, true^)
  44. echo end
  45. echo function resetSpeed(timer^)
  46. echo speedhack_setSpeed(1.0^)
  47. echo timer.destroy(^)
  48. echo end
  49. echo t=createTimer(nil^)
  50. echo timer_onTimer(t, pressEnter^)
  51. echo timer_setInterval(t, %duration%*1000^)
  52. echo timer_setEnabled(t, true^)
  53. )>"%ce-script%"
  54.  
  55. start "" "%ce-path%\Cheat Engine.exe"
  56.  
  57. TIMEOUT /T 60
  58. del "%ce-script%"
  59. @taskkill /im "cheatengine-x86_64.exe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement