ok, so my problem now is that 1 loop is blocking everything else when started. i figured out that when i put every loop in separate dll everything works fine. but still im curious how to do it the other way. anybody can enlighten me in pm?
and using a hotkey only starts and breaks the loopQuote:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)something, 0, 0, 0);
am i wrong, or should i use the flags?Quote:
void something()
{
while (1)
{
if (GetKeyState(VK_F7) < 0)
{
int i = 0;
while(i == 0){
x=y;
if (GetKeyState(VK_F8) < 0)
i = 1;
Sleep(100);
}
}
Sleep(100);
}
And only combo and no skill delay have loops. After all, i think 2 loops repeating 10 times a second is still better than 1 loop repeats 1000 times.Quote:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Gmaoe, 0, 0, 0);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Combo, 0, 0, 0);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Delay, 0, 0, 0);