Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] Auto write text

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
TraxMate
Master Cheater
Reputation: 0

Joined: 01 Mar 2008
Posts: 363

PostPosted: Tue Dec 16, 2008 1:16 pm    Post subject: [C++] Auto write text Reply with quote

I'm making an auto login for maplestory but I don't know how I will make it write my username and password. I only know how to send a single letter but not a whole word. The only way I can think of is by sending one letter in a time with PostMessage but I know there must be a more efficient way.
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Tue Dec 16, 2008 1:22 pm    Post subject: Reply with quote

I tried once to do a macro with keybd_event(#,#,#,#);

but maple story detects it and doesnt let it run
Isn't it the same with postmessage?
Back to top
View user's profile Send private message MSN Messenger
TraxMate
Master Cheater
Reputation: 0

Joined: 01 Mar 2008
Posts: 363

PostPosted: Tue Dec 16, 2008 1:45 pm    Post subject: Reply with quote

You can hook-hop PostMessage so that GG wont detect it.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Dec 16, 2008 2:06 pm    Post subject: Reply with quote

sending 1 char at the time is the best way i can think of.. how is a word normally sent ? 1 character at a time.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Tue Dec 16, 2008 2:29 pm    Post subject: Reply with quote

There's always the alternate approach Razz
Find out what function(s) are called when you press Login and then hook them.

Like if they used GetDlgItemText or GetWindowText, hook one of those, copy your user/pass to the buffer depending on the id/window. and then return.

_________________
Back to top
View user's profile Send private message
TraxMate
Master Cheater
Reputation: 0

Joined: 01 Mar 2008
Posts: 363

PostPosted: Tue Dec 16, 2008 2:30 pm    Post subject: Reply with quote

Slugsnack wrote:
sending 1 char at the time is the best way i can think of.. how is a word normally sent ? 1 character at a time.

Yes but instead of doing
Code:
PostMessage(hWnd, WM_CHAR, (WPARAM)'U', 0);
PostMessage(hWnd, WM_CHAR, (WPARAM)'s', 0);
PostMessage(hWnd, WM_CHAR, (WPARAM)'e', 0);
PostMessage(hWnd, WM_CHAR, (WPARAM)'r', 0);
PostMessage(hWnd, WM_CHAR, (WPARAM)'n', 0);
PostMessage(hWnd, WM_CHAR, (WPARAM)'a', 0);
PostMessage(hWnd, WM_CHAR, (WPARAM)'m', 0);
PostMessage(hWnd, WM_CHAR, (WPARAM)'e, 0);

I was wondering if there was another way.

lurc wrote:
There's always the alternate approach
Find out what function(s) are called when you press Login and then hook them.

Like if they used GetDlgItemText or GetWindowText, hook one of those, copy your user/pass to the buffer depending on the id/window. and then return.
That is a good idea but I have no idea how to find out what functions being called.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Tue Dec 16, 2008 2:56 pm    Post subject: Reply with quote

Code:
LPTSTR lpUser = _T("Username");
for (int i = 0; i < lstrlen(lpUser); i++)
    PostMessage(hWnd, WM_CHAR, (WPARAM)lpUser[i], 0);

_________________
Back to top
View user's profile Send private message
TraxMate
Master Cheater
Reputation: 0

Joined: 01 Mar 2008
Posts: 363

PostPosted: Tue Dec 16, 2008 3:02 pm    Post subject: Reply with quote

Thanks lurc Very Happy. I was trying something like this just now but mine didn't work :p. You make it look so easy.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites