Jump to content

CreateResourceDLL


funkey
 Share

Recommended Posts

You need WinAPIEx. Search for it in the Examples section or use the latest beta.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_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: 22/04/2018

Link to comment
Share on other sites

I have it, it's not a problem, I have the version 3.3, here are my error's :

C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3161,35) : ERROR: $WM_AFXFIRST previously declared as a 'Const'.
Global Const $WM_AFXFIRST = 0x0360
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3162,34) : ERROR: $WM_AFXLAST previously declared as a 'Const'.
Global Const $WM_AFXLAST = 0x037F
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3163,30) : ERROR: $WM_APP previously declared as a 'Const'.
Global Const $WM_APP = 0x8000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3164,37) : ERROR: $WM_APPCOMMAND previously declared as a 'Const'.
Global Const $WM_APPCOMMAND = 0x0319
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3168,41) : ERROR: $WM_CAPTURECHANGED previously declared as a 'Const'.
Global Const $WM_CAPTURECHANGED = 0x0215
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3197,39) : ERROR: $WM_DEVICECHANGE previously declared as a 'Const'.
Global Const $WM_DEVICECHANGE = 0x0219
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3202,36) : ERROR: $WM_DROPFILES previously declared as a 'Const'.
Global Const $WM_DROPFILES = 0x0233
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3210,37) : ERROR: $WM_ENDSESSION previously declared as a 'Const'.
Global Const $WM_ENDSESSION = 0x0016
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3212,40) : ERROR: $WM_ENTERMENULOOP previously declared as a 'Const'.
Global Const $WM_ENTERMENULOOP = 0x0211
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3213,40) : ERROR: $WM_ENTERSIZEMOVE previously declared as a 'Const'.
Global Const $WM_ENTERSIZEMOVE = 0x0231
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3215,39) : ERROR: $WM_EXITMENULOOP previously declared as a 'Const'.
Global Const $WM_EXITMENULOOP = 0x0212
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3216,39) : ERROR: $WM_EXITSIZEMOVE previously declared as a 'Const'.
Global Const $WM_EXITSIZEMOVE = 0x0232
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3229,40) : ERROR: $WM_HANDHELDFIRST previously declared as a 'Const'.
Global Const $WM_HANDHELDFIRST = 0x0358
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3230,39) : ERROR: $WM_HANDHELDLAST previously declared as a 'Const'.
Global Const $WM_HANDHELDLAST = 0x035F
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3232,33) : ERROR: $WM_HOTKEY previously declared as a 'Const'.
Global Const $WM_HOTKEY = 0x0312
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3236,35) : ERROR: $WM_IME_CHAR previously declared as a 'Const'.
Global Const $WM_IME_CHAR = 0x0286
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3237,42) : ERROR: $WM_IME_COMPOSITION previously declared as a 'Const'.
Global Const $WM_IME_COMPOSITION = 0x010F
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3238,46) : ERROR: $WM_IME_COMPOSITIONFULL previously declared as a 'Const'.
Global Const $WM_IME_COMPOSITIONFULL = 0x0284
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3239,38) : ERROR: $WM_IME_CONTROL previously declared as a 'Const'.
Global Const $WM_IME_CONTROL = 0x0283
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3240,45) : ERROR: $WM_IME_ENDCOMPOSITION previously declared as a 'Const'.
Global Const $WM_IME_ENDCOMPOSITION = 0x010E
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3241,38) : ERROR: $WM_IME_KEYDOWN previously declared as a 'Const'.
Global Const $WM_IME_KEYDOWN = 0x0290
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3242,38) : ERROR: $WM_IME_KEYLAST previously declared as a 'Const'.
Global Const $WM_IME_KEYLAST = 0x010F
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3243,36) : ERROR: $WM_IME_KEYUP previously declared as a 'Const'.
Global Const $WM_IME_KEYUP = 0x0291
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3244,37) : ERROR: $WM_IME_NOTIFY previously declared as a 'Const'.
Global Const $WM_IME_NOTIFY = 0x0282
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3245,38) : ERROR: $WM_IME_REQUEST previously declared as a 'Const'.
Global Const $WM_IME_REQUEST = 0x0288
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3246,37) : ERROR: $WM_IME_SELECT previously declared as a 'Const'.
Global Const $WM_IME_SELECT = 0x0285
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3247,41) : ERROR: $WM_IME_SETCONTEXT previously declared as a 'Const'.
Global Const $WM_IME_SETCONTEXT = 0x0281
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3248,47) : ERROR: $WM_IME_STARTCOMPOSITION previously declared as a 'Const'.
Global Const $WM_IME_STARTCOMPOSITION = 0x010D
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3256,35) : ERROR: $WM_KEYFIRST previously declared as a 'Const'.
Global Const $WM_KEYFIRST = 0x0100
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3257,34) : ERROR: $WM_KEYLAST previously declared as a 'Const'.
Global Const $WM_KEYLAST = 0x0109
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3263,40) : ERROR: $WM_MBUTTONDBLCLK previously declared as a 'Const'.
Global Const $WM_MBUTTONDBLCLK = 0x0209
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3266,38) : ERROR: $WM_MDIACTIVATE previously declared as a 'Const'.
Global Const $WM_MDIACTIVATE = 0x0222
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3267,37) : ERROR: $WM_MDICASCADE previously declared as a 'Const'.
Global Const $WM_MDICASCADE = 0x0227
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3268,36) : ERROR: $WM_MDICREATE previously declared as a 'Const'.
Global Const $WM_MDICREATE = 0x0220
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3269,37) : ERROR: $WM_MDIDESTROY previously declared as a 'Const'.
Global Const $WM_MDIDESTROY = 0x0221
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3270,39) : ERROR: $WM_MDIGETACTIVE previously declared as a 'Const'.
Global Const $WM_MDIGETACTIVE = 0x0229
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3271,41) : ERROR: $WM_MDIICONARRANGE previously declared as a 'Const'.
Global Const $WM_MDIICONARRANGE = 0x0228
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3272,38) : ERROR: $WM_MDIMAXIMIZE previously declared as a 'Const'.
Global Const $WM_MDIMAXIMIZE = 0x0225
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3273,34) : ERROR: $WM_MDINEXT previously declared as a 'Const'.
Global Const $WM_MDINEXT = 0x0224
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3274,41) : ERROR: $WM_MDIREFRESHMENU previously declared as a 'Const'.
Global Const $WM_MDIREFRESHMENU = 0x0234
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3275,37) : ERROR: $WM_MDIRESTORE previously declared as a 'Const'.
Global Const $WM_MDIRESTORE = 0x0223
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3276,37) : ERROR: $WM_MDISETMENU previously declared as a 'Const'.
Global Const $WM_MDISETMENU = 0x0230
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3277,34) : ERROR: $WM_MDITILE previously declared as a 'Const'.
Global Const $WM_MDITILE = 0x0226
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3286,37) : ERROR: $WM_MOUSEFIRST previously declared as a 'Const'.
Global Const $WM_MOUSEFIRST = 0x0200
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3287,37) : ERROR: $WM_MOUSEHOVER previously declared as a 'Const'.
Global Const $WM_MOUSEHOVER = 0x02A1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3290,37) : ERROR: $WM_MOUSELEAVE previously declared as a 'Const'.
Global Const $WM_MOUSELEAVE = 0x02A3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3294,33) : ERROR: $WM_MOVING previously declared as a 'Const'.
Global Const $WM_MOVING = 0x0216
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3306,39) : ERROR: $WM_NCMOUSEHOVER previously declared as a 'Const'.
Global Const $WM_NCMOUSEHOVER = 0x02A0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3307,39) : ERROR: $WM_NCMOUSELEAVE previously declared as a 'Const'.
Global Const $WM_NCMOUSELEAVE = 0x02A2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3313,42) : ERROR: $WM_NCXBUTTONDBLCLK previously declared as a 'Const'.
Global Const $WM_NCXBUTTONDBLCLK = 0x00AD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3314,40) : ERROR: $WM_NCXBUTTONDOWN previously declared as a 'Const'.
Global Const $WM_NCXBUTTONDOWN = 0x00AB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3315,38) : ERROR: $WM_NCXBUTTONUP previously declared as a 'Const'.
Global Const $WM_NCXBUTTONUP = 0x00AC
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3317,35) : ERROR: $WM_NEXTMENU previously declared as a 'Const'.
Global Const $WM_NEXTMENU = 0x0213
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3324,41) : ERROR: $WM_PALETTECHANGED previously declared as a 'Const'.
Global Const $WM_PALETTECHANGED = 0x0311
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3325,44) : ERROR: $WM_PALETTEISCHANGING previously declared as a 'Const'.
Global Const $WM_PALETTEISCHANGING = 0x0310
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3326,39) : ERROR: $WM_PARENTNOTIFY previously declared as a 'Const'.
Global Const $WM_PARENTNOTIFY = 0x0210
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3328,38) : ERROR: $WM_PENWINFIRST previously declared as a 'Const'.
Global Const $WM_PENWINFIRST = 0x0380
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3329,37) : ERROR: $WM_PENWINLAST previously declared as a 'Const'.
Global Const $WM_PENWINLAST = 0x038F
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3331,41) : ERROR: $WM_POWERBROADCAST previously declared as a 'Const'.
Global Const $WM_POWERBROADCAST = 0x0218
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3332,32) : ERROR: $WM_PRINT previously declared as a 'Const'.
Global Const $WM_PRINT = 0x0317
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3333,38) : ERROR: $WM_PRINTCLIENT previously declared as a 'Const'.
Global Const $WM_PRINTCLIENT = 0x0318
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3335,42) : ERROR: $WM_QUERYENDSESSION previously declared as a 'Const'.
Global Const $WM_QUERYENDSESSION = 0x0011
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3336,42) : ERROR: $WM_QUERYNEWPALETTE previously declared as a 'Const'.
Global Const $WM_QUERYNEWPALETTE = 0x030F
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3337,36) : ERROR: $WM_QUERYOPEN previously declared as a 'Const'.
Global Const $WM_QUERYOPEN = 0x0013
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3341,40) : ERROR: $WM_RBUTTONDBLCLK previously declared as a 'Const'.
Global Const $WM_RBUTTONDBLCLK = 0x0206
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3353,40) : ERROR: $WM_SETTINGCHANGE previously declared as a 'Const'.
Global Const $WM_SETTINGCHANGE = 0x001A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3368,39) : ERROR: $WM_TABLET_FIRST previously declared as a 'Const'.
Global Const $WM_TABLET_FIRST = 0x02C0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3369,38) : ERROR: $WM_TABLET_LAST previously declared as a 'Const'.
Global Const $WM_TABLET_LAST = 0x02DF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3371,39) : ERROR: $WM_THEMECHANGED previously declared as a 'Const'.
Global Const $WM_THEMECHANGED = 0x031A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3376,34) : ERROR: $WM_UNICHAR previously declared as a 'Const'.
Global Const $WM_UNICHAR = 0x0109
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeAPIConstants.au3(3387,44) : ERROR: $WM_WTSSESSION_CHANGE previously declared as a 'Const'.
Global Const $WM_WTSSESSION_CHANGE = 0x02B1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\WinAPI.au3(159,38) : ERROR: $TMPF_FIXED_PITCH previously declared as a 'Const'.
Global Const $TMPF_FIXED_PITCH = 0x01
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\WinAPI.au3(160,33) : ERROR: $TMPF_VECTOR previously declared as a 'Const'.
Global Const $TMPF_VECTOR = 0x02
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\WinAPI.au3(161,35) : ERROR: $TMPF_TRUETYPE previously declared as a 'Const'.
Global Const $TMPF_TRUETYPE = 0x04
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\WinAPI.au3(162,33) : ERROR: $TMPF_DEVICE previously declared as a 'Const'.
Global Const $TMPF_DEVICE = 0x08
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\WinAPI.au3(165,50) : ERROR: $DUPLICATE_CLOSE_SOURCE previously declared as a 'Const'.
Global Const $DUPLICATE_CLOSE_SOURCE = 0x00000001
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\WinAPI.au3(166,49) : ERROR: $DUPLICATE_SAME_ACCESS previously declared as a 'Const'.
Global Const $DUPLICATE_SAME_ACCESS = 0x00000002
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeWinAPIEx.au3(4932,104) : ERROR: _WinAPI_DuplicateHandle() already defined.
Func _WinAPI_DuplicateHandle($hProcess, $hSource, $hTarget, $iAccess = 0, $iOptions = 2, $fInherit = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeWinAPIEx.au3(11144,34) : ERROR: _WinAPI_GetTextMetrics() already defined.
Func _WinAPI_GetTextMetrics($hDC)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:Documents and SettingsrcBureauAutoIt SourceCodeCreateDll.au3 - 79 error(s), 0 warning(s)

Edited by ricky03
Link to comment
Share on other sites

When did you last update WinAPIEx and all the files included? As I don't get those errors.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_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: 22/04/2018

Link to comment
Share on other sites

Nice stuff Funkey. Might be useful.

Thanks for sharing!

Btw, the compression for the empty DLL is a nice workaround. I'm wondering why the built-in compression is not optimal for this file...

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Thanks for sharing!

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Thanks for liking it! ;)

