Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

WinAPIEx UDF


  • Please log in to reply
474 replies to this topic

#381 MilesAhead

MilesAhead

    Eclectician

  • Active Members
  • PipPipPipPipPipPip
  • 607 posts

Posted 07 March 2012 - 12:15 AM

btw anyone happen to know an easy to comprehend free diff tool for win32? Every time I update WinAPIEx I struggle for an hour trying to merge the user calltips with the ones I've added myself. I tried WinMerge. I think I got it to work as expected one time. Otherwise it's faster to just load the 2 calltip files in tabs on EditPadLite7 and just copy and paste. It's a real time waster. Seems no matter which way I merge with WinMerge I end up with a calltips file that's smaller than the one included with WinAPIEx. Driving me nuts. :oops:

Edited by MilesAhead, 07 March 2012 - 12:16 AM.

"I don't want to belong to any club that would have me as a member."- Groucho Marx







#382 guinness

guinness

    all-consuming swarm in inconspicuous disguise

  • Developers
  • 17,530 posts

Posted 07 March 2012 - 12:22 AM

I use WinMerge and also TextDiff >> http://www.angusj.com/delphi/textdiff.html (which is Portable)

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()LockFile()Mapping CtrlIDsParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...
Updated: 26/09/2014


#383 MilesAhead

MilesAhead

    Eclectician

  • Active Members
  • PipPipPipPipPipPip
  • 607 posts

Posted 07 March 2012 - 03:15 AM

Thanks guinness.

Yashied, I am running 3.3.8.0 and used the installer. I got some already defined errors. If I remember one was _WinAPI_DuplicateHandle() or something similar.
"I don't want to belong to any club that would have me as a member."- Groucho Marx

#384 Yashied

Yashied

    Happy in Moscow

  • MVPs
  • 2,574 posts

Posted 07 March 2012 - 05:55 AM

The ZIP files both contain the exact same version of WinAPIEx.au3. How I found out was I got a couple of errors (fixed my side) when compiling a script.


Thanks, fixed. Please download again.

#385 chs131738

chs131738

    Seeker

  • Banned (NOT IN USE)
  • 2 posts

Posted 09 March 2012 - 03:45 PM

Thanks, fixed. Please download again.


hope that to publish similar "autoit-docs - v3.3.9.1-src.exe" file
Facilitate the localization of the document. Thank you!

#386 Melba23

Melba23

    I'm old - what's your excuse?

  • Moderators
  • 21,764 posts

Posted 09 March 2012 - 03:55 PM

chs131738,

What has this to do with the WinAPIEx UDF? :oops:

And if you are looking for the AutoIt source, it is not been available for many years. The last version for which the source was released was v3.1.0 - you can download it from here but it bears little resemblance to the current code after another 7 years of development. :bye:

M23
StringSize - Automatically size controls to fit text                                                               ExtMsgBox - A user customisable replacement for MsgBox
Toast - Small GUIs which pop out of the Systray                                                                Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command                                   GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI                                      NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure      Notify - Small notifications on the edge of the display
Date_Time_Convert - Easily convert date/time formats, including the language               GUIListViewEx - Insert, delete, move, drag, sort and edit ListView items

#387 Mat

Mat

    43 38 48 31 30 4E 34 4F 32

  • MVPs
  • 5,066 posts

Posted 09 March 2012 - 04:19 PM

(S)He's asking for the source of the WinAPIEx docs so that they can be translated, in a similar way to the current AutoIt docs.

#388 Melba23

Melba23

    I'm old - what's your excuse?

  • Moderators
  • 21,764 posts

Posted 09 March 2012 - 04:33 PM

mat,

If you are right then you are a better interpreter than I am! :oops:

M23
StringSize - Automatically size controls to fit text                                                               ExtMsgBox - A user customisable replacement for MsgBox
Toast - Small GUIs which pop out of the Systray                                                                Marquee - Scrolling tickertape GUIs
Scrollbars - Automatically sized scrollbars with a single command                                   GUIFrame - Subdivide GUIs into many adjustable frames
GUIExtender - Extend and retract multiple sections within a GUI                                      NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes
ChooseFileFolder - Single and multiple selections from specified path tree structure      Notify - Small notifications on the edge of the display
Date_Time_Convert - Easily convert date/time formats, including the language               GUIListViewEx - Insert, delete, move, drag, sort and edit ListView items

