Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
voicebot with LA
#2
2 ways.

1. Simple. To run a LA script from VoiceBot, use the "start program" action in the VoiceBot macro.
 
Program: C:\Program Files\LibreAutomate\Au.Editor.exe
Command: "Script name.cs"

2. Use the LA automation library in a VoiceBot C# script.

If VoiceBot does not support NuGet, you can manually download LA dlls.
Download: https://www.nuget.org/packages/LibreAutomate
If your "unzip" program can't extract nupkg files, change the extension from .nupkg to .zip.
Extract these files into some folder:
- lib\net6.0-windows7.0\Au.dll
- runtimes\win-x64\native\AuCpp.dll
- runtimes\win-x64\native\sqlite.dll (need only if you'll use SQLite classes)
Then add Au.dll to the VoiceBot script references.

VoiceBot script example:
Code:
Copy      Help
using System;
using Au;

public static class VoiceBotScript
{
    public static void Run(IntPtr windowHandle)
    {

        print.it("VoiceBot");
        dialog.showInfo("Test");
    }
}


Messages In This Thread
voicebot with LA - by birdywen - 03-15-2024, 05:57 AM
RE: voicebot with LA - by Gintaras - 03-16-2024, 09:28 AM
RE: voicebot with LA - by birdywen - 03-16-2024, 12:51 PM
RE: voicebot with LA - by Gintaras - 03-16-2024, 01:12 PM
RE: voicebot with LA - by birdywen - 03-16-2024, 04:53 PM
RE: voicebot with LA - by Gintaras - 03-17-2024, 04:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)