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++ code problem

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

Joined: 14 Dec 2008
Posts: 120

PostPosted: Sun Feb 15, 2009 6:05 pm    Post subject: C++ code problem Reply with quote

could someone help me with this code im trying to make a autologin but its not typing for some reason in the maplestory window


HWND MSHWND = FindWindow ("MapleStoryClass",0); //Find class window
char* user = "Username";
for(unsigned int i = 0; i < strlen(user); i++)
{
LPARAM keyParam = (MapVirtualKey(UINT(user[i]), 0) << 16) + 1;
PM(MSHWND, WM_KEYDOWN, WPARAM(user[i]), keyParam);
PM(MSHWND, WM_KEYUP, WPARAM(user[i]), keyParam);
}
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Sun Feb 15, 2009 6:12 pm    Post subject: Reply with quote

and PM is your bypassed Postmessage function correct?
_________________
Back to top
View user's profile Send private message
AlbanainRetard
Master Cheater
Reputation: 0

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

PostPosted: Sun Feb 15, 2009 6:16 pm    Post subject: Reply with quote

Um use my updated code, and I pmed unknown. AND NEVER USE A CHAR POINTER if its not pointing to a char.

Code:


#include <string.h>

string name  = "Username";
for ( int i = 0; i < strlen(name); i++)
{
     PM(MSHWND, WM_KEYDOWN, name[i],MapVirtualKey(name[i], 0) << 16) + 1); //Send "Z" Key
     PM(MSHWND, WM_KEYUP, name[i], NULL);
}


_________________
Back to top
View user's profile Send private message Send e-mail
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Sun Feb 15, 2009 6:21 pm    Post subject: Reply with quote

Just curious what are you using to bypass SetCursorPos()

and Albanian, check your thread in MS section Very Happy

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

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

PostPosted: Sun Feb 15, 2009 6:25 pm    Post subject: Reply with quote

manc wrote:
Just curious what are you using to bypass SetCursorPos()

and Albanian, check your thread in MS section Very Happy


Replied and try my code, and char* = pointer.

_________________
Back to top
View user's profile Send private message Send e-mail
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