❔ 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
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
that its the start
samovar its a variable cuz have other things with other names
last collected its
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");
}
}
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");
}
}
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") + "\"}}]}");
}
}
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");
}
}
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") + "\"}}]}");
}
}
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");
}
}
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");
}
}
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
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.