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 virtual keys via asm?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
13
I post too much
Reputation: 0

Joined: 24 Apr 2007
Posts: 4603

PostPosted: Tue Jul 28, 2009 10:09 pm    Post subject: Sending virtual keys via asm? Reply with quote

Is it possible to send virtual keys within an auto-assembly script?
Back to top
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Wed Jul 29, 2009 1:19 am    Post subject: Reply with quote

Yes.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Jul 29, 2009 1:45 am    Post subject: Reply with quote

auto assembler can do anything that regular assembler can. and regular assembler can do anything that can be done in any other language running on the x86 platform

shorter answer ^
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Wed Jul 29, 2009 2:16 am    Post subject: Reply with quote

If you mean api calling to send keys, yes

But if you mean sending keys to the keyboard output buffer,using ports 0x60/0x64, then only if you place your code as a hook in the kernel (Or change the iopl of the current process from 3 to 0)

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
karmah
Newbie cheater
Reputation: 0

Joined: 28 Jul 2009
Posts: 19
Location: Edinburgh UK

PostPosted: Wed Jul 29, 2009 6:53 am    Post subject: Reply with quote

If you're a delphi user for example,

you could check out the sendkeys.pas file, (which can be downloaded if it didn't come with your distribution, or say the keyboard_event
function.

compile yourself an example, and pop an int3 breakpoint into the code just before your sendkeys call, and you'll have infront of you the code you need when the debugger breaks.

i.e. in delphi

sendstring := 'WASD';
asm
int3
end;
sendkeys(sendstring, true);


Sorry if that's patronising, but someone might find it usefull

_________________
//todo : sig :\
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
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