gobsor 0 Posted December 29, 2010 Hey, I wrote a little tool to edit ID3 tags for audiofiles in a certain folder. Though, when I press "Tag ALL" button, it starts tagging each *.mp3 file with the certain specified tags. I made a GUICtrlCreateEdit() that is $ES_READONLY, though, when the au3 script tags the MP3 files (using AudioGenie3.dll), each function for the specific tag (_setID3Artist() etc) returns @error == 0 on success, @error > 0 depending on what error occured. I thought to make it more visual I put it all to a debug field (my GUICtrlCreateEdit()). The piece of code looks like that: Note: this is just example/dummy code to explain my issue, not supposed to be working For $i = 0 to $iAmountMP3Files Step 1 _setID3Artist($hFile[$i], "cool name") If Not @error Then GUICtrlSetData($hDebug, $filename[$i] & " tagging [OK]", "keep") Else GUICtrlSetData($hDebug, $filename[$i] & " failed to tag [ERROR]", "keep") EndIf Next With just a few MP3 files it works, but if I tag like 1000 the same time GUICtrlSetData($hDebug, ...) seems to be failing, somehow it just doesn't write into the GUICtrlCreateEdit() ($hDebug) anymore, just stops at a certain position. Is there a limit of characters the $hDebug can hold at a time? If so, how to increase this? Or is there a similiar GUI instance that can contain more characters at one time? rgrds g0b Share this post Link to post Share on other sites
PsaltyDS 39 Posted December 29, 2010 Yes, Edit controls are limited by default to a certain number of characters (a few K). You can change that setting with GuiCtrlSetLimit(), see help file. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Share this post Link to post Share on other sites
gobsor 0 Posted December 29, 2010 Thanks a lot. Works like a charm! Share this post Link to post Share on other sites