Writing bot code in the VS

sanderling

#1

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?


#2

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.


#3

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


#4

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.

#5

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


#6

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


#7

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