#389 131738

131738

    Seeker

  • Banned (NOT IN USE)
  • 38 posts

Posted 09 March 2012 - 07:43 PM

(S)He's asking for the source of the WinAPIEx docs so that they can be translated, in a similar way to the current AutoIt docs.


Interpretation of the ok , thank you !

#390 chs131738

chs131738

    Seeker

  • Banned (NOT IN USE)
  • 2 posts

Posted 09 March 2012 - 07:46 PM

(S)He's asking for the source of the WinAPIEx docs so that they can be translated, in a similar way to the current AutoIt docs.


Interpretation of the ok , thank you !

#391 DXRW4E

DXRW4E

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 349 posts

Posted 10 March 2012 - 10:03 PM

Hi Yashied, it seems that microsoft updated the Dism API, can add them (the function of dism) in WinAPIEx UDF, I think it would be very useful (dism makes many useful tasks also online mod, now need only use the DismApi.dll already present by default in Windows 8)

http://msdn.microsoft.com/en-us/library/windows/desktop/hh825834.aspx

sorry for my english

Ciao.

Edited by DXRW4E, 10 March 2012 - 10:12 PM.

OneDrive_Logo.png drive_app_badge.png box-logo.png new_logo.png MEGA_Logo.png

#392 MilesAhead

MilesAhead

    Eclectician

  • Active Members
  • PipPipPipPipPipPip
  • 607 posts

Posted 13 March 2012 - 10:56 PM

Hmm, I've been trying to merge WinAPIEx.chm into the autoit help. I've gotten so far as the entries are added to the table of contents and they bring up the help page, but the index entries are not shown. I noticed on decompile that the hhk file has all double Name entries like this:

<LI> <OBJECT type="text/sitemap">         <param name="Name" value="_WinAPI_AddFontResourceEx">         <param name="Name" value="_WinAPI_AddFontResourceEx">         <param name="Local" value="html/libfunctions/_WinAPI_AddFontResourceEx.htm">         </OBJECT>


I'm wondering if that's the issue. But since there's over 4000 lines I'm reluctant to edit by hand.

edit: I removed the dupes and it had no effect. Weird how it doesn't want to merge the index. Oh well, I never liked working with HtmlHelp anyway. .hlp was a lot cleaner.

edit2: found an aggregate tool that seemed to work. Haven't checked it extensively yet. But pressing F1 on a WinAPIEx function in SciTE brought it up correctly!!! I just renamed the output .chm and .chw files with AutoIt basename and placed them in the AutoIt3 folder. :oops: Google Chm Aggregator if you wish to try it. The trick seems to be to load in all the .chm files you wish to aggregate, before selecting a file name for the aggregate .chm file.

Edited by MilesAhead, 14 March 2012 - 02:58 AM.

"I don't want to belong to any club that would have me as a member."- Groucho Marx

#393 netegg

netegg

    Prodigy

  • Active Members
  • PipPipPip
  • 156 posts

Posted 14 March 2012 - 11:07 AM

Hi, Yashied, the Standard Access Rights consts are in SecurityConstants.au3 file, should it be marked comment?

#394 myk3

myk3

    Adventurer

  • Active Members
  • PipPip
  • 107 posts

Posted 14 March 2012 - 04:24 PM

Is there a function available to show the number of physical disks? I dont see one that would do this.

#395 KaFu

KaFu

    Hey, it's just me, KhaFoo...

  • MVPs
  • 3,402 posts

Posted 14 March 2012 - 04:38 PM

Check out the help-file example for _WinAPI_GetDriveGeometryEx(), run this function in a loop to iterate the number of HDDs installed.

#396 myk3

myk3

    Adventurer

  • Active Members
  • PipPip
  • 107 posts

Posted 14 March 2012 - 07:52 PM

Check out the help-file example for _WinAPI_GetDriveGeometryEx(), run this function in a loop to iterate the number of HDDs installed.


