R0G Posted June 2, 2016 Share Posted June 2, 2016 5 hours ago, Melba23 said: R0G, Worked straight off the bat - image in the same folder as the script: #AutoIt3Wrapper_Res_File_Add=test.jpg, RT_RCDATA, JPG_1, 0 #include <GUIConstantsEx.au3> #include "ResourcesEx.au3" $hGUI = GUICreate("Test", 500, 500) $cPic = GUICtrlCreatePic("", 10, 10, 480, 480) _Resource_SetToCtrlID($cPic, "JPG_1") GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _Resource_DestroyAll() Exit EndSwitch WEnd M23 Strange.. Can't seem to get it working. Must be a problem on my end. Procedure: 1. Used above script, image next to script. Image used: (jpg_1.jpg) that came with the UDF example and renamed to (test.jpg) 2. (Ctrl+F7) to compile script. 3. Ran test.exe - No image displayed? Other info: SciTE-Lite: V3.5.4 ResourcesEx UDF: Latest, Installed UDF contents to Include folder at Autoit dir. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 3, 2016 Developers Share Posted June 3, 2016 7 hours ago, R0G said: SciTE-Lite: V3.5.4 That will not work as it doesn't run AutoIt3Wrapper. Install the separate SciTE4AutoIt3 installer and you should be good. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
R0G Posted June 4, 2016 Share Posted June 4, 2016 10 hours ago, Jos said: That will not work as it doesn't run AutoIt3Wrapper. Install the separate SciTE4AutoIt3 installer and you should be good. Jos I thought AutoIt3Wrapper came with Autoit automatically.. guess i was mistaken.. Thanks Jos and Melba23 for your help Link to comment Share on other sites More sharing options...
guinness Posted June 4, 2016 Author Share Posted June 4, 2016 (edited) I have added a massive warning to the first post, as I assumed people would understand that the SciTE included with AutoIt was limited, but seems I was mistaken. Edited June 4, 2016 by guinness R0G 1 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 parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
Adm682860 Posted July 28, 2016 Share Posted July 28, 2016 (edited) i have some dll with about 113 $RT_RCDATA resources and script extracts only about 70-80 and get error ($RESOURCE_ERROR_LOADLIBRARY) on second run it successfuly extracts remain resources may be some memory leak ? This bug only on 32-bit os (WinXP, Win7) on Win7X64 - all ok. #include "ResourcesEx.au3" Local $j, $sk, $sTmp, $AutoItDll = "vanLotery.dll" $sTmp = ".\JPG_GAL_" $j = 0 Do $j += 1 $sk = StringFormat("%03s", $j) If Not FileExists($sTmp & $sk & ".jpg") Then _Resource_SaveToFile($sTmp & $sk & ".jpg", "JPG_GAL_" & $sk, $RT_RCDATA, Default, 1, $AutoItDll) ;_Resource_GetAsBytes("JPG_GAL_" & $sk, $RT_RCDATA, Default, $AutoItDll) ;_Resource_GetAsRaw("JPG_GAL_" & $sk, $RT_RCDATA, Default, $AutoItDll) If @error = 0 Then ; Else MsgBox(0, "", @error & '|' & $j) ExitLoop EndIf EndIf Until 0 Edited July 28, 2016 by Adm682860 Link to comment Share on other sites More sharing options...
beeria Posted January 11, 2017 Share Posted January 11, 2017 (edited) hello, great asset! but I have a problem with _Resource_LoadSound, when i set flag $SND_ASYNC for mp3 file - music just not playing and code skips to next line. Code below --> #AutoIt3Wrapper_UseX64=n ;#AutoIt3Wrapper_Res_File_Add=c:\Files\a2002011001-e02.wav, SOUND, GBMP3; working for WAV files #AutoIt3Wrapper_Res_File_Add=c:\Files\DJ ENZOOOO - Lotus Turbo Challenge 2.mp3, RT_RCDATA, GBMP3 #include <ResourcesEx.au3> $playthissong = _Resource_LoadSound('GBMP3', $SND_ASYNC); when I set $SND_SYNC it's working for MP3, but of course script freezes until mp3 is finished, for WAVE sync and async works perfectly SplashTextOn("Info", "if you set $SND_ASYNC, mp3 music should be played right now?", 300, 100, -1, 100, -1, "", 12) Sleep(8000) SplashOff() Am I doing something wrong? Edited January 11, 2017 by beeria Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 11, 2017 Moderators Share Posted January 11, 2017 beeria, That code snippet runs perfectly with one of my mp3 files - the splash is shown while the mp3 plays. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
beeria Posted January 11, 2017 Share Posted January 11, 2017 hmm, that's weird... I've tried 4 or 5 different mp3 with the same bad results... Could you please send me (or upload somewhere) mp3 which is working for you? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 11, 2017 Moderators Share Posted January 11, 2017 beeria, PM sent. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
beeria Posted January 11, 2017 Share Posted January 11, 2017 thx a lot Melba23 - your mp3 is working in async mode. I'll perform some test to check which mp3 are acceptable for async mode. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 11, 2017 Moderators Share Posted January 11, 2017 beeria, If you look at post 44 of this thread you will see that the function which plays the music files (originally written by myself) actually converts mp3 files into hybrid wav files so that they can be played. It might well be the case that your mp3 files do not become valid wav files when altered by the function - a place to start looking certainly. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
beeria Posted January 11, 2017 Share Posted January 11, 2017 (edited) yeah, already saw this post. Weird thing is, that my mp3 converted to hybrid wave plays fine in sync mode, but doesn't play at all in async mode:( i'll try to save wave file as mp3 with various encoding settings and present the results in this topic. edit: it definitely was the problem with my mp3 files i've played around with goldwave editor and encoded mp3 with LAME codec: various settings - from 128kbps to 320kbps, mono/stereo/joint stereo - all works fine Edited January 13, 2017 by beeria Link to comment Share on other sites More sharing options...
Deye Posted March 5, 2017 Share Posted March 5, 2017 (edited) Hi, Using _Resource_SetToCtrlID to set an png image, as I understand it $bResize is set to "Resize the image based on the controlid's dimensions. Default is False" In the UDF function I couldn't find anything in respect to the image resizing if (True) So actually if I am switching an image with another image on to the same controlID, the image loads to its own size rather then what is set by the controlID what can be a suggested work-around for doing this ? Thanks Edit : resolved: Local $State = ControlGetPos(GUICtrlGetHandle($ControlID),"",0) _Resource_SetToCtrlID($ControlID, 'PNG_4') GUICtrlSetPos($ControlID, $State) ;if having other settings as in my case, needed to add;-> GUICtrlSetPos($ControlID,'left' *$DPI_var,'top' *$DPI_var,'width' *$DPI_var,'height' *$DPI_var) Edited March 5, 2017 by Deye Link to comment Share on other sites More sharing options...
Terenz Posted April 2, 2017 Share Posted April 2, 2017 (edited) @guinness i have a problem-request. I have multiple audio file, and i'll combine based on the situation. So i need to use $SND_SYNC so i can play file1.mp3 and when the first finish the file2.mp3 but that will pause the script. I have try to use AdlibRegister without success, still pause the script. The question is: Is possible to avoid that behaviour? Yes-No EDIT: Yes, is possible. It was easier than I thought Edited April 8, 2017 by Terenz Nothing is so strong as gentleness. Nothing is so gentle as real strength Link to comment Share on other sites More sharing options...
Terenz Posted April 3, 2017 Share Posted April 3, 2017 (edited) See previus post Edited April 8, 2017 by Terenz Nothing is so strong as gentleness. Nothing is so gentle as real strength Link to comment Share on other sites More sharing options...
htrd Posted May 2, 2017 Share Posted May 2, 2017 Hey, I have an issue with the ResourcesEX include and don't know what I'm doing wrong. My script works fine but as soon as I include ResourcesEX or ResourcesEX_PE I get a lot of error messages when trying to compile the script. Spoiler expandcollapse popupC:\Program Files (x86)\AutoIt3\Include\WinAPIInternals.au3(581,16) : ERROR: syntax error (illegal character) Return $bTest ? ~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\WinAPIGdi.au3(25,71) : WARNING: $tagBITMAPINFOHEADER: possibly used before declaration. Global Const $tagDIBSECTION = $tagBITMAP & ';' & $tagBITMAPINFOHEADER & ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(16,39) : ERROR: syntax error (illegal character) OnAutoItExitRegister(_GDIPlus_Shutdown) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(17,42) : ERROR: syntax error OnAutoItExitRegister(_Resource_DestroyAll) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(242,75) : ERROR: syntax error Return __Resource_Storage($RESOURCE_STORAGE_DESTROY, $sDllOrExePath, Null, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(242,129) : ERROR: syntax error Return __Resource_Storage($RESOURCE_STORAGE_DESTROY, $sDllOrExePath, Null, $sResNameOrID, $iResType, $iResLang, $iResType, Null) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(259,62) : ERROR: syntax error Return __Resource_Storage($RESOURCE_STORAGE_DESTROYALL, Null, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(339,29) : ERROR: syntax error Local $dBytes = Binary(Null) ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(625,58) : ERROR: syntax error (illegal character) $iCreatePath = (IsBool($bCreatePath) And $bCreatePath ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(625,60) : ERROR: unbalanced paranthesis expression. $iCreatePath = (IsBool($bCreatePath) And $bCreatePath ? $FO_CREATEPATH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(791,107) : ERROR: syntax error (illegal character) __Resource_Storage($RESOURCE_STORAGE_ADD, $sDllOrExePath, $hHBITMAP, $sResNameOrID, $iResType, Null, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(952,140) : ERROR: syntax error Func __Resource_Get($sResNameOrID, $iResType = $RT_RCDATA, $iResLang = Default, $sDllOrExePath = Default, $iCastResType = Default, $aPos = Null ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(952,145) : ERROR: __Resource_Get() called by a previous line with 6 arg(s). Max = 0. First previous line calling this Func is 311. Func __Resource_Get($sResNameOrID, $iResType = $RT_RCDATA, $iResLang = Default, $sDllOrExePath = Default, $iCastResType = Default, $aPos = Null) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(953,146) : ERROR: syntax error If $iResType = $RT_RCDATA And StringStripWS($sResNameOrID, $STR_STRIPALL) = '' Then Return SetError($RESOURCE_ERROR_INVALIDRESOURCENAME, 0, Null) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(960,79) : ERROR: syntax error $vResource = __Resource_Storage($RESOURCE_STORAGE_GET, $sDllOrExePath, Null, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(960,137) : ERROR: syntax error $vResource = __Resource_Storage($RESOURCE_STORAGE_GET, $sDllOrExePath, Null, $sResNameOrID, $iResType, $iResLang, $iCastResType, Null) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(970,60) : ERROR: syntax error (illegal character) Local $hResource = (($iResLang <> $RESOURCE_LANG_DEFAULT) ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(970,62) : ERROR: unbalanced paranthesis expression. Local $hResource = (($iResLang <> $RESOURCE_LANG_DEFAULT) ? _WinAPI_FindResourceEx ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(970,106) : ERROR: $iResType already declared as parameter. Local $hResource = (($iResLang <> $RESOURCE_LANG_DEFAULT) ? _WinAPI_FindResourceEx($hInstance, $iResType, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(970,121) : ERROR: $sResNameOrID already declared as parameter. Local $hResource = (($iResLang <> $RESOURCE_LANG_DEFAULT) ? _WinAPI_FindResourceEx($hInstance, $iResType, $sResNameOrID, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(970,132) : ERROR: syntax error Local $hResource = (($iResLang <> $RESOURCE_LANG_DEFAULT) ? _WinAPI_FindResourceEx($hInstance, $iResType, $sResNameOrID, $iResLang) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\WinAPIGdi.au3(25,71) : ERROR: $tagBITMAPINFOHEADER: undeclared global variable. Global Const $tagDIBSECTION = $tagBITMAP & ';' & $tagBITMAPINFOHEADER & ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\_GIT_alfaboot\ACS\acs\acs.au3(15,29) : ERROR: _Exit(): undefined function. OnAutoItExitRegister("_Exit") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(242,129) : ERROR: __Resource_Storage(): undefined function. Return __Resource_Storage($RESOURCE_STORAGE_DESTROY, $sDllOrExePath, Null, $sResNameOrID, $iResType, $iResLang, $iResType, Null) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(564,71) : ERROR: __Resource_LoadModule(): undefined function. Local $hInstance = __Resource_LoadModule($sDllOrExePath, $bIsInternal) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(599,50) : ERROR: __Resource_UnloadModule(): undefined function. __Resource_UnloadModule($hInstance, $bIsInternal) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(672,90) : ERROR: __Resource_SetToCtrlID(): undefined function. Local $bReturn = __Resource_SetToCtrlID($iCtrlID, $hHBITMAP, $RT_BITMAP, False, $bResize) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(770,38) : ERROR: __Resource_GetCtrlId(): undefined function. __Resource_GetCtrlId($hWnd, $iCtrlID) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files (x86)\AutoIt3\Include\ResourcesEX.au3(909,59) : ERROR: _GDIPlus_BitmapCreateFromStream(): undefined function. Local $hBitmap = _GDIPlus_BitmapCreateFromStream($pStream) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ Other includes that I use in the script are: #include <Date.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <Misc.au3> #include <String.au3> #include <MsgBoxConstants.au3> #include <Timers.au3> I hope someone can help me to get the functions included in the UDF working because I need to use the _Resource_SetImageToCtrl function in my script. I have AutoIT 3.3.8.1 and Scite 3.2.0.0 running. The whole script would be too much to post here but if you need any more information just let me know. Thanks in advance! Cheers htrd Link to comment Share on other sites More sharing options...
musicstashall Posted August 28, 2017 Share Posted August 28, 2017 Can someone know how to get an enumeration of all string resources in the DLL? I tried to implement as follows, but the resulting row names are different from the actual ones: #include <APIResConstants.au3> #include <Array.au3> #include <WinAPIRes.au3> Local $aData = _WinAPI_EnumResourceNames(@SystemDir & '\shell32.dll', $RT_STRING) Local $hInstance = _WinAPI_LoadLibraryEx(@SystemDir & '\shell32.dll', $LOAD_LIBRARY_AS_DATAFILE) Local $StringData[0][2] ;_ArrayDisplay($aData, '_WinAPI_EnumResourceNames') For $i = 2 To $aData[0] _ArrayAdd($StringData, $aData[$i] & '|' & _WinAPI_LoadString($hInstance, $aData[$i])) Next _ArrayDisplay($StringData) Link to comment Share on other sites More sharing options...
Jowy Posted March 5, 2018 Share Posted March 5, 2018 @guinness, thanks for the great work. But when I compiled my script on the new AutoIT version, the ResourcesEx.au3 needs an include file: #include <WinAPISysWin.au3> needed by _WinAPI_SetWindowLong Regards, Jowy xekon 1 Link to comment Share on other sites More sharing options...
legend Posted October 21, 2018 Share Posted October 21, 2018 (edited) post can be deleted, found my answer Edited October 21, 2018 by legend Link to comment Share on other sites More sharing options...
drmusti Posted April 1, 2019 Share Posted April 1, 2019 On 6/2/2016 at 8:50 PM, Melba23 said: R0G, Worked straight off the bat - image in the same folder as the script: #AutoIt3Wrapper_Res_File_Add=test.jpg, RT_RCDATA, JPG_1, 0 #include <GUIConstantsEx.au3> #include "ResourcesEx.au3" $hGUI = GUICreate("Test", 500, 500) $cPic = GUICtrlCreatePic("", 10, 10, 480, 480) _Resource_SetToCtrlID($cPic, "JPG_1") GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _Resource_DestroyAll() Exit EndSwitch WEnd M23 Line 12195 (File "C:\Users\wWw\Desktop\ResourcesEx\Examples\Yeni AutoIt v3 Script.exe"): Error: Unknown function name. 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