Is there any other way SendInput without using User32.dll? Is there other DLL file same usage as user32.dll which provided by .NET framework?
There is a SendInput function inside Microsoft.VisualBasic.DLL but it still call back User32.dll.
As i know GetPixel can be done using GDI32.DLL from windows and SYSTEM.DRAWING.DLL from .NET Framework.
Please help me on this.
Loading
savan gandhiPosted Dec 13, 2007, 3:43 AM
Use Findwindow and SendMessage combination instead, where you can direct your keys to the particular window, you are interested in.
I don't know how to send keys by using SendMessage function. But it is for sure, that you can achive desirable results with this combination.
AlanPosted Nov 30, 2007, 10:34 AM
The .NET framework equivalent is the SendKeys class (in System.Windows.Forms) which has Send() and SendWait() methods:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys(VS.80).aspx
However, these methods still call the SendInput() API function 'under the hood'.
Also, if you're trying to send keystrokes to another window, you still have to use API functions such as FindWindow() and SetForegroundWindow() to force the focus onto that window first and these functions reside in user32.dll as well.