Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[LOOK] C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Nov 23, 2007 12:50 pm    Post subject: [LOOK] C++ Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Robotex
Master Cheater
Reputation: 0

Joined: 05 Sep 2006
Posts: 378
Location: The pizza country!

PostPosted: Fri Nov 23, 2007 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Nov 23, 2007 12:57 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Robotex
Master Cheater
Reputation: 0

Joined: 05 Sep 2006
Posts: 378
Location: The pizza country!

PostPosted: Fri Nov 23, 2007 1:01 pm    Post subject: Reply with quote

remember to initialize the booleans Wink
_________________

ASM/C++ Coder
Project Speranza lead developer
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Nov 23, 2007 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Robotex
Master Cheater
Reputation: 0

Joined: 05 Sep 2006
Posts: 378
Location: The pizza country!

PostPosted: Fri Nov 23, 2007 1:31 pm    Post subject: Reply with quote

Code:

bool autoloot = false;
bool autojump = false;
for(;;Sleep(50))
{
        if(GetAsyncKeyState(VK_F1))
        {
            autoloot = !autoloot;
        }
        if(GetAsyncKeyState(VK_F3))
       {
            autojump = !autojump;
        }
        if(autoloot)
       {
                PMX(Wnd, WM_KEYDOWN, 0, ((MapVirtualKey(0x5A,0) << 16) & 0x00FF0000));
       }
        if(autojump)
       {
                PMX(Wnd, WM_KEYDOWN, 0, ((MapVirtualKey(0xA4,0) << 16) & 0x00FF0000));
       }
}

Wink

_________________

ASM/C++ Coder
Project Speranza lead developer
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Nov 23, 2007 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Robotex
Master Cheater
Reputation: 0

Joined: 05 Sep 2006
Posts: 378
Location: The pizza country!

PostPosted: Fri Nov 23, 2007 1:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Fri Nov 23, 2007 2:03 pm    Post subject: Reply with quote

Try making a call to user32.dll, and using something there ( forget what it's called, try Google'ing it)
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Nov 23, 2007 2:05 pm    Post subject: Reply with quote

And also, how exactly does auto pot work? I want to try to implement auto pot in also Wink
Back to top
View user's profile Send private message AIM Address MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Fri Nov 23, 2007 2:07 pm    Post subject: Reply with quote

Good auto pots? They read memory.
Crappy auto pots? They read pixels.

_________________
Back to top
View user's profile Send private message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Nov 23, 2007 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Nov 23, 2007 8:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites