eClient
eClient copied to clipboard
shortcut leads to eclient.pyw
shortcut created by installer leads to eclient.pyw but its just path leading to python file so that shortcut should contain something like this:
pythonw C:/path/path/path/eclient.pyw
or you should make it run an executable like this:
#include <windows.h>
int main() {
// script to run
char *command = "pythonw.exe eclient.pyw";
PROCESS_INFORMATION pi;
STARTUPINFO si;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
if (CreateProcess(NULL, command, NULL, NULL, FALSE, CREATE_NEW_PROCESS_GROUP | DETACHED_PROCESS, NULL, NULL, &si, &pi)) {
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
// TerminateProcess(GetCurrentProcess(), 0);
return 0;
} else {
return 1;
}
}
just compile and make shortcut point to it and thats it