|
i want to halt keyboard and mouse.
i want all messages that a user pass with the help of kewboard and mouse.
These user messages should not be posted only return by a function(JournalRecorderFunc).
SetWindowsHookEx(WH_JOURNALRECORD, JournalRecorderFunc,
hins, 0);
but i also want post some message of kewboard and mouse.
that are not user kewboard and mouse messages.
but thease messages are saved into a file.
With the help of threading these messages are performed one bye one.but at the same time no other message of kewboard and mouse should performed (even ctrl+alt+del)
how to do that?
r00d0034@yahoo.com
|
|
|
|
|
Why would you want to ? It sounds like a virus to me.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian seems to think your writting a virus...so i'll assume the same, seeing how you've posted 6 or so questions all about the same thing really...system hooks and trapping key presses globally...
Naughty naughty if you are...
Anyways....AFAIR there is a really easy way to prevent CTRL-ALT-DEL key combinations....it has something to do with tricking the system into thinking the screen saver is active...SetSystemInfo() or something like that...this then disables CTRL-ALT-DEL keys....but it only works under win9X...I think...
Anyways...search google for System hooks, trapping keypresses, ctrl-alt-del, etc...theres lots of examples around...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
first of all let me tell u its not a virus its mine final project.
i want to install a software remote computer thats why i need that sort of work.
if u could tell any link then plz.
r00d0034@yahoo.com
|
|
|
|
|
You're writing your final project and you don't know how to use google ?
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
What's a tool I can use to see what windows messages are being sent around in my VC++ app? I've seen the name before, but when I finally need it, I can't for the life of me remember what it was.
|
|
|
|
|
Spy++, in the VC Tools menu.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I was looking all over the web for it, and all the time it was right there in my face.
|
|
|
|
|
And WinSpector which is here on CP and is a better Spy++
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
how to halt
ctr+alt+del
can any body tell some thing about that?
is there any online linke or example where that work has done? if yes then plz provide the link related to that?
r00d0034@yahoo.com
|
|
|
|
|
i recorded messages of keboard and mouse and after recording i was replaying the same events.i have no problem by posting mouse messages but i have problem with keboard messages.
i have both lparam and wparam but i have to store it first for that purpose i typecast it into int32 lparam and int32 wparam that is why E_to_Match->lparam is int32.
In if condition mouse messages work correctely where E_to_Match->message is also int32 but let me tell you how i get message in it
LPEVENTMSG lpEvent= (LPEVENTMSG)lParam;
E_to_Match->message=(int32)lpEvent->message;
in the same way i have stroed lparam and wparam.
plz see that code.
if(E_to_Match->message==WM_LBUTTONUP)
{
::SetCursorPos(fp.x,fp.y);
PostMessage(h,WM_LBUTTONDOWN,0,0);
PostMessage(h,WM_LBUTTONDOWN,0,0);
::Sleep(500);
PostMessage(h,E_to_Match->message,0,0);
/*
it works but question here is that why i have to call PostMessage(h,WM_LBUTTONDOWN,0,0); two times and
::Sleep(500); i dont know but with out this my code didnt work.cau u ans this question too.
*/
}else
{
::Sleep(2000);
PostMessage(h,E_to_Match->message,(WPARAM)E_to_Match->wParam,(LPARAM)E_to_Match->lparam);
}
else condition dont work when that postmessage line executed i dont know why but one thing i know that the following line display 777 into that editbox (of hwnd h).
thats mean mine hwnd is correct.
PostMessage(h,E_to_Match->message,103,(LPARAM)E_to_Match->lParam);
now plz tell i will be very thankful i am also trying my best effort too.
r00d0034@yahoo.com
|
|
|
|
|
i recorded messages of keboard and mouse and after recording i was replaying the same events.i have no problem by posting mouse messages but i have problem with keboard messages.
i have both lparam and wparam but i have to store it first for that purpose i typecast it into int32 lparam and int32 wparam that is why E_to_Match->lparam is int32.
In if condition mouse messages work correctely where E_to_Match->message is also int32 but let me tell you how i get message in it
LPEVENTMSG lpEvent= (LPEVENTMSG)lParam;
E_to_Match->message=(int32)lpEvent->message;
in the same way i have stroed lparam and wparam.
plz see that code.
if(E_to_Match->message==WM_LBUTTONUP) {::SetCursorPos(fp.x,fp.y);PostMessage(h,WM_LBUTTONDOWN,0,0);PostMessage(h,WM_LBUTTONDOWN,0,0);::Sleep(500);PostMessage(h,E_to_Match->message,0,0);
else condition dont work when that postmessage line executed i dont know why but one thing i know that the following line display 777 into that editbox (of hwnd h).
thats mean mine hwnd is correct.
PostMessage(h,E_to_Match->message,103,(LPARAM)E_to_Match->lParam);
now plz tell i will be very thankful.
r00d0034@yahoo.com
|
|
|
|
|
FIX YOUR FORMATTING!!!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Does anybody can tell me how to write a program to interrupt the start procedure in MS Windows 9x, Windows NT, Windows 2K, and Windows XP? Because I need to replace DLLs or files which are locked while windows is running. Thanks...
|
|
|
|
|
There is already a built-in facility to replace files on reboot. On NT, use MoveFileEx(). On 9x, you write instructions to the windows\wininit.ini files. Search MSDN for MoveFileEx or wininit.ini and you'll find lots of info on how to do it.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hello
Im having a trouble with getting a coursor coordinates in some window. Not in the whole screen (GetCursorPos(&point);) but in a defined window area. Is it possible? No mfc.
|
|
|
|
|
ScreenToClient(HWND, LPPOINT) will do that for you once you have a screen position.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
hi, can anyone list me some of the most popular string manipulation function and some explanation on that from the standard C library. Thanks
|
|
|
|
|
First of all, unless you're using C and not C++, all the char * stuff is pure evil and should be avoided.
Secondly, google is your friend. So is the msdn site, it is full of this information.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
|
Chris, I guess you will always be a nicer guy than I.....
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
think of it this way: give a programmer an answer and he'll be back tomorrow for another. teach him to use the MSDN and he can look it up his damn self.
-c
Alcohol is the anesthesia by which we endure the operation of life.
-- George Bernard Shaw
|
|
|
|
|
Hi thanks, frankly i did not know that the MSDN was available online. I always thought it was on a CD. Thanks. I totally agree with your anecdote, Teach a hungry man to fish, don't give him a fish!!
Thanks
|
|
|
|
|
Vishwadev wrote:
Hi thanks
anytime
-c
Alcohol is the anesthesia by which we endure the operation of life.
-- George Bernard Shaw
|
|
|
|
|
I meant that I just told him to go look at the MSDN, while you kindly went and generated a link for him.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|