+ Reply to Thread
Results 1 to 14 of 14

Thread: [Help] Using PostMessage (C# - Maplestory Bot)

  1. #1

    [Help] Using PostMessage (C# - Maplestory Bot)

    I'm trying to use the postmessage and it's working for keys such as
    0...9,a..z
    but I can't get it to work with keys like Ctrl/Shift/PgUp

    is there a reason for this o.O ?

    I use a complete list of all keys using them from the above :
    Code:
    VK_LBUTTON = 0x01, //Left mouse button 
    VK_RBUTTON = 0x02, //Right mouse button 
    VK_CANCEL = 0x03, //Control-break processing 
    VK_MBUTTON = 0x04, //Middle mouse button (three-button mouse) 
    VK_BACK = 0x08, //BACKSPACE key 
    VK_TAB = 0x09, //TAB key 
    VK_CLEAR = 0x0C, //CLEAR key 
    VK_RETURN = 0x0D, //ENTER key 
    VK_SHIFT = 0x10, //SHIFT key 
    VK_CONTROL = 0x11, //CTRL key 
    VK_MENU = 0x12, //ALT key 
    VK_PAUSE = 0x13, //PAUSE key 
    VK_CAPITAL = 0x14, //CAPS LOCK key 
    VK_ESCAPE = 0x1B, //ESC key 
    VK_SPACE = 0x20, //SPACEBAR 
    VK_PRIOR = 0x21, //PAGE UP key 
    VK_NEXT = 0x22, //PAGE DOWN key 
    VK_END = 0x23, //END key 
    VK_HOME = 0x24, //HOME key 
    VK_LEFT = 0x25, //LEFT ARROW key 
    VK_UP = 0x26, //UP ARROW key 
    VK_RIGHT = 0x27, //RIGHT ARROW key 
    VK_DOWN = 0x28, //DOWN ARROW key 
    VK_SELECT = 0x29, //SELECT key 
    VK_PRINT = 0x2A, //PRINT key 
    VK_EXECUTE = 0x2B, //EXECUTE key 
    VK_SNAPSHOT = 0x2C, //PRINT SCREEN key 
    VK_INSERT = 0x2D, //INS key 
    VK_DELETE = 0x2E, //DEL key 
    VK_HELP = 0x2F, //HELP key 
    VK_0 = 0x30, //0 key 
    VK_1 = 0x31, //1 key 
    VK_2 = 0x32, //2 key 
    VK_3 = 0x33, //3 key 
    VK_4 = 0x34, //4 key 
    VK_5 = 0x35, //5 key 
    VK_6 = 0x36, //6 key 
    VK_7 = 0x37, //7 key 
    VK_8 = 0x38, //8 key 
    VK_9 = 0x39, //9 key 
    VK_A = 0x41, //A key 
    VK_B = 0x42, //B key 
    VK_C = 0x43, //C key 
    VK_D = 0x44, //D key 
    VK_E = 0x45, //E key 
    VK_F = 0x46, //F key 
    VK_G = 0x47, //G key 
    VK_H = 0x48, //H key 
    VK_I = 0x49, //I key 
    VK_J = 0x4A, //J key 
    VK_K = 0x4B, //K key 
    VK_L = 0x4C, //L key 
    VK_M = 0x4D, //M key 
    VK_N = 0x4E, //N key 
    VK_O = 0x4F, //O key 
    VK_P = 0x50, //P key 
    VK_Q = 0x51, //Q key 
    VK_R = 0x52, //R key 
    VK_S = 0x53, //S key 
    VK_T = 0x54, //T key 
    VK_U = 0x55, //U key 
    VK_V = 0x56, //V key 
    VK_W = 0x57, //W key 
    VK_X = 0x58, //X key 
    VK_Y = 0x59, //Y key 
    VK_Z = 0x5A, //Z key 
    VK_NUMPAD0 = 0x60, //Numeric keypad 0 key 
    VK_NUMPAD1 = 0x61, //Numeric keypad 1 key 
    VK_NUMPAD2 = 0x62, //Numeric keypad 2 key 
    VK_NUMPAD3 = 0x63, //Numeric keypad 3 key 
    VK_NUMPAD4 = 0x64, //Numeric keypad 4 key 
    VK_NUMPAD5 = 0x65, //Numeric keypad 5 key 
    VK_NUMPAD6 = 0x66, //Numeric keypad 6 key 
    VK_NUMPAD7 = 0x67, //Numeric keypad 7 key 
    VK_NUMPAD8 = 0x68, //Numeric keypad 8 key 
    VK_NUMPAD9 = 0x69, //Numeric keypad 9 key 
    VK_SEPARATOR = 0x6C, //Separator key 
    VK_SUBTRACT = 0x6D, //Subtract key 
    VK_DECIMAL = 0x6E, //Decimal key 
    VK_DIVIDE = 0x6F, //Divide key 
    VK_F1 = 0x70, //F1 key 
    VK_F2 = 0x71, //F2 key 
    VK_F3 = 0x72, //F3 key 
    VK_F4 = 0x73, //F4 key 
    VK_F5 = 0x74, //F5 key 
    VK_F6 = 0x75, //F6 key 
    VK_F7 = 0x76, //F7 key 
    VK_F8 = 0x77, //F8 key 
    VK_F9 = 0x78, //F9 key 
    VK_F10 = 0x79, //F10 key 
    VK_F11 = 0x7A, //F11 key 
    VK_F12 = 0x7B, //F12 key 
    VK_SCROLL = 0x91, //SCROLL LOCK key 
    VK_LSHIFT = 0xA0, //Left SHIFT key 
    VK_RSHIFT = 0xA1, //Right SHIFT key 
    VK_LCONTROL = 0xA2, //Left CONTROL key 
    VK_RCONTROL = 0xA3, //Right CONTROL key 
    VK_LMENU = 0xA4, //Left MENU key 
    VK_RMENU = 0xA5, //Right MENU key 
    VK_PLAY = 0xFA, //Play key 
    VK_ZOOM = 0xFB, //Zoom key

  2. #2
    sorry I don't know much C# so I can't help but I don't think you will get many awnsers here maybe try checking out some forums specifically for programming. Or try W8baby they have a nice programming section with most C# users.
    Yep.

  3. #3
    Dark God nazgul1444's Avatar
    Join Date
    29th Dec 2006
    Location
    The Netherlands
    Posts
    2,923
    lolly, its almost the same as c++

    i can give u some code while using it ince c++, idk c#
    Quote Originally Posted by sandeepkb View Post
    Is it just me or does the loot don't work?
    EDIT :
    Nvm this xd, forgot to put auto loot on.
    .

  4. #4
    Devil of Hell blasterweb's Avatar
    Join Date
    10th Jan 2009
    Location
    In a Cave
    Posts
    300
    isnt c++ way better than c#
    My Characters:
    Demethos:

    Soul Master - 6X

    Striker - 3X

  5. #5
    YouThinkYouSeeMe? Golden Dragon Lapheoria's Avatar
    Join Date
    7th Mar 2009
    Location
    I'vebeentoBrightonSoWhat.
    Posts
    1,112
    You should assign Param also it will look like this for single click.


    Code:
    PostMessage(hWnd, &H201, 0, MakelParam(Cursor.Position.X, Cursor.Position.Y)) 'button down

  6. #6
    Dark God nazgul1444's Avatar
    Join Date
    29th Dec 2006
    Location
    The Netherlands
    Posts
    2,923
    Quote Originally Posted by blasterweb View Post
    isnt c++ way better than c#
    its not * better, u can do more with it, but its harder coding

    c++= hard but more
    c# = easier, (still not easy) but less

    depence what u gonna make
    Quote Originally Posted by sandeepkb View Post
    Is it just me or does the loot don't work?
    EDIT :
    Nvm this xd, forgot to put auto loot on.
    .

  7. #7
    Forgot to say I fixed it
    ( customized the MakeLParam since normal one has buggs in it )


    @Idiot who said that c++ is better then C# :
    loooooool
    You clearly know nothing about programming
    C# is like the most user friendly language there is
    and it uses alot less memory to run programs

  8. #8
    Dark God nazgul1444's Avatar
    Join Date
    29th Dec 2006
    Location
    The Netherlands
    Posts
    2,923
    yes but with c# u can do less, no doubt about that

    if u read my message, u wont say that

    btw i never said it was better
    Quote Originally Posted by sandeepkb View Post
    Is it just me or does the loot don't work?
    EDIT :
    Nvm this xd, forgot to put auto loot on.
    .

  9. #9
    Quote Originally Posted by nazgul1444 View Post
    yes but with c# u can do less, no doubt about that

    if u read my message, u wont say that

    btw i never said it was better
    dude...... the only time you can do more with c++
    is when you do memory editing
    C# has way more options and BTW after someone released
    an Assembly Class they became more or less equal in that too
    (still c++ has inline assembly)

  10. #10
    Dark God nazgul1444's Avatar
    Join Date
    29th Dec 2006
    Location
    The Netherlands
    Posts
    2,923
    Quote Originally Posted by 1981992 View Post
    dude...... the only time you can do more with c++
    is when you do memory editing
    C# has way more options and BTW after someone released
    an Assembly Class they became more or less equal in that too
    (still c++ has inline assembly)
    c++ has more options to work with, i dont say its better, u cant use c# if u wanna make real programs

    U are only thinking for maplestory, but it goes about all
    Quote Originally Posted by sandeepkb View Post
    Is it just me or does the loot don't work?
    EDIT :
    Nvm this xd, forgot to put auto loot on.
    .

  11. #11
    Quote Originally Posted by nazgul1444 View Post
    c++ has more options to work with, i dont say its better, u cant use c# if u wanna make real programs

    U are only thinking for maplestory, but it goes about all
    I'm talking about the exect opposite in Maple you have c++ with ASM function
    Overall C# is better for making "real programs" .. T.T

  12. #12
    iOwnCuziLeech =D Death Warrior LeetCakez's Avatar
    Join Date
    7th Aug 2009
    Posts
    554
    Who cares what's 'better' ? You've both got different opinions, that's all that's to it .. thread closed much :S -calls sezabi-
    My Graphics Design Work | EMS Forum Rules
    Hacking is like sex, it's addicting.
    VipGameHacks.com ~ Where Games meet their match
    For Picture Click Here
    Summon/ND Summon FAQ (Patched).
    Kadhim says:
    yes i dont know what asm is and im trying to make my own hacks

  13. #13
    YouThinkYouSeeMe? Golden Dragon Lapheoria's Avatar
    Join Date
    7th Mar 2009
    Location
    I'vebeentoBrightonSoWhat.
    Posts
    1,112
    Spam thread

  14. #14
    yea.. can be closed I already fixed the problems

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts