C# hotkey

Posts 114 of 14 · Page 1 of 1
C# hotkey
ok so i need to know how to copy text. (in Combat Arms) that i type and past it in a textbox.

PLEASE HELP ME
you will get credit
Quote Originally Posted by speedforyou View Post
ok so i need to know how to copy text. (in Combat Arms) that i type and past it in a textbox.

PLEASE HELP ME
you will get credit
So, you want to make a key logger ?
God bless you...

Why don't you try to use memory reading to find that?
I am almost sure that the game have some sort of memory dump for the chat.
No I want the hotkey code for. Copy and paste what I type in chat to a textbox. Like a ingame cbl checker. I would never put keylogger in a program
Quote Originally Posted by speedforyou View Post
No I want the hotkey code for. Copy and paste what I type in chat to a textbox. Like a ingame cbl checker. I would never put keylogger in a program
Namesmape: system.Runtime.InteropServices;
Code:
[DLLImport("User32.DLL")]
public static int GetAsyncKeyState(int Vkey);
in the checking section:
Code:
for (int i = 0; i < 255; i++)
{
    if (GetAsyncKeyState(i) < 0)   //Log Key, ASCII code is = i
}
if you want to press a key:

Method 1:
Code:
SendKeys.Send(i);   // i can be ASCII code, or Keys.(AnyKey) like Keys.F1
method 2:
Code:
[DLLImport("User32.DLL")]
public static void Keybd_event(...)
I forgotten the parameters, search in google...



GetAsyncKeyState can send back theese values:
-32756 +- 1000 use (... < 0) = The key is currently pressed
0 = The key is currently NOT pressed
1 = The key was pressed after the previous checking
Quote Originally Posted by rabir007 View Post


Namesmape: system.Runtime.InteropServices;
Code:
[DLLImport("User32.DLL")]
public static int GetAsyncKeyState(int Vkey);
in the checking section:
Code:
for (int i = 0; i < 255; i++)
{
    if (GetAsyncKeyState(i) < 0)   //Log Key, ASCII code is = i
}
if you want to press a key:

Method 1:
Code:
SendKeys.Send(i);   // i can be ASCII code, or Keys.(AnyKey) like Keys.F1
method 2:
Code:
[DLLImport("User32.DLL")]
public static void Keybd_event(...)
I forgotten the parameters, search in google...



GetAsyncKeyState can send back theese values:
-32756 +- 1000 use (... < 0) = The key is currently pressed
0 = The key is currently NOT pressed
1 = The key was pressed after the previous checking
thanks bro. /solved


/req close
Quote Originally Posted by speedforyou View Post


thanks bro. /solved


/req close
No Prob...
Have you tried reading the memory address and outputting it to the textbox.
Quote Originally Posted by Pingo View Post
Have you tried reading the memory address and outputting it to the textbox.
sorry, i am currentaly learning C# and VB.net so no how would i do that?
You would benefit from learning how to read/write memory.
Have a look around this forum for a memory class to get you started.

Doesn't CA have memory protection? You might end up banning yourself.
Search this site or google for something related to CA chat thats external. I dont want you getting yourself banned for something iv told you to do.
Quote Originally Posted by Pingo View Post
You would benefit from learning how to read/write memory.
Have a look around this forum for a memory class to get you started.

Doesn't CA have memory protection? You might end up banning yourself.
Search this site or google for something related to CA chat thats external. I dont want you getting yourself banned for something iv told you to do.


so i open chat in combat arms(enter) and i type the player i want to check.

see but all i need is a hotkey(f6 or f7)
to copy the text(username)
in the backround paste into textbox. how would i do this?
Player names are stored in a specific class for Combat Arms.

You would have to reverse it and then read the data from there.
very quick one, put this into your winform. say you want it F1 key to be triggled.

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.F1)
{
// put in your code
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
Quote Originally Posted by lannyboy View Post
very quick one, put this into your winform. say you want it F1 key to be triggled.

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.F1)
{
// put in your code
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
This only work, if you focused on the program, but he need texts from combat arms, so he wont being focused on his program....
Posts 114 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?