Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 06:16

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

Advertisement



[how To ] creat key presser by C#

Discussion on [how To ] creat key presser by C# within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
ahmed4ever2u's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 1,510
Received Thanks: 886
[how To ] creat key presser by C#

as the title said
i wanna know how to do small things like key presser

( no one | no one | no one | tell me any **** out side my topic if you wanna help me So do it if you don't just ignor the topic !! )

edit: can any one fast programing akey presser and share its source
ahmed4ever2u is offline  
Old 08/02/2011, 16:46   #2
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
SendKeys.Send?
Kraizy​ is offline  
Thanks
1 User
Old 08/02/2011, 16:51   #3
 
ahmed4ever2u's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 1,510
Received Thanks: 886
can you explain more?
i'm just tring to learn something
little words won't be enough
ahmed4ever2u is offline  
Old 08/02/2011, 17:30   #4
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
Actually it gives you enough info

that's the first hit on google. I've never really worked with C# only a few small programs and even I can see at this page what it does you'll need to give a string as parameter and it'll send to the focused window so if you got your browser selected it'll send that key to the browser if you got another window selected it'll send it to that window.

so with:
Code:
		SendKeys.Send("{ENTER}");
you'll send a enter.

you can't use it in the background to it has limitations.
kevin_owner is offline  
Thanks
1 User
Old 08/03/2011, 13:44   #5
 
elite*gold: 0
Join Date: Dec 2008
Posts: 316
Received Thanks: 44
A much better method
Quote:
[DllImport("user32.dll")]
static extern bool PostMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);

const uint WM_KEYDOWN = 0x0100;

public static void PostMsg()
{
Process[] processes = Process.GetProcessesByName(pName);
foreach (Process p in processes)
{
PostMessage(p.MainWindowHandle, WM_KEYDOWN, (int)Keys.Y, 0); //wParam is your key
}

For x64

[DllImport("user32.dll")]
public static extern IntPtr PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

That means

PostMessage(p.MainWindowHandle, (uint)WM_KEYDOWN, (int)Keys.Y, IntPtr.Zero);
XchangliiX is offline  
Reply


Similar Threads Similar Threads
KEY PRESSER
01/04/2010 - 12Sky2 - 5 Replies
Can someone please make keypresser prog work for 12sky2 its not a hacking tool but it can help alot for power lvls.... hope someone can help me.. tnx Key Presser - Reviews and free Key Presser downloads at Download.com
Key Presser!!!!!!
10/12/2009 - SRO Private Server - 7 Replies
Germany: Suche ein Key Presser für ECSRO das einloggen ist schwer...: Bin Sehr dank bar der mir hilft Englisch:Search for a Key Presser ECSRO the sign is hard... I'm very thanks to help me cash. sorry that my english is so bad
BOT presser
01/11/2009 - SRO Hacks, Bots, Cheats & Exploits - 215 Replies
Hey guys!! This is the only one that i can help... its a BOT but not a tbot or srobot... its only a key presser.. i think everyone knows about it... and those who dont know it... you can try it as a subtitute of tbot.. because as of now,, greyfox is in his family right now..(visit to projecthax) me too are waiting for an up coming tbot for all of us..^,..,^ so this is the one that i used... you can try it.. and its easy to use.. PLSSSS... DONT SAY ANYTHING... SCAN IT a THOUSAND...
Need help with bot presser.
02/24/2008 - Silkroad Online - 0 Replies
Hey, i would want to download that bot presser, but im not sure is it clean..? This is lady slashers bot pressers scan : Virustotal. MD5: a1225ed6811de1a5f4e8fb6421d8672e Application/PassRevealer What is that Application/PassRevealer ..? Some ppl talking that its keylogger or something.. So i just want to know is this clean or not? :P Shit sorry for douple topic, my comp was laging or something so it made this.. Sorry
Presser
02/07/2008 - Silkroad Online - 2 Replies
Is there a Auto presser?



All times are GMT +1. The time now is 06:16.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.