Jump to content
  • Advertisement

Hell4Ge

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

100 Neutral

About Hell4Ge

  • Rank
    Newbie

Personal Information

  • Interests
    Programming
  1. Hell4Ge

    Sending Message wont work as i expect

    SendInput is more hard to use, but i will try Thx
  2. #include <windows.h> #include <conio.h> #include <iostream> int main() { HWND hClient = FindWindow("LeagueOfLegendsWindowClass", NULL); std::cout << hClient; PostMessage(hClient, WM_KEYDOWN, 0x45, 0); getch(); return 0; } I cant cast spells in that way, I can only write chatbox messages, but this isnt only in League of Legends... In other game i couldnt open inventory in that way, but I still could operate with gamechat Whats wrong? Is it possible that there is other thread in process where i should send keys?
  3. Win7 Ult x64 Edit: There can be any other language, I think I can learn basics very quickly
  4. Yup I am working on program to make multi instances of some game, I think i need to change process name to do it
  5. Hell4Ge

    Ok, so why this code wont work?

    Keys werent sent to notepad edit field Ok i know why it wont work HWND hwnd = FindWindow("Notepad", NULL); Isnt a "place" to send keys, you must set it with more precision like HWND general_hwnd = FindWindow("Notepad", NULL); HWND edit_hwnd = FindWindowEx(general_hwnd, NULL, "Edit", NULL); Then it will work
  6. #include <iostream> #include <Windows.h> using namespace std; int main() { HWND hwnd = FindWindow("Notepad", NULL); cout << hwnd << endl; SendMessage(hwnd, WM_KEYDOWN,0x43, 0); // C Key SendMessage(hwnd, WM_KEYUP, 0x43, 0); return 0; } Tried with VS 2010 and Codeblocks
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!