Now you can also import fonts to the dll. But there are still a lot of resource types missing. If someone has time, he could implement cursors, sounds or movies for me. Or just wait until I have next few free minutes. :)

Download at post #1

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

You can look at the AutoIt3Wrapper source for all the resource types I've implemented. I believe AVI and sounds are just stored as binary data. Cursors are similar to icons, and string tables are their own animal.

Link to comment
Share on other sites

Thanks wraithdu. I already had a look into AutoIt3Wrapper, when I implemented the icons.

By the way: I forgot to ask, if there is a (easy) way to get the name of a font direct from memory without writing a temp file and using _WinAPI_GetFontResourceInfo()??

Thanks, funkey

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

I'm a C/C++ novice but you can try this code to convert it to AutoIt (I know that you have C/C++ knowledge ;) )

It will read out the font name directly from the file:

typedef struct _tagTT_OFFSET_TABLE{
    USHORT  uMajorVersion;
    USHORT  uMinorVersion;
    USHORT  uNumOfTables;
    USHORT  uSearchRange;
    USHORT  uEntrySelector;
    USHORT  uRangeShift;
}TT_OFFSET_TABLE;

typedef struct _tagTT_TABLE_DIRECTORY{
    char    szTag[4];           //table name
    ULONG   uCheckSum;          //Check sum
    ULONG   uOffset;            //Offset from beginning of file
    ULONG   uLength;            //length of the table in bytes
}TT_TABLE_DIRECTORY;

