View previous topic :: View next topic |
Author |
Message |
theunchangable Expert Cheater
Reputation: 0
Joined: 14 Dec 2008 Posts: 120
|
Posted: Sun Feb 15, 2009 6:05 pm Post subject: C++ code problem |
|
|
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 |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Sun Feb 15, 2009 6:12 pm Post subject: |
|
|
and PM is your bypassed Postmessage function correct?
_________________
|
|
Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sun Feb 15, 2009 6:16 pm Post subject: |
|
|
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 |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Sun Feb 15, 2009 6:21 pm Post subject: |
|
|
Just curious what are you using to bypass SetCursorPos()
and Albanian, check your thread in MS section
_________________
|
|
Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sun Feb 15, 2009 6:25 pm Post subject: |
|
|
manc wrote: | Just curious what are you using to bypass SetCursorPos()
and Albanian, check your thread in MS section  |
Replied and try my code, and char* = pointer.
_________________
|
|
Back to top |
|
 |
|