PlayStation 4 developer Komefai recently released a PS4 Remote Play Interceptor powered by EasyHook alongside a PS4 Macro automation utility written in C# with some background on his Blog for creating a PS4 bot and demonstration videos from his YouTube Channel below.
Download: PS4RemotePlayInterceptor-master.zip / PS4RemotePlayInterceptor GIT / PS4 Macro v0.2.0 / PS4Macro GIT / Miles123456 Fork / JoriTheBot Fork
From the README.md file: PS4 Remote Play Interceptor
A small .NET library to intercept controls on PS4 Remote Play for Windows, powered by EasyHook. The library can be used to automate any PS4 game. See the prototype demo.
Also check out PS4 Macro repository for a ready-to-use software built on this library.
Install
Using NuGet (Recommended)
From Source
Add reference to PS4RemotePlayInterceptor.dll.
Example Usage
This console application will hold the X button while moving the left analog stick upwards until interrupted by a keypress.
To-Do List
SOLUTION: Restart PS4 Remote Play.
SOLUTION: Rename to DualShockState for version >= 0.2.0
Credits
Automation utility for PS4 Remote Play written in C# using PS4RemotePlayInterceptor.
Screenshot
Usage
Download latest version here!
You must have DualShock 4 controller plugged in via USB with PS4 Remote Play running.
To record, click on record button (Ctrl+R) to arm recording then press play to start recording controls. To stop recording, click on record button (Ctrl+R) to unarm. The macro will then play the controls in a loop.
See this video for more details.
To-Do List
Reinstall NuGet Package
Resources
Credits
Changelog
PS4 Macro v0.2.0
[IMG]https://raw.githubusercontent.com/komefai/PS4Macro/master/_resources/Screenshot_0_2_0.png[/IMG]
PS4 Macro v0.1.0
[IMG]https://raw.githubusercontent.com/komefai/PS4Macro/master/_resources/Screenshot_0_1_0.png[/IMG]
PS4 Remote Play Patcher v2.0.1 by MysteryDash
Download: PS4.Remote.Play.Patcher.zip / GIT
Cheers to @HydrogenNGU for the heads-up on Twitter earlier this weekend for the news!
Download: PS4RemotePlayInterceptor-master.zip / PS4RemotePlayInterceptor GIT / PS4 Macro v0.2.0 / PS4Macro GIT / Miles123456 Fork / JoriTheBot Fork
From the README.md file: PS4 Remote Play Interceptor
A small .NET library to intercept controls on PS4 Remote Play for Windows, powered by EasyHook. The library can be used to automate any PS4 game. See the prototype demo.
Also check out PS4 Macro repository for a ready-to-use software built on this library.
Install
Using NuGet (Recommended)
Code:
Install-Package PS4RemotePlayInterceptor
Add reference to PS4RemotePlayInterceptor.dll.
Example Usage
This console application will hold the X button while moving the left analog stick upwards until interrupted by a keypress.
Code:
using PS4RemotePlayInterceptor;
class Program
{
static void Main(string[] args)
{
// Inject into PS4 Remote Play
Interceptor.Callback = new InterceptionDelegate(OnReceiveData);
Interceptor.Inject();
Console.ReadKey();
}
private static void OnReceiveData(ref DualShockState state)
{
/* -- Modify the controller state here -- */
// Force press X
state.Cross = true;
// Force left analog upwards
state.LY = 0;
// Force left analog downwards
// state.LY = 255;
// Force left analog to center
// state.LX = 128;
// state.LY = 128;
}
}
- Bluetooth support
- Touchpad support
- Accelerometer support
- Intercept ouput reports
- Emulating DualShock controller
Code:
{"STATUS_INTERNAL_ERROR: Unknown error in injected C++ completion routine. (Code: 15)"}
Code:
DualshockState Could not be found
Credits
- https://easyhook.github.io/
- https://github.com/Jays2Kings/DS4Windows
- http://www.psdevwiki.com/ps4/DS4-USB
Automation utility for PS4 Remote Play written in C# using PS4RemotePlayInterceptor.
Screenshot
Download latest version here!
You must have DualShock 4 controller plugged in via USB with PS4 Remote Play running.
To record, click on record button (Ctrl+R) to arm recording then press play to start recording controls. To stop recording, click on record button (Ctrl+R) to unarm. The macro will then play the controls in a loop.
See this video for more details.
To-Do List
- Save/Load
- Keyboard Shortcuts
- Status Indicators
- Playback Timeline UI
- Scripting
- ...
Reinstall NuGet Package
Code:
Update-Package –reinstall PS4RemotePlayInterceptor
Credits
Changelog
PS4 Macro v0.2.0
- Can Save/Load macros as xml
- Added keyboard shortcuts
- Added indicator for frames
- Added app icon
- Improve error handling
- Bug fixes
[IMG]https://raw.githubusercontent.com/komefai/PS4Macro/master/_resources/Screenshot_0_2_0.png[/IMG]
- First version with simple recording and playback feature
[IMG]https://raw.githubusercontent.com/komefai/PS4Macro/master/_resources/Screenshot_0_1_0.png[/IMG]
Download: PS4.Remote.Play.Patcher.zip / GIT
Cheers to @HydrogenNGU for the heads-up on Twitter earlier this weekend for the news!