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 


Simulate keypress via AA

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Mon Apr 24, 2017 8:35 am    Post subject: Simulate keypress via AA Reply with quote

Is it possible to simulate a key being pressed ingame just with an AA script?

I found only threads the other way around (checking a keypress) or using the LUA doKeyPress similar to sendmessage which both do not work in most modern DirectX games.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Apr 24, 2017 6:04 pm    Post subject: Reply with quote

It's possible. You may have to call the sub-routine that handles that, though. You can back-trace after finding the instruction that 'checks for pressed', or, use ultimap.

You may also be able to simply call some windows functions...I've not tried that for key simulation, though.
Back to top
View user's profile Send private message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Mon Apr 24, 2017 6:13 pm    Post subject: Reply with quote

Ultimap doesn't work for me (I'm using intel processor but it has 6 cores and although dbvm claims to be available it causes a freeze/bluescreen).

I was looking for a (windows) API solution I've going to call like GetAsyncKeyState but I think DirectX don't use any Windows API to check if a key is being pressed at all.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Apr 24, 2017 6:20 pm    Post subject: Reply with quote

You've tried both versions of ultimap, presumably?

If the target is 32bit, you can try CDA - Code Dynamic Analysis, as a possible alternative to ultimap.

But, yes, a simple windows call should work...I've just never tried it. Maybe someone with experience with that can chime in.
Back to top
View user's profile Send private message
Hatschi
Master Cheater
Reputation: 2

Joined: 28 Jan 2010
Posts: 327

PostPosted: Tue Apr 25, 2017 4:29 am    Post subject: Reply with quote

Yes, it only works without dbvm on Intel 5/6 or newer generation as far as I know and these processors are only supported by Windows 10 so they are very new.

I'll take a look at the CDA tool, thank you.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Tue Apr 25, 2017 5:27 am    Post subject: Reply with quote

those cpu's also work on win7, don't let microsoft bully you into thinking they don't
it's even better to use it in an older version so the chance the OS interferes with it is smaller(what the OS doesn't know about it can't fuck up)

but yeah, you do need the intel 5/6 gen cpu

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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