There is an online game written in delphi. I want to write something like a trainer. Inject my Dll into it. I learned the socket descriptor and sent the packages I needed by pressing the keys, but GetAsyncKeyState created a loop and as a result a huge load on the percent and the application crashed. How can it be otherwise? Is it possible to write my data to the stack using writeprocessmemory and send it from the application?

отправка пакета происходит намного после чем вызов функцииpossible due to the use of the algorithm of the charge.но не знаю как вызыватьto write a code that will put the necessary values in registers (address \ size \ socket \ ...) and further place this code in the memory of another process, in the same way as the data, and then callCreateRemoteThread- Vladimir Klykov