komefai / PS4Macro

Automation utility for PS4 Remote Play written in C#
http://blog.komefai.com
MIT License
378 stars 89 forks source link

Visual Studio scripting stop and pause #66

Open joelswkang opened 5 years ago

joelswkang commented 5 years ago

Hi all

It seems Komefai is no longer sees the posts...

But if there is anyone who is expert in C# scripting/coding, please I need your help.

I have got it to work to play macro with scripts that I wrote with Visual Studio.

However there is nowhere that I can find how to include script to pause or stop the macro when I pressed pause or stop button on PS4Macro.

I have tried including the following script:

public override void OnStopped() { base.OnStopped(); }

and

public override void OnPaused() { base.OnPaused(); }

Unfortunately, it doesn't work but only the script in "public override void Update()" repeats without stopping.

Please help!

HedioOnlyTheName commented 5 years ago

hi ! if you wanna pause/stop your script - my usually do method is open remapper then close it