Using a function from user32.dll in a script
Author: abegy
Creation Date: 3/17/2012 10:02 AM
profile picture

abegy

#1
I would like to call GetwindowsText function from the DLL user32.dll but I don't know how to do that.
When I add the following code, the compiler writes me that DLLIMPORT could not be found.

CODE:
Please log in to see this code.


Thanks for your help
profile picture

Eugene

#2
That's because you forgot to refer to System.Runtime.InteropServices.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).