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 


Sending movement keys
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sat Jun 21, 2008 12:01 am    Post subject: Sending movement keys Reply with quote

just want to confirm wether maplestory uses directinput on directional keys(right,left,up and down) for movement?

is that the reason why its blocked even with mypostmessageA?

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Sat Jun 21, 2008 1:48 am    Post subject: Reply with quote

I don't play MapleStory, but I'm sure I recalled someone saying that it does hook DirectInput.

I believe MapleStory is DirectX though, not GDI or OGL.. So I would be surprised if it used anything other than DirectInput.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jun 21, 2008 1:55 am    Post subject: Reply with quote

Heh, I'd sure hope it wasn't using GDI
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Jun 21, 2008 10:40 am    Post subject: Reply with quote

slovach wrote:
Heh, I'd sure hope it wasn't using GDI


If it was using pure GDI, I'd be pretty amazed lol.

As for sending movement via PostMessage, pretty sure people have done it throughout this section. Various bots have been made, I dunno if they involve automatic moving as I don't play Maple, but pretty positive it's done already.

If not, you could go about hooking the DirectInput interface for the keyboard and creating a bypass to allow you to send keys via something such as an MMF, a pipe, etc.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sat Jun 21, 2008 11:36 pm    Post subject: Reply with quote

Wiccaan wrote:
slovach wrote:
Heh, I'd sure hope it wasn't using GDI


If it was using pure GDI, I'd be pretty amazed lol.

As for sending movement via PostMessage, pretty sure people have done it throughout this section. Various bots have been made, I dunno if they involve automatic moving as I don't play Maple, but pretty positive it's done already.

If not, you could go about hooking the DirectInput interface for the keyboard and creating a bypass to allow you to send keys via something such as an MMF, a pipe, etc.


sending normal keys like A-Z, F1-F12,ctrl,alt via mypostmessage is working perfectly.
but for ingame movement (up,down,right left) sending VK has no effect (but working fine in the textbox). so i was wondering if sending keys by hooking on directInput can bypass that problem.

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Sun Jun 22, 2008 2:45 am    Post subject: Reply with quote

Bizarro wrote:
Wiccaan wrote:
slovach wrote:
Heh, I'd sure hope it wasn't using GDI


If it was using pure GDI, I'd be pretty amazed lol.

As for sending movement via PostMessage, pretty sure people have done it throughout this section. Various bots have been made, I dunno if they involve automatic moving as I don't play Maple, but pretty positive it's done already.

If not, you could go about hooking the DirectInput interface for the keyboard and creating a bypass to allow you to send keys via something such as an MMF, a pipe, etc.


sending normal keys like A-Z, F1-F12,ctrl,alt via mypostmessage is working perfectly.
but for ingame movement (up,down,right left) sending VK has no effect (but working fine in the textbox). so i was wondering if sending keys by hooking on directInput can bypass that problem.


Shl 16/<< 16 would solve that problem, what are you programming it in?
Back to top
View user's profile Send private message
--Pillboi--
Grandmaster Cheater Supreme
Reputation: 0

Joined: 06 Mar 2007
Posts: 1383
Location: I don't understand the question. Is this a 1 to 10 thing?

PostPosted: Sun Jun 22, 2008 5:18 am    Post subject: Reply with quote

Their has always been a specific problem of sending directional keys to MS. I believe that it has never been done before.
_________________

Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jun 22, 2008 9:31 am    Post subject: Reply with quote

Anden100 wrote:
Bizarro wrote:
Wiccaan wrote:
slovach wrote:
Heh, I'd sure hope it wasn't using GDI


If it was using pure GDI, I'd be pretty amazed lol.

As for sending movement via PostMessage, pretty sure people have done it throughout this section. Various bots have been made, I dunno if they involve automatic moving as I don't play Maple, but pretty positive it's done already.

If not, you could go about hooking the DirectInput interface for the keyboard and creating a bypass to allow you to send keys via something such as an MMF, a pipe, etc.


sending normal keys like A-Z, F1-F12,ctrl,alt via mypostmessage is working perfectly.
but for ingame movement (up,down,right left) sending VK has no effect (but working fine in the textbox). so i was wondering if sending keys by hooking on directInput can bypass that problem.


Shl 16/<< 16 would solve that problem, what are you programming it in?


Shl 16 solves the problem with all the other keys he mentioned above.
Ingame Movement is not affected by shl 16, nor any attempt to send Directional keys (VK_LEFT, VK_UP, VK_DOWN, VK_RIGHT)

I don't know much about DirectInput, so if it is using it, hooking keyboard events would work... maybe?

here's a link to some DirectInput tutorials with Keyboards just to understand some more (After I get home from hanging with friends i might start looking more into this too)
http://msdn.microsoft.com/en-us/library/bb206279.aspx

_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Jun 22, 2008 12:32 pm    Post subject: Reply with quote

Not saying this will work for Maple as I assume this is the game you are talking about, but, for hooking DirectInput, you need to:

Either wrap the full DirectInput class inside the game or specifically hook the DirectInput's CreateDevice function inside the process. When you have that hooked, one of the params for DirectInputs CreateDevice passes GUID of the given device being created. You use use the following to determine if the GUID is the keyboard of the system:

Code:
if( guid == GUID_SysMouse )
{
}


From there, you can either wrap the full device with your own input device wrapper, or hook the specific class functions to handle the input/output of the keyboard.

Inside the main object class for the given input device, the two main functions that handle input and output are GetDeviceState and GetDeviceData. There are a few tutorials around the net that show how to work with DirectInput, you can also look at video game design tutorials to get an idea of how to handle keyboard input and such via DirectInput which can help with creating a hook / wrapper for this.

Good luck. Smile

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
--Pillboi--
Grandmaster Cheater Supreme
Reputation: 0

Joined: 06 Mar 2007
Posts: 1383
Location: I don't understand the question. Is this a 1 to 10 thing?

PostPosted: Sun Jun 22, 2008 1:49 pm    Post subject: Reply with quote

He's so knowledgeable. *blushes* Razz LOL!
_________________

Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair.
Back to top
View user's profile Send private message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sun Jun 22, 2008 3:44 pm    Post subject: Reply with quote

YES just tried bypassed SendInput. working fine xD.
_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jun 22, 2008 4:20 pm    Post subject: Reply with quote

Bizarro wrote:
YES just tried bypassed SendInput. working fine xD.


Movement is working fine? Or SendInput?

_________________
Back to top
View user's profile Send private message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sun Jun 22, 2008 4:25 pm    Post subject: Reply with quote

lurc wrote:
Bizarro wrote:
YES just tried bypassed SendInput. working fine xD.


Movement is working fine? Or SendInput?

both of course hehe:P

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jun 22, 2008 4:29 pm    Post subject: Reply with quote

Bizarro wrote:
lurc wrote:
Bizarro wrote:
YES just tried bypassed SendInput. working fine xD.


Movement is working fine? Or SendInput?

both of course hehe:P


Lol, so its Message's that are causing problems...
Sending direct input somehow works?
meh, so you built yourself a driver? didn't know u knew how to do that.. well because you never really showed that skill before... u surpise me Bizarro Wink good job.

_________________
Back to top
View user's profile Send private message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sun Jun 22, 2008 4:35 pm    Post subject: Reply with quote

nah im still quite new to c++.
i tried it with someone else's driver.

anyway, good thing it worked. saved me a lot work Very Happy
now time to focus on other functions ^^

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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