[Release][C++ Code] GM/AOE/Range

08/03/2012 11:47 pipaputi#181
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?
08/03/2012 12:10 genesisVI#182
try to put it on a different thread ......
08/03/2012 14:29 pipaputi#183
thanks, im kinda new in c++ but after few tries i figured it out :)

one last question if i may.

if sleep values is set to let's say 100, does it have any visible results on app working, and overall system performance? especially for so called wooden pc's cause i have one
08/03/2012 15:10 madutz1#184
Any download link ? of .exe ?
08/03/2012 15:10 lowkey04#185
@pipaputi
in my tests, no. it doesn't affect the 'functionality' at all (aoe, nsd, no cd, etc.) and can help lessen the impact on your system. be careful in using threads, you wouldn't want to slow down a system by letting the user press a hotkey multiple times w/c results in multiple threads running in the background. ;)
08/03/2012 15:29 dimpwafu#186
can someone teach me how to find address of no cooldown skill? thnx.. :D
08/03/2012 15:34 pipaputi#187
@lowkey04
i thought that thread is created at the beginning with this:
Quote:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)something, 0, 0, 0);
and using a hotkey only starts and breaks the loop
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);
}
am i wrong, or should i use the flags?
08/03/2012 16:03 lowkey04#188
@pipaputi
ahh. that's fine then if you're just creating a single thread w/c calls your main routine. i thought you where using a new thread for the other functions. :rolleyes:

you're code is fine but when you start using multiple hotkeys for multiple functions, you're current way of handling them won't be an efficient one.
08/03/2012 16:15 pipaputi#189
@lowkey04
That was an example, actually im using 3:
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);
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.
08/03/2012 16:36 lowkey04#190
@pipaputi
then i'm back to my orig statement with regards to multiple threads.

every call to a createthread function will create a new thread, it doesn't automatically close by itself unless you tell it so.

now, imagine a user toggling a function on/off multiple times. unless you terminate each thread before calling a new one, each toggle just creates a new thread.
08/03/2012 17:29 pipaputi#191
now i'm really confused *.*
08/03/2012 17:34 dimpwafu#192
hey there lowkey can you help me?just wanna know the address of no cooldown skill.. thnx in advance
08/03/2012 20:07 pipaputi#193
ok, thx all, problem resolved
you guys are awesome :)
08/04/2012 17:31 mi5pogi#194
@pscbots
can you please give us a simple code to trigger one key for autopots?please please??
i really cant figure it out.
08/04/2012 17:47 bartbilf#195
@mi5pogi
he has it memory based, but I gues you mean hotkey-based? then try to simulate the keyboard presses and not just sent the key strokes (I don't have it working either, but looking at some macro tools, they emulate the keypress and not just sent the keypress)