You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
`BFM's Example of getting data out of Windows DLL and into User Defined Types
#Constant Const_User32 1
Load Dll "user32.dll",Const_User32
X As Integer
Y As Integer
Z As Integer
`DLL data to stream into defined UDT()
`-----Prep - Mouse Cursor Position-----
Global Dim DLL_Mouse_Pos() as Type_Mouse_Pos
Global DLL_GetCursorPos as dword
Add To Queue DLL_Mouse_Pos()
DLL_GetCursorPos = DLL_Mouse_Pos()
`Calls User32.DLL data and puts into the DLL_mouse array.
Func_Return = Call Dll(Const_user32, "GetCursorPos", DLL_GetCursorPos)
print "Desktop X " ; DLL_Mouse_Pos().x
print "Desktop Y " ; DLL_Mouse_Pos().y
Login to post a reply