quick and dirty way to send keys using MSDN Virtual Keycodes
i'm not gonna post the entire TASM32 .code setups, just how it works
VK_WIN equ 5Bh ; THIS IS THE WINDOWS KEY
VK_M equ 4Dh ;THIS IS THE M KEY
push 0
push 0
push 0
push VK_WIN ;WINDOWS keypress
call keybd_event ;call OBSOLETE API
push 0
push 0
push 0
push VK_M ;M KEYPRESS
call keybd_event ;call OBSOLETE API
if placed into your asm code will MINIMIZE ALL WINDOWS that can be minimized
check out the keybd_event Function thru the MSDN for further info
sendinput wouldnt work with tasm32 via a simple call SendInput, so you'll have to load user32.dll then the sendinput function thru another means... keybd_event is quicker
5 replies to this topic
#1
Posted 09 July 2010 - 10:50 PM
"Your Life Is Your Crime, It's Punishment Time"
|
|
|
#2
Posted 10 July 2010 - 11:35 AM
Interesting... Would that be push dword 0 or push word 0 ?
By the way, for future reference, we have a "Classes and Code Snippets" forum for things like this.
By the way, for future reference, we have a "Classes and Code Snippets" forum for things like this.
sudo rm -rf /
#3
Posted 10 July 2010 - 12:30 PM
dargueta said:
Interesting... Would that be push dword 0 or push word 0 ?
By the way, for future reference, we have a "Classes and Code Snippets" forum for things like this.
By the way, for future reference, we have a "Classes and Code Snippets" forum for things like this.
has to be dword...
yu can test this out by changing the push 0 to
push dword 0 across the board then try it with push word 0 you'll notice in this example if its just plain dword 0 it still minimizes, but if its push word 0 it wont minimize
and thnx for the code snippets link... my bad...
"Your Life Is Your Crime, It's Punishment Time"
#4
Posted 10 July 2010 - 12:35 PM
No problem, I did this too when I was starting out. :) I'm going to see if I can move this.
sudo rm -rf /
#5
Posted 19 July 2010 - 01:39 AM
great respon
#6
Guest_blairgo_*
Posted 21 July 2010 - 12:30 AM
Guest_blairgo_*
So interesting, i like it
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