lol I just finished this but using wmi.. ill try with that also so i dont have to add the wmi patch to my boot.wim

#397 KaFu

KaFu

    Hey, it's just me, KhaFoo...

  • MVPs
  • 3,402 posts

Posted 14 March 2012 - 08:44 PM

When you ask a question, don't be surprised to get an answer on this forum :oops:...

#398 Yashied

Yashied

    Happy in Moscow

  • MVPs
  • 2,574 posts

Posted 18 March 2012 - 08:00 PM

The library has been updated, version remains unchanged.

Changes

Spoiler


#399 guinness

guinness

    all-consuming swarm in inconspicuous disguise

  • Developers
  • 17,530 posts

Posted 20 March 2012 - 10:55 AM

In _WinAPI_SetFileInformationByHandleEx $tIOSB isn't used.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()LockFile()Mapping CtrlIDsParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...
Updated: 26/09/2014


#400 ChrisR

ChrisR

    Seeker

  • Active Members
  • 5 posts

Posted 21 March 2012 - 10:03 AM

Hi All,

Thank you for these great WinAPI functions :oops:
My first post with these 2 small possible additions, if it's good, LCIDToLocaleName and LocaleNameToLCID
I expected to find the LocaleName (fr-FR) in _WinAPI_GetLocaleInfo, but not.

Plain Text         
; #FUNCTION# ==================================================================================================================== ; Name...........: _WinAPI_LCIDToLocaleName ; Description....: Converts a locale identifier to a locale name. ; Syntax.........: _WinAPI_LCIDToLocaleName ( $LCID ) ; Parameters.....: $LCID   - The locale identifier (LCID) that specifies the locale or one of the following predefined values. ; ;                           $LOCALE_INVARIANT ;                           $LOCALE_SYSTEM_DEFAULT ;                           $LOCALE_USER_DEFAULT ; ;                           Windows Vista or later ; ;                           $LOCALE_CUSTOM_DEFAULT ;                           $LOCALE_CUSTOM_UI_DEFAULT ;                           $LOCALE_CUSTOM_UNSPECIFIED ; ; Return values..: Success - String containing the locale name. ;                 Failure - Empty string and sets the @error flag to non-zero. ; Author.........: ChrisR ; Modified.......: ; Remarks........: None ; Related........: ; Link...........: @@MsdnLink@@ LCIDToLocaleName ; Example........: Yes ; =============================================================================================================================== Func _WinAPI_LCIDToLocaleName($LCID) Local $Ret = DllCall('kernel32.dll', 'int', 'LCIDToLocaleName', 'ulong', $LCID, 'wstr', '', 'int', 500, 'int', 0)     If (@error) Or (Not $Ret[0]) Then   Return SetError(1, 0, '') EndIf Return $Ret[2] EndFunc   ;==>_WinAPI_LCIDToLocaleName


Plain Text         
; #FUNCTION# ==================================================================================================================== ; Name...........: _WinAPI_LocaleNameToLCID ; Description....: Converts a locale name to a locale identifier. ; Syntax.........: _WinAPI_LocaleNameToLCID ( $LocaleName ) ; Parameters.....: $LocaleName - The locale Name or one of the following predefined values. ; ;                           $LOCALE_NAME_INVARIANT ;                           $LOCALE_NAME_SYSTEM_DEFAULT ;                           $LOCALE_NAME_USER_DEFAULT ; ; Return values..: Success - String containing the locale identifier (LCID). ;                 Failure  - 0 and sets the @error flag to non-zero. ; Author.........: ChrisR ; Modified.......: ; Remarks........: None ; Related........: ; Link...........: @@MsdnLink@@ LocaleNameToLCID ; Example........: ; =============================================================================================================================== Func _WinAPI_LocaleNameToLCID($LocaleName) Local $Ret = DllCall('kernel32.dll', 'int', 'LocaleNameToLCID', 'wstr', $LocaleName, 'int', 0)     If (@error) Or (Not $Ret[0]) Then   Return SetError(1, 0, '') EndIf Return $Ret[0] EndFunc   ;==>_WinAPI_LocaleNameToLCID





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users