2. Gibt es in c ein Befehl der alle laufenden Prozesse abschiest (killt)?
3.
Code: Alles auswählen
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main(int argc, char *argv[])
{
int Startbuttonx=20;
int Startbuttony=GetSystemMetrics(SM_CYSCREEN)-20;
SetCursorPos(27,785);
mouse_event(MOUSEEVENTF_LEFTDOWN,Startbuttonx,Startbuttony,27,785);
mouse_event(MOUSEEVENTF_LEFTUP,Startbuttonx,Startbuttony,27,785);
SetCursorPos(288,749);
mouse_event(MOUSEEVENTF_LEFTDOWN,Startbuttonx,Startbuttony,288,749);
mouse_event(MOUSEEVENTF_LEFTUP,Startbuttonx,Startbuttony,288,749);
system("PAUSE");
return 0;
}
(das programm klickt zu erst auf strat und dann sollte auf den ausschalt Knopf drücken (es hatt die richtige possition) und manuel klap das runterfahren....
mfg
Empire