| View previous topic :: View next topic |
| Author |
Message |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Nov 23, 2007 12:50 pm Post subject: [LOOK] C++ |
|
|
EDIT
All i need help on is auto pot.
Last edited by slippppppppp on Fri Nov 23, 2007 2:28 pm; edited 4 times in total |
|
| Back to top |
|
 |
Robotex Master Cheater
Reputation: 0
Joined: 05 Sep 2006 Posts: 378 Location: The pizza country!
|
Posted: Fri Nov 23, 2007 12:55 pm Post subject: |
|
|
make two booleans and then in the loop if the booleans are true then do whatever you have to do
ex:
bool first = false;
bool second = false;
for(;;Sleep(50))
{
if(GetAsyncKeyState(VK_F1))
first = !first;
if(GetAsyncKeyState(VK_F2))
second = !second;
if(first)
{
<code here>
}
if(second)
{
<code here>
}
}
_________________
ASM/C++ Coder
Project Speranza lead developer |
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Nov 23, 2007 12:57 pm Post subject: |
|
|
| Robotex, that wont work, as that was a earlier method i used, and it ended up as the bot enableing, but unable to disable.
|
|
| Back to top |
|
 |
Robotex Master Cheater
Reputation: 0
Joined: 05 Sep 2006 Posts: 378 Location: The pizza country!
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Nov 23, 2007 1:05 pm Post subject: |
|
|
Ok, Robotex, it didnt work, ex:
| Code: | for(;;) {
if(GetAsyncKeyState(VK_F1)) {
for(;;) {
if(GetAsyncKeyState(VK_F2))
break;
Sleep(10);
autoloot = !autoloot;
if(autoloot){
PMX(Wnd, WM_KEYDOWN, 0, ((MapVirtualKey(0x5A,0) << 16) & 0x00FF0000));
}
}
}
if(GetAsyncKeyState(VK_F3)) {
for(;;) {
if(GetAsyncKeyState(VK_F4))
break;
Sleep(10);
autojump = !autojump;
if(autojump){
PMX(Wnd, WM_KEYDOWN, 0, ((MapVirtualKey(0xA4,0) << 16) & 0x00FF0000));
}
}
|
}
|
|
| Back to top |
|
 |
Robotex Master Cheater
Reputation: 0
Joined: 05 Sep 2006 Posts: 378 Location: The pizza country!
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Nov 23, 2007 1:56 pm Post subject: |
|
|
Ok, Robotex, now can u help me, how do i send mouse left click with postmessage,
PMX(Wnd, WM_KEYDOWN, ((MapVirtualKey(0x1,0) << 16) & 0x00FF0000),0);
Doesnt work
|
|
| Back to top |
|
 |
Robotex Master Cheater
Reputation: 0
Joined: 05 Sep 2006 Posts: 378 Location: The pizza country!
|
Posted: Fri Nov 23, 2007 1:58 pm Post subject: |
|
|
i don't know what PMX is, btw i used a code snippet found somewhere in this section, wich i think still works
_________________
ASM/C++ Coder
Project Speranza lead developer |
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Fri Nov 23, 2007 2:03 pm Post subject: |
|
|
| Try making a call to user32.dll, and using something there ( forget what it's called, try Google'ing it)
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Nov 23, 2007 2:05 pm Post subject: |
|
|
And also, how exactly does auto pot work? I want to try to implement auto pot in also
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Fri Nov 23, 2007 2:07 pm Post subject: |
|
|
Good auto pots? They read memory.
Crappy auto pots? They read pixels.
_________________
|
|
| Back to top |
|
 |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Nov 23, 2007 2:12 pm Post subject: |
|
|
| Appalsap, im pretty sure that i want to use memory, but i also think i need the address of the Hp, mp value, which i dont have. So im going to base it off of pixel detection, unless someone wants to help me with the memory part of Auto Pot.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Nov 23, 2007 8:19 pm Post subject: |
|
|
| Robotex wrote: | | i don't know what PMX is, btw i used a code snippet found somewhere in this section, wich i think still works |
From the notes by what others said about how Maple works, I'd assume PMX is short for PostMessage. (A wrapper for PostMessage to handle specifically key input.)
_________________
- Retired. |
|
| Back to top |
|
 |
|