|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Coder4 How do I cheat? Reputation: 0
Joined: 08 Sep 2012 Posts: 3
|
Posted: Sat Sep 08, 2012 7:38 am Post subject: WinApi: ENTER is not send |
|
|
Hi,
I'm trying to write a text into a textfield and simulate the ENTER button. This field is inside a java applet.
However, ENTER is ignored. The text is written in the field, but ENTER is not pressed. Can you please help me?
The site is knuddelz.de, I want to fill out the fields and press enter.
Code: | SendMessage(&H500932, WM_SETTEXT, 0, "myNickname")
SendMessage(&H1E05FE, WM_SETTEXT, 0, "myPassword")
SendMessage(&H160A52, WM_SETTEXT, 0, "myRoom")
SendMessage(&H160A52, WM_CHAR, WM_ENTER, 0&) |
In case of success, a small window would appear.
Thanks.
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
|
Posted: Sat Sep 08, 2012 12:39 pm Post subject: |
|
|
WM_ENTER is not the proper code. You want VK_RETURN.
_________________
- Retired. |
|
Back to top |
|
|
Coder4 How do I cheat? Reputation: 0
Joined: 08 Sep 2012 Posts: 3
|
Posted: Sat Sep 08, 2012 3:04 pm Post subject: |
|
|
Thanks. I've tried
Code: | PostMessage(&H9084E, WM_KEYDOWN, VK_RETURN, &H1C001)
PostMessage(&H9084E, WM_CHAR, VK_RETURN, &H1C001)
PostMessage(&H9084E, WM_KEYUP, VK_RETURN, &HC01C0001) |
But this is also not working.
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
|
Posted: Sat Sep 08, 2012 4:51 pm Post subject: |
|
|
Try using one of the following API instead:
- keybd_event
- SendInput
_________________
- Retired. |
|
Back to top |
|
|
Coder4 How do I cheat? Reputation: 0
Joined: 08 Sep 2012 Posts: 3
|
Posted: Sat Sep 08, 2012 5:12 pm Post subject: |
|
|
I've noticed that under Java 6 everything is working fine - as it should be.
But under Java 7 just Enter is not working.
As I've written, the box is inside a java applet.
I have no idea why it's not working with this version. Has anybody an idea?
@Wiccaan: Thanks, but I think with this methods the box has to be in the foreground or focus. Enter should work also when it's not.
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|