All Projects → komefai → Ps4remoteplayinterceptor

komefai / Ps4remoteplayinterceptor

Licence: mit
A small .NET library to intercept and inject controls on PS4 Remote Play for Windows

Projects that are alternatives of or similar to Ps4remoteplayinterceptor

Bas
BrowserAutomationStudio can automate everything that Chrome can.
Stars: ✭ 203 (+167.11%)
Mutual labels:  bot, automation
Insomniac
Instagram bot for automated Instagram interaction using Android device via ADB
Stars: ✭ 324 (+326.32%)
Mutual labels:  bot, automation
Poule
🐔 A framework for GitHub automation
Stars: ✭ 255 (+235.53%)
Mutual labels:  bot, automation
Instapy
📷 Instagram Bot - Tool for automated Instagram interactions
Stars: ✭ 12,473 (+16311.84%)
Mutual labels:  bot, automation
Vkb
Bot for vk.com competitions
Stars: ✭ 24 (-68.42%)
Mutual labels:  bot, automation
Instauto
Instagram bot / automation library written in Javascript for Node.js
Stars: ✭ 184 (+142.11%)
Mutual labels:  bot, automation
Instapy Gui
gui for instapy automation
Stars: ✭ 313 (+311.84%)
Mutual labels:  bot, automation
Instalike Instagram Bot
automate instagram activities using instagram bot - like follow/unfollow comment; python requests lib
Stars: ✭ 128 (+68.42%)
Mutual labels:  bot, automation
Whatsapp Web Bot
Whatsapp Web Bot - Example of Bot for use on Whatsapp Web (on Chrome)
Stars: ✭ 450 (+492.11%)
Mutual labels:  bot, automation
Pokemongo Bot
The Pokemon Go Bot, baking with community.
Stars: ✭ 3,730 (+4807.89%)
Mutual labels:  bot, automation
Whatsapp Bot
BOT - WhatsApp Web in TypeScript
Stars: ✭ 170 (+123.68%)
Mutual labels:  bot, automation
Openkore
A free/open source client and automation tool for Ragnarok Online
Stars: ✭ 956 (+1157.89%)
Mutual labels:  bot, automation
Instagram Bot
An Instagram bot developed using the Selenium Framework
Stars: ✭ 138 (+81.58%)
Mutual labels:  bot, automation
Nvidia Sniper
🎯 Autonomously buy Nvidia Founders Edition GPUs as soon as they become available.
Stars: ✭ 193 (+153.95%)
Mutual labels:  bot, automation
Auto Youtube Subscription Playlist 2
Script automatically adds videos to playlists from Youtube channels and/or subscriptions (Youtube Collections alternative).
Stars: ✭ 136 (+78.95%)
Mutual labels:  bot, automation
Ps4macro
Automation utility for PS4 Remote Play written in C#
Stars: ✭ 280 (+268.42%)
Mutual labels:  bot, automation
Facebookautolikeprofessional
Auto Like reactions and unlike Facebook Status, Comments, Photos, group posts, page posts, change facebook theme and skin colors, auto tag members in group post.. Auto Comment and Auto Reply to all Comments... Facebook Auto Like Unlimited 2019 is 100% safe to use...
Stars: ✭ 101 (+32.89%)
Mutual labels:  bot, automation
Vapor
☁️ Lightweight Steam client framework for node.js
Stars: ✭ 105 (+38.16%)
Mutual labels:  bot, automation
Go Instabot
Automatically follow, like, and comment on instagram
Stars: ✭ 345 (+353.95%)
Mutual labels:  bot, automation
Instagramfirstcommenter
This bot will post a predefined comment as fast as possible to a new post on the target profile. I used this to successfully win tickets for a big music festival.
Stars: ✭ 26 (-65.79%)
Mutual labels:  bot, automation

PS4 Remote Play Interceptor

nuget NuGet Donate Twitter

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)

Install-Package PS4RemotePlayInterceptor

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.

You can set EmulateController to true to use the library without a DualShock 4 controller plugged in (the real controller must be unplugged).

using PS4RemotePlayInterceptor;

class Program
{
    static void Main(string[] args)
    {
        // Setup callback to interceptor
        Interceptor.Callback = new InterceptionDelegate(OnReceiveData);
        // Emulate controller (BETA)
        Interceptor.EmulateController = false;

        // Start watchdog to automatically inject when possible
        Interceptor.Watchdog.Start();
        // Notify watchdog events
        Interceptor.Watchdog.OnInjectionSuccess = () => Console.WriteLine("Watchdog OnInjectionSuccess");
        Interceptor.Watchdog.OnInjectionFailure = () => Console.WriteLine("Watchdog OnInjectionFailure");

        // Or inject manually and handle exceptions yourself
        //Interceptor.Inject();

        Console.WriteLine("-- Press any key to exit");
        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;
    }
}

To-Do List

  • Intercept ouput reports

Troubleshoot

  • {"STATUS_INTERNAL_ERROR: Unknown error in injected C++ completion routine. (Code: 15)"}

SOLUTION: Restart PS4 Remote Play.

  • Injection IPC failed (on some machines)

SOLUTION: Inject with Compatibility mode instead

// Setup callback to interceptor
Interceptor.Callback = new InterceptionDelegate(OnReceiveData);

// Inject
Interceptor.InjectionMode = InjectionMode.Compatibility;
Interceptor.Inject();

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].