Umlaute machen Probleme

  • [autoit]

    #include <FF.au3>
    If Not _FFConnect("127.0.0.1",4242) Then
    MsgBox(64,"Fail","Can't connect to FireFox!")
    Exit
    EndIf
    $data = _FFReadHTML("html",7)
    ;ClipPut($data)

    [/autoit][autoit][/autoit][autoit]

    Run("notepad.exe")
    WinWaitActive("Unbenannt - Editor")
    ControlSetText("Unbenannt - Editor","","Edit1",$data)
    _FFDisConnect()

    [/autoit]


    funzt zwar, nur die umlaute werden als leerzeichen übertragen. was kann man dagegen machen? seiten auf denen es zu diesem problem kommt: http://www.autoit.de/dokumentation/…pad/notepad.htm

  • Hallo diepfeile,

    so:

    Spoiler anzeigen
    [autoit]

    #include <FF.au3>
    If Not _FFConnect("127.0.0.1",4242) Then
    MsgBox(64,"Fail","Can't connect to FireFox!")
    Exit
    EndIf
    $data = _FFReadHTML("html",7)
    ;ClipPut($data)

    [/autoit] [autoit][/autoit] [autoit]

    Run("notepad.exe")
    WinWaitActive("Unbenannt - Editor")Global $colKeys
    Global $oUml = ObjCreate("Scripting.Dictionary") ; funkey spoilerreader (Dank an 'BugFix')
    $oUml.Add('µ', 'µ')
    $oUml.Add('ö', 'ö')
    $oUml.Add('ü', 'ü')
    $oUml.Add('ä', 'ä')
    $oUml.Add('ß', 'ß')
    $oUml.Add('Ä', 'Ä')
    $oUml.Add('Ö', 'Ö')
    $oUml.Add('Ãœ', 'Ü')
    $oUml.Add('/', ' oder ')
    $oUml.Add('\', ' - ')
    $oUml.Add('&amp;', '&')
    $oUml.Add(':', '_')
    $oUml.Add('?', '')
    $oUml.Add('!', '')
    $oUml.Add('|', '-')
    $oUml.Add(';', '_')
    $colKeys = $oUml.Keys

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ControlSetText("Unbenannt - Editor","","Edit1",$data)
    For $strKey In $colKeys ;funkey spoilerreader
    If StringInStr($sdata, $strKey, 1) Then $sdata = StringReplace($sdata, $strKey, $oUml.Item($strKey))
    Next
    _FFDisConnect()

    [/autoit]

    fnktioniert es (aus spoilerreader von funkey heruaskopiert),

    mfg (Auto)Bert