View previous topic :: View next topic |
Author |
Message |
eigocc Newbie cheater Reputation: 0
Joined: 22 Dec 2018 Posts: 15
|
Posted: Tue Jan 08, 2019 12:40 am Post subject: Call API, game no response |
|
|
After calling API sendMessageW, the game lost its response and subsequent instructions were not executed!Can anyone help me with this problem?I don't know what this is about.[/img]
Description: |
|
Filesize: |
44.02 KB |
Viewed: |
1886 Time(s) |
|
Description: |
|
Filesize: |
36.89 KB |
Viewed: |
1886 Time(s) |
|
Description: |
|
Filesize: |
8.15 KB |
Viewed: |
1886 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Tue Jan 08, 2019 1:31 am Post subject: |
|
|
Is the place you hook the main GUI thread? if so, sendmessage waits till the message has been handled, and the main GUI thread is the one that does the handling. Use postmessage instead
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
eigocc Newbie cheater Reputation: 0
Joined: 22 Dec 2018 Posts: 15
|
Posted: Tue Jan 08, 2019 1:56 am Post subject: |
|
|
Great, you solved my problem perfectly!
|
|
Back to top |
|
|
eigocc Newbie cheater Reputation: 0
Joined: 22 Dec 2018 Posts: 15
|
Posted: Tue Jan 08, 2019 10:00 am Post subject: |
|
|
Now we have a new problem,I need to hit the space bar when the ball crosses the red line,But because it's so fast and postMessage has latencySo I can't hit the space bar on time,This problem can be solved by sendMessage.Is there any method to solve the problem of unresponsive program?
Description: |
|
Filesize: |
15.24 KB |
Viewed: |
1853 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Tue Jan 08, 2019 11:45 am Post subject: |
|
|
send the space one frame before it's time, the next frame it will check the keyboard buffer again and then check the ball position
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
eigocc Newbie cheater Reputation: 0
Joined: 22 Dec 2018 Posts: 15
|
Posted: Tue Jan 08, 2019 12:35 pm Post subject: |
|
|
This is a game, the speed is not the same, so it is not compatible with all the speed!I tried using hookWndProc to intercept the button and return a message, but this still didn't work!In this way, all the buttons are invalid. What's more, the game is still unresponsive!I hope you can help me solve this problem!
|
|
Back to top |
|
|
eigocc Newbie cheater Reputation: 0
Joined: 22 Dec 2018 Posts: 15
|
Posted: Tue Jan 08, 2019 10:50 pm Post subject: |
|
|
cmp eax,36f
jne originalcode
push eax
push 0
push 20
push 102
push [point+4]
call sendMessageA
pop eax
↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
After sendMessage is called, is there any way to make the program wait?I want sendMessage to finish executing before running the rest of the code!
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Wed Jan 09, 2019 1:23 am Post subject: |
|
|
you need to use postmessage or use a different non-message method.
You're sending the message too late.
but try SendNotifyMessageA
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
|