typedef struct _tagTT_NAME_TABLE_HEADER{
    USHORT  uFSelector;         //format selector. Always 0
    USHORT  uNRCount;           //Name Records count
    USHORT  uStorageOffset;     //Offset for strings storage, from start of the table
}TT_NAME_TABLE_HEADER;

typedef struct _tagTT_NAME_RECORD{
    USHORT  uPlatformID;
    USHORT  uEncodingID;
    USHORT  uLanguageID;
    USHORT  uNameID;
    USHORT  uStringLength;
    USHORT  uStringOffset;  //from start of storage area
}TT_NAME_RECORD;

#define SWAPWORD(x)     MAKEWORD(HIBYTE(x), LOBYTE(x))
#define SWAPLONG(x)     MAKELONG(SWAPWORD(HIWORD(x)), SWAPWORD(LOWORD(x)))


CString GetFontNameFromFile(LPCTSTR lpszFilePath)
{
    CFile f;
    CString csRetVal;

    if(f.Open(lpszFilePath, CFile::modeRead|CFile::shareDenyWrite)){
        TT_OFFSET_TABLE ttOffsetTable;
        f.Read(&ttOffsetTable, sizeof(TT_OFFSET_TABLE));
        ttOffsetTable.uNumOfTables = SWAPWORD(ttOffsetTable.uNumOfTables);
        ttOffsetTable.uMajorVersion = SWAPWORD(ttOffsetTable.uMajorVersion);
        ttOffsetTable.uMinorVersion = SWAPWORD(ttOffsetTable.uMinorVersion);

        //check is this is a true type font and the version is 1.0
        if(ttOffsetTable.uMajorVersion != 1 || ttOffsetTable.uMinorVersion != 0)
            return csRetVal;
        
        TT_TABLE_DIRECTORY tblDir;
        BOOL bFound = FALSE;
        CString csTemp;
        
        for(int i=0; i< ttOffsetTable.uNumOfTables; i++){
            f.Read(&tblDir, sizeof(TT_TABLE_DIRECTORY));
            strncpy(csTemp.GetBuffer(5), tblDir.szTag, 4);
            csTemp.ReleaseBuffer(4);
            if(csTemp.CompareNoCase(_T("name")) == 0){
                bFound = TRUE;
                tblDir.uLength = SWAPLONG(tblDir.uLength);
                tblDir.uOffset = SWAPLONG(tblDir.uOffset);
                break;
            }
        }
        
        if(bFound){
            f.Seek(tblDir.uOffset, CFile::begin);
            TT_NAME_TABLE_HEADER ttNTHeader;
            f.Read(&ttNTHeader, sizeof(TT_NAME_TABLE_HEADER));
            ttNTHeader.uNRCount = SWAPWORD(ttNTHeader.uNRCount);
            ttNTHeader.uStorageOffset = SWAPWORD(ttNTHeader.uStorageOffset);
            TT_NAME_RECORD ttRecord;
            bFound = FALSE;
            
            for(int i=0; i<ttNTHeader.uNRCount; i++){
                f.Read(&ttRecord, sizeof(TT_NAME_RECORD));
                ttRecord.uNameID = SWAPWORD(ttRecord.uNameID);
                if(ttRecord.uNameID == 1){
                    ttRecord.uStringLength = SWAPWORD(ttRecord.uStringLength);
                    ttRecord.uStringOffset = SWAPWORD(ttRecord.uStringOffset);
                    int nPos = f.GetPosition();
                    f.Seek(tblDir.uOffset + ttRecord.uStringOffset + ttNTHeader.uStorageOffset, CFile::begin);

                    //bug fix: see the post by SimonSays to read more about it
                    TCHAR lpszNameBuf = csTemp.GetBuffer(ttRecord.uStringLength + 1);
                    ZeroMemory(lpszNameBuf, ttRecord.uStringLength + 1);
                    f.Read(lpszNameBuf, ttRecord.uStringLength);
                    csTemp.ReleaseBuffer();
                    if(csTemp.GetLength() > 0){
                        csRetVal = csTemp;
                        break;
                    }
                    f.Seek(nPos, CFile::begin);
                }
            }           
        }
        f.Close();
    }
    return csRetVal;
}

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Thank you all and thank you UEZ! I ported the code to AutoIt and posted it here:

Very usefull.

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

  • 6 months later...
  • 1 month later...

I wondered if you could help me with this.

I created a DLL with your script and have numerous icons in there. When I try to add these icons to buttons in my script, only the first icon I set is displayed.

Here is what I have:

#include
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$formMain = GUICreate("Form1", 615, 438, 192, 124)
$btnInstall = GUICtrlCreateButton("", 1, 1, 33, 33, $BS_ICON)
GUICtrlSetImage(-1,@ScriptDir & "\ico.dll","INSTALL_ICONS.ICO")
$btnUninstall = GUICtrlCreateButton("", 34, 1, 33, 33, $BS_ICON)
GUICtrlSetImage(-1,@ScriptDir & "\ico.dll","UNINSTALL_ICONS.ICO")
$btnRequest = GUICtrlCreateButton("", 67, 1, 33, 33, $BS_ICON)
GUICtrlSetImage(-1,@ScriptDir & "\ico.dll","EMAIL_ICON.ICO")
$btnPrinter = GUICtrlCreateButton("", 100, 1, 33, 33, $BS_ICON)
GUICtrlSetImage(-1,@ScriptDir & "\ico.dll","PRINTER (2).ICO")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

Attached is a screenshot of what icons my dll contains.

Any ideas how I can resolve this?

I can point the image to the individual ico files and it will work fine, but I'd love to have it just work through this dll.

post-54196-0-81045600-1358462940_thumb.p

Link to comment
Share on other sites

Indeed this could be a fun little project to expand the datatypes. trancexx has her resources project floating around the Forum, might be worth investigating.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_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: 22/04/2018

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...