 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Eyalos Master Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 343
|
Posted: Sat Dec 29, 2007 3:08 pm Post subject: WM_ Keystorkes in C#? |
|
|
Well, im still in a conflict about how to solve it o-o
Umm, As Symbol told me i tried to use the WinUser converted to C#,
I defined it as
WinUser.Win32 joosuck = new WinUser.Win32();
While its a public class Win32
and the namespace is WinUser.
the WM_KEYDOWN is defined as 0x0100 but its still 'undefined' when i click build. Its like um, still not understanding how to use that keystroke (while using PostMsg).
Thanks in advance ;D
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sun Dec 30, 2007 12:56 pm Post subject: |
|
|
Why not just create an enum and define all the keystrokes in there?
You could do something like this:
| Code: |
[DllImport("thedll"), SetLastError = true]
private static extern void send_keys_or_whatever(int keycode);
private enum WM_Keystrokes
{
a = 0x04, //I don't know this stuff, I'm just putting in random numbers
b = 0x05
}
private void SendSomething()
{
WM_Keystrokes ks = WM_Keystrokes.a;
int ToSend = (int)ks;
send_keys_or_whatever(ToSend);
}
|
You'll obviously have to look up the method, dll, and key values, but I get the point accross, don't I?
_________________
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|