ofLight Posted October 22, 2007 Posted October 22, 2007 Can anyone post an example use of _API_PostMessage from A3LWinAPI.au3 ?? or if not can any of you DLL masters out there point me in the right direction with useing User32.dll and PostMessageA within AutoIt? I have tried manny different combinations but am apparently just not understanding exactly what the syntax needs to be. My clearly failed and garbald attempt $activeWin = WinGetHandle("") $Result = DllCall("User32.dll", "int", "PostMessageA", "hwnd", $activeWin, "int", "test message text", "int", "", "int", "") MsgBox(0,"",$Result) There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly
Zedna Posted October 22, 2007 Posted October 22, 2007 (edited) Can anyone post an example use of _API_PostMessage from A3LWinAPI.au3 ?? or if not can any of you DLL masters out there point me in the right direction with useing User32.dll and PostMessageA within AutoIt? I have tried manny different combinations but am apparently just not understanding exactly what the syntax needs to be. My clearly failed and garbald attempt $activeWin = WinGetHandle("") $Result = DllCall("User32.dll", "int", "PostMessageA", "hwnd", $activeWin, "int", "test message text", "int", "", "int", "") MsgBox(0,"",$Result) Instead of "test message text" must be some Windows message code, for example WM_QUIT Search forum for DllCall & SendMessage to see how it's used. Also MsgBox(0,"",$Result[0]) Also say what exactly do you want to do? Edited October 22, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Moderators SmOke_N Posted October 22, 2007 Moderators Posted October 22, 2007 (edited) "int", "test message text"See anything wrong there?... ie... you say you are sending an integer, yet you included a string....Edit:See what I get for getting something to drink before I post, beat by 8 minutes!! Edited October 22, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now