Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/28/2021 in all areas

  1. #include <File.au3> #include <FileConstants.au3> #include <MsgBoxConstants.au3> Func convert($file) Local $srch = "µ∫˙√†‰∂ˇî®ßÃĀåḌḤĪïùàḶḸṂṆñìṄṚṜṢŚṬāḍḥīḷḹṃṁṇṅṛṝṣśṭūäÇéüöëò" Local $repl = "mnhntrdtirsnaadhinhmllmnnnnrrsstadhiiimmnnrrsstuasiutnd" Local $check = FileGetAttrib($file) If StringInStr($check, "D") Then ConsoleWrite("Skipping the directory " & $file & @CRLF) Return Else ConsoleWrite("Parsing file: " & $file & @CRLF) EndIf ; load file content into memory $filereader = FileOpen($file) $content = FileRead($filereader) FileClose($filereader) ; change all characters in memory For $i = 1 To StringLen($srch) $content = StringReplace($content, StringMid($srch, $i, 1), StringMid($repl, $i, 1)) Next ; write back file to disk $filewriter = FileOpen($file, 2) FileWrite($filewriter, $content) FileClose($filewriter) EndFunc ;==>convert ; Display an open dialog to select a list of file(s). Local $sFileOpenDialog = FileOpenDialog("Hold down Ctrl or Shift to choose multiple files.", @ScriptDir & "\", "Text (*.txt)|Au3 (*.au3)", BitOR($FD_FILEMUSTEXIST, $FD_MULTISELECT)) If @error Then Exit MsgBox($MB_SYSTEMMODAL, "", "No file(s) were selected.") ; split up the selected files into an array $sFileOpenDialog = StringSplit($sFileOpenDialog, "|") ; walk through the array, convert one file after another For $file = 1 To $sFileOpenDialog[0] convert($sFileOpenDialog[$file]) Next Fixed problem with only one file. Now using the approach of reading the file into memory, convert the characters and writing the file back.
    1 point
  2. What exactly does the script do and show us the sourcecode please so we can check whether your used logic should work with the scheduler? Jos
    1 point
  3. For me the example from @pixelsearch works on x86 and x64 and compiled and not compiled. Don't know what is going wrong on your system, sorry.
    1 point
  4. But even if the IE UDF works with Windows 11 (as far as I understand it by using a special mode in Edge), it is time to deal with WebDriver. It takes some time to get used to it. So you are ready if IE finally disappears at some point.
    1 point
  5. BrewManNH

    Screen capture

    That seems like a silly way to verify you're on the right page. Just look at the page's HTML and see if it's there.
    1 point
×
×
  • Create New...