| View previous topic :: View next topic |
| Author |
Message |
AznNoodles Expert Cheater
Reputation: 0
Joined: 29 Dec 2008 Posts: 192
|
Posted: Tue Mar 17, 2009 6:04 pm Post subject: [request]{visual c++}using .dll |
|
|
how can i make a dll that sends a key delays a bit and them sends another and so on after pressing a button to the injected program
if press 0
sendkey a
sleep 200
sendkey b
or something like that
_________________
|
|
| Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Tue Mar 17, 2009 6:32 pm Post subject: Re: [request]{visual c++}using .dll |
|
|
| AznNoodles wrote: | how can i make a dll that sends a key delays a bit and them sends another and so on after pressing a button to the injected program
if press 0
sendkey a
sleep 200
sendkey b
or something like that |
Sleep(200);
_________________
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Tue Mar 17, 2009 6:50 pm Post subject: Re: [request]{visual c++}using .dll |
|
|
| AlbanainRetard wrote: | | AznNoodles wrote: | how can i make a dll that sends a key delays a bit and them sends another and so on after pressing a button to the injected program
if press 0
sendkey a
sleep 200
sendkey b
or something like that |
Sleep(200); |
I'm pretty sure that doesn't answer his question, at all...
OP: There are tons of examples of PostMessage. Look at that API to send keys. There are also examples of a PostMessage bypass if you need it.
_________________
Blog
| Quote: | Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that |
|
|
| Back to top |
|
 |
AznNoodles Expert Cheater
Reputation: 0
Joined: 29 Dec 2008 Posts: 192
|
Posted: Tue Mar 17, 2009 10:29 pm Post subject: Re: [request]{visual c++}using .dll |
|
|
| Overload wrote: |
OP: There are tons of examples of PostMessage. Look at that API to send keys. There are also examples of a PostMessage bypass if you need it. |
any samples?
_________________
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Tue Mar 17, 2009 10:41 pm Post subject: Re: [request]{visual c++}using .dll |
|
|
| AznNoodles wrote: | | Overload wrote: |
OP: There are tons of examples of PostMessage. Look at that API to send keys. There are also examples of a PostMessage bypass if you need it. |
any samples? |
Ya, right here: http://forum.cheatengine.org/search.php
_________________
Blog
| Quote: | Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that |
|
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Wed Mar 18, 2009 7:45 am Post subject: |
|
|
| Code: | int main()
{
HWND mshWnd = FindWindow( "MapleStoryClass", 0);
for(;;Sleep(25)) {
if ( GetAsyncKeyState( 0x30 ) ) {
PostMessage_Trampoline( mshWnd, WM_KEYDOWN, 0x41, MapVirtualKey( 0x41, 0 ) << 16 );
Sleep(200);
PostMessage_Trampoline( mshWnd, WM_KEYDOWN, 0x42, MapVirtualKey( 0x42, 0 ) << 16 );
} return 0;
} |
assuming that your trying to send it to MapleStory....
but yeah i've never made a .dll it looks simple though,
and i pretty much built your main function, although i dont think its called main in a dll, look it up. AlbanianRetard made a simple tut on how to make a .dll
just recently also...
_________________
|
|
| Back to top |
|
 |
mStorm Expert Cheater
Reputation: 0
Joined: 21 Feb 2009 Posts: 107
|
Posted: Wed Mar 18, 2009 8:13 am Post subject: |
|
|
MS VC++ has a template dll setup that is really easy to work with. (and I think Dev-Cpp has this as well)
When creating a project, tell MS VC++ you just start a new project, and change the type to dll.
There are tons of tutorial sites on how to figure out the last little pieces... ( like using WINAPI or _stdcall, etc. for function calls, and your export library)
As far as the "sendkeys": You can use the WinAPI GetAsyncKeyState() for a quick simple solution for reading if a key is pressed, and actually sending keys varies game to game. If it is a game that uses DirectInput, then you are going to have to use the SendInput function with the DI hex modifier for the game to read it. If the game takes the PostMessage (windows api function), then that is ideal.
|
|
| Back to top |
|
 |
|