Jump to content

Thomymaster

Active Members
  • Posts

    69
  • Joined

  • Last visited

Recent Profile Visitors

386 profile views

Thomymaster's Achievements

Wayfarer

Wayfarer (2/7)

1

Reputation

  1. Hi I have a problem and im unable to solve it Upon setting the InputMask i have a variable $iMaxValue which is i.e. 30 and i want to allow only positive numeric integers between 1 and this variable Does anybody of you know how can i do this? _Inputmask_add($idi1, $iIM_POSITIVE_INTEGER, 0, "", 2) -> 2 digits allowd (values from 1 to 99) but like i said i need from 1 to $iMaxValue Best, Thomy
  2. Hi I finally fixed that, thanks a lot. The bug was not in the Excel UDF, instead the key was to use UTF16LE as the encoding for the "temp.txt" file that will be read into Excel. Then it all worked fine with the german umlauts Cheers, Thomy
  3. Hi I hit a bug in 3.3.12.0 and thus had to upgrade: Cheers Thomy
  4. Hi Yes, german is the keyboard layout and the language settings. Thats total strange because this worked in the previous version auf AutoIT (3.3.12.0) only after the upgrade to 3.3.14.2 its broken. Ill try with the Local $hOutFile=FileOpen($sExportFileName,BitOR($FO_OVERWRITE,$FO_UTF16_LE )) and report back
  5. Hi Doesn't make any difference, if the file is encoded as "UTF-8 AS ANSI", the function calls still break the umlauts.
  6. Hi Here is the test csv-file that doesn't work. Its UTF-8 encoded test.csv
  7. I don't it was just for my understanding
  8. Hi Thanks a lot is used this regex for now "(?i)^" & $prefix & "\-\d\.jpg" But one last question, both .jpg and .JPG are matched what am i making wrong?
  9. Hi I have some code where i want to search an array for specific patterns: Local $aTest[6] = ["0001-1.jpg", "0001-2.jpg","0001-3.jpg","0001-5.jpg", "alt 0001-11.jpg", "0001-6.jpg"] _ArrayDisplay($aTest) Local $aResult=_ArrayFindAll($aTest,"^[\d].*$",0,0,0,3) _ArrayDisplay($aResult) The results should not include the "alt 0001-11.jpg" which it does by now. The "0001" comes from a variable $sPrefix To make the search more failure-tolerant, i only want the results that match: <$sPrefix: unlimited number of numberic characters from 0 to 9>-<only one numberic character from 0 to 9>.jpg I cannot figure out how to construct the regexp, my problem is the "-" which needs to be in between the 2 numeric values as well as the ".jpg" in the end. Additionally i don't know how to integrate the variable in the regexp. Best, Thomas
  10. Hi This code is excellent thanks a lot! It helped me in a project where i needed to sort an array and _ArraySort() wasn't behaving correctly
  11. Hi This works perfectly!!
  12. Hi There must be something wrong with the included AutoIT functions. If i product a UTF-8 encoded csv-file and manually import it into excel, the umlauts are there. Then i can save the file to a .xlsx. So i assume that _Excel_BookOpenText() breaks the umlauts. Can anybody confirm this or am i making something wrong here?
  13. Hi Excellent, this works like a charm. The reason i needed this is that my application must support sortable columns and i have a custom design that has another color for the selected row in the listview than the default color (blue)
  14. Hi Ok how do i solve this now, do you have an idea? -FileWriteFromArray() will produce ANSI encoded files (opened with Notepad++) unless i use FileOpen() with: Local $hOutFile=FileOpen($sExportFileName,BitOR($FO_OVERWRITE,$FO_UTF8)) Then, $sExportFileName is UTF-8 encoded, but the code in my first post will render the content/special characters unusable again. Best, Thomas
×
×
  • Create New...