sandin Posted March 5, 2007 Posted March 5, 2007 I hope I haven't bored you all with all theese questions, but I'm still a newbie, and I wanna learn how to program in AI. I read this in help files: DllCall ( "dll", "return type", "function" [, "type1", param1 [, "type n", param n]] ) so, I managed to open, call, and close DLL file, but if I want ti use an option from it, I would have to know the function name or ordinal value, right? So is there a way for me to find out what ordinal values DLL file contains, and which functions it does? Example: DllCall("shell32.dll", "none", 62, "hwnd", 0, "ptr", DllStructGetPtr($stString), "int", DllStructGetSize($stString), "ptr", DllStructGetPtr($stIcon)) ...opens an icon selection window (called by shell32.dll file, function no. 62). Now, I could use this only if I knew that no. 62 calls icon selection window, but what if I didn't knew that, is there a way for me to find out what functions DLL file contains so I can use them in autoit (and I'm not talking about main winxp files, I'm talking about all dll's). Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
lod3n Posted March 5, 2007 Posted March 5, 2007 Not sure what you're asking for. Perhaps you want to read this first?http://www.autoitscript.com/forum/index.php?showtopic=7072 [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
sandin Posted March 5, 2007 Author Posted March 5, 2007 for example, I have virtual.dll file, and I know what's he capable of. But if I use: DllCall ( "virtual.dll", "none", ###) I wouldn't know what to put in ### spot, to make it do it's function. so, is there a way for me to check what functions this virtual.dll file contains, something like: 52 = minimize window 53 = select all 54 = choose a directory etc... (theese are all just examples) heh... it's hard to explain Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
Moderators SmOke_N Posted March 5, 2007 Moderators Posted March 5, 2007 for example, I have virtual.dll file, and I know what's he capable of. But if I use: DllCall ( "virtual.dll", "none", ###) I wouldn't know what to put in ### spot, to make it do it's function. so, is there a way for me to check what functions this virtual.dll file contains, something like: 52 = minimize window 53 = select all 54 = choose a directory etc... (theese are all just examples) heh... it's hard to explain Ask the developer of the DLL to provide you with the parameters... otherwise, if there's more than just the function call parameter, you're pretty much SOL. 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.
sandin Posted March 5, 2007 Author Posted March 5, 2007 Ask the developer of the DLL to provide you with the parameters... otherwise, if there's more than just the function call parameter, you're pretty much SOL.thank you for the reply, I'll try to find a way to avoid using dlls which doesn't belong to windows's basic dlls. Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
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