Writing bot code in the VS

Hi. Since writing code in the program itself results in ramps of RAM, I decided to write the code directly to VS. But as I understand there are differences between writing in the studio and right in the program. For example, how to get MemoryMeasurementParsed.Value, it if the does not exist in the Sanderling namespace.

And then how to run this script through the VS?

To get the value of MemoryMeasurementParsed.Value, use the following expression, where measurement is the measurement of type MemoryStruct.IMemoryMeasurement:

Sanderling.Parse.Extension.Parse(measurement)

This returns the parsed measurement of type Sanderling.Parse.IMemoryMeasurement.

Oh, I understood. So, I wrote the script, and how run it from VS?

To run a bot in VS:

  • Get the source code from https://github.com/Arcitectus/Sanderling
  • Add the script to the project at src/Sanderling/Sanderling.Sample.Read/Sanderling.Sample.Read.csproj, as that project already contains the memory reading API your script depends on.

But this project only has logic for memory reading and it doesnt explain in a easy way how to run the bot.

To easily run the bot, you can load the bot code into the Sanderling App.

in order to fly, lift yourself up into the air.