 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Sat Jun 14, 2008 7:57 pm Post subject: |
|
|
Nvm, thanks soo muchhh
_________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
Cx Master Cheater
Reputation: 0
Joined: 27 Jul 2007 Posts: 367
|
Posted: Sat Jun 14, 2008 8:15 pm Post subject: |
|
|
GMZorita, what's the point of the & 1?
Nevermind, people in IRC explained it to me (HalfPrime).
But still pointless.
_________________
armed with this small butterfly net
i will face the world alone
& never be lonely.
Last edited by Cx on Sat Jun 14, 2008 8:44 pm; edited 2 times in total |
|
| Back to top |
|
 |
ElectroFusion Grandmaster Cheater
Reputation: 0
Joined: 17 Dec 2006 Posts: 786
|
Posted: Sat Jun 14, 2008 8:38 pm Post subject: |
|
|
Forgot to ask, how do I kill it?
_________________
| qwerty147 wrote: |
| ghostonline wrote: |
what world are you in?
|
bera
but i live in NZ
|
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Jun 14, 2008 9:01 pm Post subject: |
|
|
Kill what? You mean keep it from keep sending PostMessage? Just loop the call to PostMessage based on the condintion on a varaible. I.e:
| Code: |
while(bPMA) {
//call PostMessage blablabla
}
|
That way it will only call PostMessage is bPMA (boolean variable) is set to true.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Jun 15, 2008 7:55 am Post subject: |
|
|
I don't understand what everyone does this for
| Code: | void SendKey(UINT vk_key) {
skey = MapVirtualKey(vk_key, 0);
lparam = (skey << 16) + 1;
PostMessageX(sHandle, WM_KEYUP, vk_key, lparam);
} |
It is so redundant.
Your declaring 2 new variables and assigning them seperate values when you can just do it within the function.
| Code: | void SendKey(UINT uKey)
{
PostMessageX( sHandle, WM_KEYDOWN, uKey, (MapVirtualKey( uKey, 0 ) << 16) );
} |
or even use this definition that I created to simplify things.
Hell, this function is so small there is no point to it being a function.
| Code: | #define MAKELKEY(vk) MapVirtualKey( (UINT)(vk), 0 ) << 16
#define SendKey(uKey) PostMessageX( sHandle, WM_KEYDOWN, (UINT)(uKey), MAKELKEY(uKey) ); |
or
| Code: | | #define SendKey(uKey) PostMessageX( sHandle, WM_KEYDOWN, (UINT)(uKey), ( MapVirtualKey( (UINT)(uKey), 0 ) << 16 ) ); |
but I'd rather use my MAKELKEY definition as it makes everything a whole lot easier to read.
Now look at your code and mine, see the difference, no wasted variables, its much smaller and more efficiant.
_________________
|
|
| 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
|
|