| View previous topic :: View next topic |
| Author |
Message |
13 I post too much
Reputation: 0
Joined: 24 Apr 2007 Posts: 4603
|
Posted: Tue Jul 28, 2009 10:09 pm Post subject: Sending virtual keys via asm? |
|
|
| Is it possible to send virtual keys within an auto-assembly script?
|
|
| Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Wed Jul 29, 2009 1:19 am Post subject: |
|
|
| Yes.
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Jul 29, 2009 1:45 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 26002 Location: The netherlands
|
Posted: Wed Jul 29, 2009 2:16 am Post subject: |
|
|
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 |
|
 |
karmah Newbie cheater
Reputation: 0
Joined: 28 Jul 2009 Posts: 19 Location: Edinburgh UK
|
Posted: Wed Jul 29, 2009 6:53 am Post subject: |
|
|
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 |
|
 |
|