| View previous topic :: View next topic |
| Author |
Message |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Thu Feb 26, 2009 12:19 am Post subject: can PostMessage post a string? |
|
|
im making my personal autologin in c++ for Maplestory...
Rather than posting each letter individually, (using PostMessage) can I just post a whole string?
If yes, how so?
If not..is there a better api to do this?
_________________
|
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Thu Feb 26, 2009 12:40 am Post subject: Re: can PostMessage post a string? |
|
|
| manc wrote: | im making my personal autologin in c++ for Maplestory...
Rather than posting each letter individually, (using PostMessage) can I just post a whole string?
If yes, how so?
If not..is there a better api to do this? |
With WM_KEYDOWN ? no.
Uhh..find a handle to maple's editboxes for username+password using FindWindowEx on the main window, then send the WM_SETTEXT message using PostMessage.
Alternatively, send a login packet. (the login packet contains username and password, then there is a pin packet, but that includes AccountID so you would need to hook to grab the ID)
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Thu Feb 26, 2009 12:47 am Post subject: Re: can PostMessage post a string? |
|
|
| smartz993 wrote: |
Uhh..find a handle to maple's editboxes for username+password using FindWindowEx on the main window, then send the WM_SETTEXT message using PostMessage.
|
Awesome. Thanks
_________________
Last edited by manc on Thu Feb 26, 2009 1:27 am; edited 1 time in total |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Feb 26, 2009 1:25 am Post subject: |
|
|
| Re-read that response... he told you how.
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Thu Feb 26, 2009 1:27 am Post subject: |
|
|
Wow I completely overlooked that somehow. Thanks.
_________________
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Thu Feb 26, 2009 1:37 pm Post subject: Re: can PostMessage post a string? |
|
|
| smartz993 wrote: | | Uhh..find a handle to maple's editboxes for username+password using FindWindowEx on the main window, then send the WM_SETTEXT message using PostMessage. |
Im not sure, but i dont think the Editboxes in MS login screen got a handle
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 26, 2009 5:41 pm Post subject: |
|
|
| But you have to click it first. and yea like Irwin said just loop through each character and send a WM_CHAR message and it will work.
|
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Thu Feb 26, 2009 6:51 pm Post subject: |
|
|
You're stupid Irwin.
Looping through the characters is less efficient than the way i showed, and you will still need to click the next box or send a tab. (i think that's what dnsi0 was talking about)
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 26, 2009 8:32 pm Post subject: |
|
|
| Well... For my auto login, I just made it so that it clicks the username box, then the password box then the login button. Then Send WM_CHAR messages for the pin, surprisingly the box asking for pin didn't popup yay... then it selects all the stuff...
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Thu Feb 26, 2009 8:45 pm Post subject: |
|
|
Am I suppose to call it like this?
| Code: | | SendString( hWnd, lpcszMessage , 0); |
I don't know what goes in for lpszMessage
and dnsi0, how exactly did you send numbers for your pin without first activating pin typer?
_________________
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Thu Feb 26, 2009 8:50 pm Post subject: |
|
|
| just send WM_CHAR and using the pin. It doesn't bring up the pin typer but just goes into the pin area. So you can type letters in there too XD.
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Thu Feb 26, 2009 8:58 pm Post subject: |
|
|
WM_CHAR with postmessage?
_________________
|
|
| Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Thu Feb 26, 2009 10:23 pm Post subject: |
|
|
Spaming WM_CHAR is the best and simplest way, Irwin is right.
_________________
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Thu Feb 26, 2009 10:49 pm Post subject: |
|
|
| AlbanainRetard wrote: | | Spaming WM_CHAR is the best and simplest way, Irwin is right. |
I really dont understand what you guys are talking about, you keep saying "spam with WM_CHAR", but which function am I even supposed to be using it in? PostMessage? SendMessage?
_________________
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Thu Feb 26, 2009 10:56 pm Post subject: |
|
|
WM_CHAR is a parameter that can be used in PostMessage.
char* SendText = "hi im kool";
for( int i = 0; i <= strlen( SendText ); i++ )
PostMessage( HWND, WM_CHAR, SendText[i], 0 );
basically, this is postmessaging each letter one by one from SendText.
|
|
| Back to top |
|
 |
|