Kip Posted July 30, 2009 Share Posted July 30, 2009 (edited) Title says enough. I created it with an automatic MSDN page downloader, so some of the datatypes can be wrong. Let me know if you see any. Anyway: User32.au3 I hope you like it. None of the functions have any descriptions. Just use MSDN for that. Edited July 30, 2009 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Datenshi Posted July 31, 2009 Share Posted July 31, 2009 Good work Kip >_ RapidQueuer 2.4 - For Rapidshare.comOpensubtitles Hashing FuncRevision3 PlayerGTPlayer BetaIMDB & Poster Grabber v1.3Fetgrek.com - My Website Link to comment Share on other sites More sharing options...
KarlosTHG Posted July 31, 2009 Share Posted July 31, 2009 good work, where can i get the msdn page downloader? Link to comment Share on other sites More sharing options...
BrettF Posted July 31, 2009 Share Posted July 31, 2009 Cool as! Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Authenticity Posted July 31, 2009 Share Posted July 31, 2009 Heh, cool, some are not correct. For example, _User32_WindowFromPoint() is not correct. When you see a structure specified as a parameter as opposed to a handle or pointer to this structure, it means pushing all it's members (in the case of union it's the greatest sized members) on the stack and calling it. So it should be: DllCall('user32.dll',"hwnd","WindowFromPoint","int", 100, "int", 200) ...for example. Link to comment Share on other sites More sharing options...
Zedna Posted July 31, 2009 Share Posted July 31, 2009 (edited) Looks like good work! Here are my recommendations: - you can also make UDF for kernel32.dll, gdi32.dll, shell32.dll - you can quite easily add also generated function header (look at WinAPI.au3) - after each dllcall() add this: If @error Then Return SetError(@error, 0, 0) - remove from your final UDF functions which are already in standard includes (WinAPI) Edited July 31, 2009 by Zedna Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
Yashied Posted July 31, 2009 Share Posted July 31, 2009 Good, but unfortunately, most of these functions does not help the user work.$Result = _User32_...(...)vs$Result = DllCall('user32.dll', ...)$Result = $Result[0]Usefulness is questionable. It would be better adapt to AutoIt with the user interests.For example (from WinAPIEx.au3):Func _WinAPI_GetKeyboardLayoutList() Local $Ret $Ret = DllCall('user32.dll', 'int', 'GetKeyboardLayoutList', 'int', 0, 'ptr', 0) If (@error) Or ($Ret[0] = 0) Then Return SetError(1, 0, 0) EndIf Local $tData = DllStructCreate('ptr[' & $Ret[0] & ']') $Ret = DllCall('user32.dll', 'int', 'GetKeyboardLayoutList', 'int', $Ret[0], 'ptr', DllStructGetPtr($tData)) If (@error) Or ($Ret[0] = 0) Then Return SetError(1, 0, 0) EndIf Local $List[$Ret[0] + 1] = [$Ret[0]] For $i = 1 To $List[0] $List[$i] = BitAND(DllStructGetData($tData, 1, $i), 0xFFFF) Next Return $List EndFunc ;==>_WinAPI_GetKeyboardLayoutListYour function:func _User32_GetKeyboardLayoutList( $nBuff, $lpList ) local $vRetVal = DllCall($User32,"UINT","GetKeyboardLayoutList","int",$nBuff,"hwnd*",$lpList) return $vRetVal[0] EndFuncJust for thought... My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Kip Posted July 31, 2009 Author Share Posted July 31, 2009 (edited) Good, but unfortunately, most of these functions does not help the user work. $Result = _User32_...(...) vs $Result = DllCall('user32.dll', ...) $Result = $Result[0] Usefulness is questionableWell, you don't have to know the data types. I really prefer: $iResult = _User32_IsChild( $hWndParent, $hWnd ) over $iResult = DllCall($User32,"int","IsChild","hwnd",$hWndParent,"hwnd",$hWnd) $iResult = $iResult[0] Heh, cool, some are not correct. For example, _User32_WindowFromPoint() is not correct. When you see a structure specified as a parameter as opposed to a handle or pointer to this structure, it means pushing all it's members (in the case of union it's the greatest sized members) on the stack and calling it. So it should be:Eerm, huh? Edited July 31, 2009 by Kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
netegg Posted September 28, 2009 Share Posted September 28, 2009 just function by name? Where's the structure constant for the point variant? Link to comment Share on other sites More sharing options...
corgano Posted September 28, 2009 Share Posted September 28, 2009 All you need to do now is to modify the down loader to help generate a help file for each one. 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e Link to comment Share on other sites More sharing options...
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