C# Generate Keypress

08/07/2014 23:48 tinky1337#1
Hi guys.

Is it possible to generate a key press for lol using c# ?

Tried in many ways but it only works in the chat, it doesn't cast spells.
08/08/2014 00:08 AZB TPT OhReaL#2
Yes its possible and easy if you got Macro using keyboard and mouse :D
08/08/2014 00:19 tinky1337#3
Ye but I want to generate it in C# :(

I can easily move/click the mouse, but the keyboard :o
08/08/2014 18:05 D3luxe.#4
[Only registered and activated users can see links. Click Here To Register...]
08/08/2014 18:35 tinky1337#5
Quote:
Originally Posted by D3luxe. View Post
[Only registered and activated users can see links. Click Here To Register...]
Thx but I wouldn't post here if the answer was that easy.

Quote:
Originally Posted by tinky1337
Tried in many ways but it only works in the chat, it doesn't cast spells.
Tried SendKeys, SendMessage, PostMessage and some others things I don't remember.
So im asking for something you know it works (im trying to cast spells :)).

Except if I did it wrong but I don't think so since it typed in the chat.
08/08/2014 18:42 D3luxe.#6
Can you get a delay in there?
Like, send key_down, wait, send key_up.

Afaik Lol accepts key presses for spells only if they are presses ~ 20? 30? milliseconds. Try doing this with a 50ms delay and it should work.
08/08/2014 18:47 Mithrandir.#7
Read/Write ProcessMemory into DirectX Games
maybe this helps u finding something o.o
08/08/2014 20:19 tinky1337#8
Quote:
Originally Posted by D3luxe. View Post
Can you get a delay in there?
Like, send key_down, wait, send key_up.

Afaik Lol accepts key presses for spells only if they are presses ~ 20? 30? milliseconds. Try doing this with a 50ms delay and it should work.
I tried with 1s delay :/

Quote:
Originally Posted by Mithrandir. View Post
Read/Write ProcessMemory into DirectX Games
maybe this helps u finding something o.o
Hmmm, i'll check this out