Sign in to follow this  
Followers 0
Yashied

WinAPIEx UDF

476 posts in this topic

#381 ·  Posted (edited)

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

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

Share this post


Link to post
Share on other sites



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


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_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()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

(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.

Share this post


Link to post
Share on other sites

mat,

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

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

(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 !

Share this post


Link to post
Share on other sites

(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 !

Share this post


Link to post
Share on other sites

#391 ·  Posted (edited)

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

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

Share this post


Link to post
Share on other sites

#392 ·  Posted (edited)

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

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

In _WinAPI_SetFileInformationByHandleEx $tIOSB isn't used.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_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()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

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.

; #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

; #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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0