Click to See Complete Forum and Search --> : Posting WM_KEYDOWN message to externa window in C#


WarWulf
August 13th, 2002, 02:06 PM
Trying to send a keydown message to separate window. did't find any native C# class to get external windows so i tried to use FindWindow, and SendMessage API functions.
But i can't make it work, looks like the FindWindow method fails, getting diffrent values back each time?
Plz help me!

/B4N WarWulf

Arild Fines
August 17th, 2002, 03:53 AM
I believe the FindWindow/SendMessage method is the way to go here. Maybe if you could post your code, someone would see what you are doing wrong?

WarWulf
August 17th, 2002, 04:53 AM
Solved the problem, had HWND as ulong instead of uint ;) , thanks anyway.

/B4N WarWulf