![]() |
|
|
|
#1
|
|||
|
|||
|
yes this is what everyone does mainly in trainers. i wanted something different which can be done within the exe.
redbull,thanks for your api help but badly those api are'nt in the imports and then how do we capture the key? |
|
#2
|
|||
|
|||
|
Both RegisterHotKey and UnRegisterHotKey are found in "user32.dll"
You need to hope that the app you are hooking into (for evil purposes) has LoadLibrary and GetProcAddress... Otherwise you have to hard-code the calls into your program or have a range of calls hard coded for each operating system and service pack... You can find out which function these are in User32.dll and walk through user32.dll 's PE header export section and get the address of the function that way. Other than that you are going to have to do things the hard way. There are a number of papers on this writtern by the virus writers or rootkit authors .... |
|
#3
|
|||
|
|||
|
if the software itself has some hotkeys, I think it's easy to do.
use exescope to open the software, u may find : accelarate... or sth like this , can we change here to build our own hotkeys? |
|
#4
|
|||
|
|||
|
Look at SetWindowsHook(ex). You can write a dll which will be loaded into all gui processes, intercept the keypress, and do whatever you need to in the context of the process that received the keypress. The hotkey message would leave you in the context of your own process.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|