hallo
mein script soll von einer text date in eine andere date über tragen un dabi die daten in eine ini schreiben.
ich habe jetzt das
Spoiler anzeigen
#include <ClipBoard.au3>
[/autoit] [autoit][/autoit] [autoit]Global $ini = "a.ini"
Global $get = ClipGet()
opt ("WinTitleMatchMode", 2)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]; reihe 1
_ClipBoard_Empty()
opt ("WinTitleMatchMode", 2)
WinActivate ("marcel.txt ")
WinWaitActive ("marcel.txt")
MouseClick ( "left", 11, 50, 1)
Send ("{lshift down}")
Send ("{right 7}")
Send ("{lshift up}")
Send ("^c")
WinActivate ("ab.txt")
WinWaitActive ("ab.txt")
IniWrite ( "a.ini", "1", "reihe1", $get)
Send ("^v")
Send ("{enter}")
; reihe 2 in eine ini schreiben
[/autoit] [autoit][/autoit] [autoit]_ClipBoard_Empty()
WinActivate ("marcel.txt")
WinWaitActive ("marcel.txt ")
MouseClick ( "left", 11, 65, 1)
Send ("{lshift down}")
Send ("{right 7}")
Send ("{lshift up}")
Send ("^c")
IniWrite ( "a.ini", "1", "reihe2", $get)
WinActivate ("ab.txt")
WinWaitActive ("ab.txt")
Send ("^v")
Send ("{enter}")
; reihe 3 in eine ini schreiben
[/autoit] [autoit][/autoit] [autoit]_ClipBoard_Empty()
WinActivate ("marcel")
WinWaitActive ("marcel.txt")
MouseClick ( "left", 11, 80, 1)
Send ("{lshift down}")
Send ("{right 7}")
Send ("{lshift up}")
Send ("^c")
IniWrite ( "a.ini", "1", "reihe3", $get)
WinActivate ("ab.txt")
WinWaitActive ("ab.tx")
Send ("^v")
Send ("{enter}")
; Reihe 4 in eine ini schreiben
_ClipBoard_Empty()
WinActivate ("marcel.txt")
WinWaitActive ("marcel.txt")
MouseClick ( "left", 11, 95, 1)
Send ("{lshift down}")
Send ("{right 7}")
Send ("{lshift up}")
Send ("^c")
IniWrite ( "a.ini", "1", "reihe4", $get)
WinActivate ("ab.txt")
WinWaitActive ("ab.txt")
Send ("^v")
Send ("{enter}")
leider sieht das ergebnis in der ini so aus:
[1]
reihe1=4444444
reihe2=4444444
reihe3=4444444
reihe4=4444444
und so sollte es aus sehen
[1]
reihe1=11111111
reihe2=2222222
reihe3=3333333
reihe4=4444444
Hat einer eine ahnung warum?