The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: madMASM on January 29, 2006, 09:50:38 PM

Title: global hook procedure throws run-time error message
Post by: madMASM on January 29, 2006, 09:50:38 PM
my current project, which involves mapping out a MUD (Multi User Domain), uses a global keyboard hook to obtain the directions. it does this by storing the character(s) pressed before the carriage return was used.  However, when i first started my program up, it threw a run-time error --similar to the ones you can send to a manufacturer when something is wrong with their program-- and i don't know what to do about it.

I know the program used InstallHook (same dunction Icezelon used to install his mouse hook in his tutorial on hooks), but once my program uses it, it sends the error.

i believe the error occurse somewhere within WM_CHAR(++++) or WM_KEYHOOK(----), which is where i use the keyhook dll (below)

[code removed by admin]
Title: Re: global hook procedure throws run-time error message
Post by: hutch-- on January 29, 2006, 11:16:02 PM
I think we have made it clear enough times that the forum will not allow topics of this type.
Title: Re: global hook procedure throws run-time error message
Post by: sluggy on January 29, 2006, 11:23:09 PM
Quote from: madMASM on January 29, 2006, 09:50:38 PM
my current project, which involves mapping out a MUD (Multi User Domain),
There are API functions to enumerate a domain.

Quote from: madMASM on January 29, 2006, 09:50:38 PM
uses a global keyboard hook to obtain the directions.
This bit makes no sense at all. You do not need a global keyboard hook to instruct an app what to do.

Quote from: madMASM on January 29, 2006, 09:50:38 PMit does this by storing the character(s) pressed before the carriage return was used. 
Right - so you are trying to capture logons and passwords. Nice try - if you want help you will have to come up with something better than that garbage.