Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > League of Legends
You last visited: Today at 02:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# Generate Keypress

Discussion on C# Generate Keypress within the League of Legends forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2013
Posts: 72
Received Thanks: 1
C# Generate Keypress

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.
tinky1337 is offline  
Old 08/08/2014, 00:08   #2
 
elite*gold: 0
Join Date: Apr 2014
Posts: 166
Received Thanks: 13
Yes its possible and easy if you got Macro using keyboard and mouse
AZB TPT OhReaL is offline  
Old 08/08/2014, 00:19   #3
 
elite*gold: 0
Join Date: Jan 2013
Posts: 72
Received Thanks: 1
Ye but I want to generate it in C#

I can easily move/click the mouse, but the keyboard
tinky1337 is offline  
Old 08/08/2014, 18:05   #4
 
D3luxe.'s Avatar
 
elite*gold: 317
The Black Market: 142/0/0
Join Date: Feb 2012
Posts: 2,089
Received Thanks: 882
D3luxe. is offline  
Old 08/08/2014, 18:35   #5
 
elite*gold: 0
Join Date: Jan 2013
Posts: 72
Received Thanks: 1
Quote:
Originally Posted by D3luxe. View Post
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.
tinky1337 is offline  
Old 08/08/2014, 18:42   #6
 
D3luxe.'s Avatar
 
elite*gold: 317
The Black Market: 142/0/0
Join Date: Feb 2012
Posts: 2,089
Received Thanks: 882
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.
D3luxe. is offline  
Old 08/08/2014, 18:47   #7
 
Mithrandir.'s Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 1,867
Received Thanks: 401
Read/Write ProcessMemory into DirectX Games
maybe this helps u finding something o.o
Mithrandir. is offline  
Old 08/08/2014, 20:19   #8
 
elite*gold: 0
Join Date: Jan 2013
Posts: 72
Received Thanks: 1
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
tinky1337 is offline  
Reply


Similar Threads Similar Threads
[VB.NET] Detecting keypress
06/24/2011 - .NET Languages - 1 Replies
Hello coders. I need some help. I'm trying do develop a program that will change ammo on the game. And i want the script to start when the player press ctrl, and stop when the player press shift. In both cases, my program will be out of focus, and bc of that it won't register the keydown. I need a code that register the keydown even when the program is minimized. Thanks.
WoW Bots Keypress?
01/18/2011 - WoW Bots - 4 Replies
Hallo, weiß jemand wie es zurzeit bei den Bots mit Spells aktivieren aussieht? Ich finde diese Frage ist für jede Person wichtig, die ein custom key layout fürs Spielen nutzt und dieses trotz botten behalten will. Bei Honorbuddy weiß ich, dass der Bot die Spells mittels Injection oder Memorywrite (eins von beiden muss es doch sein?!) aktiviert, dieser käme also für mich in Frage. PvPtool nutzt für die Attacken ausschließlich Keys und ich bin nicht bereit meie WoW Key Config immer...
HelperMax (Best Keypress ever)
08/12/2010 - SRO PServer Guides & Releases - 33 Replies
Yo, I found on Silkroadmax(the best turkish community) a keypresser and would like to share it with you guys. Its not like lolkops keypress. This Keypress stop the keypress if you gonna reply someone in chat ! Thats one of the features. Features: Keypress; Function stops if you write to someone. Pickup Autologin Rename Client
[Sjsro]Bot NO KeyPress
06/22/2010 - SRO Private Server - 4 Replies
hi all please Bot (DB-BOT) Working on sjsro New or any bot plz
Keypress and joy2key
02/25/2009 - General Coding - 0 Replies
hey coders :) i'm sure some of know the program joy2key... it emulates keypresses from joystick events... and this program works for alot of onlinegames... in my case cabal online i'd like to know how it does :) or other ways to emulate keypresses in those games c++ functions like sendevent() or keybdevent() are blocked by gameguard :/ btw.. has anyone the sourcecode of joy2key ??!



All times are GMT +1. The time now is 02:38.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.