C
C#2y ago
اMSA

❔ broken c# (its a large code explained)

using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("since_start", "gather", "" , RetVal, 255, "./timer.ini");

long last = long.Parse(RetVal.ToString());

string old = System.Windows.Forms.Clipboard.GetText();
if (time - last >= 6000000000) System.Windows.Forms.Clipboard.SetText("end");
}
}
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("since_start", "gather", "" , RetVal, 255, "./timer.ini");

long last = long.Parse(RetVal.ToString());

string old = System.Windows.Forms.Clipboard.GetText();
if (time - last >= 6000000000) System.Windows.Forms.Clipboard.SetText("end");
}
}
6 Replies
اMSA
اMSAOP2y ago
Got that Its do something, and Go Farm, so when since start, gather get a time It would reset and back to do other thing But its getting exection by call
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string name,string key,string val,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);
WritePrivateProfileString("last_collected", "samovar", time.ToString(), "./timer.ini");
}
}
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string name,string key,string val,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);
WritePrivateProfileString("last_collected", "samovar", time.ToString(), "./timer.ini");
}
}
that its the start samovar its a variable cuz have other things with other names last collected its
اMSA
اMSAOP2y ago
اMSA
اMSAOP2y ago
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("last_collected", "planterssms", "", RetVal, 255, "./timer.ini");

long last = long.Parse(RetVal.ToString());

string old = System.Windows.Forms.Clipboard.GetText();
if (time - last >= 72000000000) System.Windows.Forms.Clipboard.SetText("planterssms");
}
}
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("last_collected", "planterssms", "", RetVal, 255, "./timer.ini");

long last = long.Parse(RetVal.ToString());

string old = System.Windows.Forms.Clipboard.GetText();
if (time - last >= 72000000000) System.Windows.Forms.Clipboard.SetText("planterssms");
}
}
planterssms is one variable for goto on a label for get that thing btw have 1 or 2 of that just with other name
using System.Runtime.InteropServices;
using System.Net;
using System.Text;
using System;

public class Program
{
// ↓↓↓↓↓↓↓↓ CHANGE THESE TO THE VARIABLES YOU WANT
const string message = "traveling Pine!";
const string color = "4762204";

[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("settings", "webhook", "", RetVal, 255, "./config.ini");
string webhook_url = RetVal.ToString();
GetPrivateProfileString("last_collected", "planterssms", "", RetVal, 255, "./timer.ini");



long last = long.Parse(RetVal.ToString());

long tup = time - last ;

long left = 72000000000 - tup;


TimeSpan timespan = TimeSpan.FromSeconds(left / 10000000);
string duration = timespan.Hours.ToString() + ":" + timespan.Minutes.ToString();



ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
WebClient wc = new WebClient();
wc.Headers[HttpRequestHeader.UserAgent] = "Jitbit";
wc.Headers[HttpRequestHeader.ContentType] = "application/json";
wc.UploadString(webhook_url, "{\"embeds\":[{\"description\":\"" + "" + " " +
message + "\",\"color\":\"" + color + "\",\"footer\":{\"text\":\"" + System.DateTime.Now.ToString("HH:mm") + "\"}}]}");
}
}
using System.Runtime.InteropServices;
using System.Net;
using System.Text;
using System;

public class Program
{
// ↓↓↓↓↓↓↓↓ CHANGE THESE TO THE VARIABLES YOU WANT
const string message = "traveling Pine!";
const string color = "4762204";

[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("settings", "webhook", "", RetVal, 255, "./config.ini");
string webhook_url = RetVal.ToString();
GetPrivateProfileString("last_collected", "planterssms", "", RetVal, 255, "./timer.ini");



long last = long.Parse(RetVal.ToString());

long tup = time - last ;

long left = 72000000000 - tup;


TimeSpan timespan = TimeSpan.FromSeconds(left / 10000000);
string duration = timespan.Hours.ToString() + ":" + timespan.Minutes.ToString();



ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
WebClient wc = new WebClient();
wc.Headers[HttpRequestHeader.UserAgent] = "Jitbit";
wc.Headers[HttpRequestHeader.ContentType] = "application/json";
wc.UploadString(webhook_url, "{\"embeds\":[{\"description\":\"" + "" + " " +
message + "\",\"color\":\"" + color + "\",\"footer\":{\"text\":\"" + System.DateTime.Now.ToString("HH:mm") + "\"}}]}");
}
}
that its a webhook sender get time from it too idk how explain that so have very of that now the farm part
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string name,string key,string val,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);
WritePrivateProfileString("since_start", "gather", time.ToString(), "./timer.ini");
}
}
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string name,string key,string val,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);
WritePrivateProfileString("since_start", "gather", time.ToString(), "./timer.ini");
}
}
get that
using System.Runtime.InteropServices;
using System.Net;
using System.Text;
using System;

public class Program
{
// ↓↓↓↓↓↓↓↓ CHANGE THESE TO THE VARIABLES YOU WANT
const string message = "gathering Pine 10mins e_lol";
const string color = "255";

[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("settings", "webhook", "", RetVal, 255, "./config.ini");
string webhook_url = RetVal.ToString();
GetPrivateProfileString("last_collected", "planterssms", "", RetVal, 255, "./timer.ini");



long last = long.Parse(RetVal.ToString());

long tup = time - last ;

long left = 72000000000 - tup;


TimeSpan timespan = TimeSpan.FromSeconds(left / 10000000);
string duration = timespan.Hours.ToString() + ":" + timespan.Minutes.ToString();



ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
WebClient wc = new WebClient();
wc.Headers[HttpRequestHeader.UserAgent] = "Jitbit";
wc.Headers[HttpRequestHeader.ContentType] = "application/json";
wc.UploadString(webhook_url, "{\"embeds\":[{\"description\":\"" + "" + " " +
message + "\",\"color\":\"" + color + "\",\"footer\":{\"text\":\"" + System.DateTime.Now.ToString("HH:mm") + "\"}}]}");
}
}
using System.Runtime.InteropServices;
using System.Net;
using System.Text;
using System;

public class Program
{
// ↓↓↓↓↓↓↓↓ CHANGE THESE TO THE VARIABLES YOU WANT
const string message = "gathering Pine 10mins e_lol";
const string color = "255";

[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("settings", "webhook", "", RetVal, 255, "./config.ini");
string webhook_url = RetVal.ToString();
GetPrivateProfileString("last_collected", "planterssms", "", RetVal, 255, "./timer.ini");



long last = long.Parse(RetVal.ToString());

long tup = time - last ;

long left = 72000000000 - tup;


TimeSpan timespan = TimeSpan.FromSeconds(left / 10000000);
string duration = timespan.Hours.ToString() + ":" + timespan.Minutes.ToString();



ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
WebClient wc = new WebClient();
wc.Headers[HttpRequestHeader.UserAgent] = "Jitbit";
wc.Headers[HttpRequestHeader.ContentType] = "application/json";
wc.UploadString(webhook_url, "{\"embeds\":[{\"description\":\"" + "" + " " +
message + "\",\"color\":\"" + color + "\",\"footer\":{\"text\":\"" + System.DateTime.Now.ToString("HH:mm") + "\"}}]}");
}
}
so after farm it will check :
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("since_start", "gather", "" , RetVal, 255, "./timer.ini");

long last = long.Parse(RetVal.ToString());

string old = System.Windows.Forms.Clipboard.GetText();
if (time - last >= 6000000000) System.Windows.Forms.Clipboard.SetText("end");
}
}
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);

var RetVal = new StringBuilder(255);
GetPrivateProfileString("since_start", "gather", "" , RetVal, 255, "./timer.ini");

long last = long.Parse(RetVal.ToString());

string old = System.Windows.Forms.Clipboard.GetText();
if (time - last >= 6000000000) System.Windows.Forms.Clipboard.SetText("end");
}
}
and if correct go to end label or repeat x times with repeat thing
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string name,string key,string val,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);
WritePrivateProfileString("since_start", "gather", null, "./timer.ini");
}
}
using System.Runtime.InteropServices;
using System.Text;

public class Program
{
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string name,string key,string val,string filePath);

[DllImport("kernel32.dll")]
public static extern void GetSystemTimeAsFileTime(out long systemTimeAsFileTime);

public static void Main()
{
long time;
GetSystemTimeAsFileTime(out time);
WritePrivateProfileString("since_start", "gather", null, "./timer.ini");
}
}
اMSA
اMSAOP2y ago
اMSA
اMSAOP2y ago
in that part its active exection by call i tried put in start of macro and does nothing ;-; im breaking my head with that if someone can help me
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server