keiner ne ahnung wo mein fehler ist ?
So nun habe ich was automatisiert und naja bis zum ende des Fensters gehts danach macht er nicht weiter
Spoiler anzeigen
WinWait("PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)")
WinWaitActive("PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)","")
While WinExists('PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)')
WEnd
nach dem hier soll er wieder aufs cmd fenster springen rest eingeben dann paar dateien kopieren
macht er aber nicht. Das PTC programm schließt automatisch (eigene install autoinstall routine) wenn das fenster zu ist soll der weiter machen
weis wer woran es liegt hier der vollständige code
Spoiler anzeigen
run("c:\windows\system32\cmd.exe")
WinWait("c:\windows\system32\cmd.exe")
send("{c}{d}{.}{.}")
send("{ENTER}")
send("{c}{d}{.}{.}")
send("{ENTER}")
send("{c}{d}{.}{.}")
send("{ENTER}")
send("{n}{e}{t}{space}{u}{s}{e}{space}{w}{:}{space}{\}{\}{m}{e}{c}{h}{0}{0}{i}{\}{P}{r}{o}{e}{c}{o}{n}{f}{i}{g}{\}{P}{r}{o}{E}{1}{3}{2}{x}{6}{4}{space}{/}{p}{e}{r}{s}{i}{s}{t}{e}{n}{t}{:}{n}{o}")
sleep(1000)
send("{ENTER}")
send("{w}{:}")
send("{ENTER}")
send("{c}{d}{1}{\}{s}{e}{t}{u}{p}{.}{e}{x}{e}{SPACE}{-}{u}{i}{t}{r}{a}{i}{l}{Space}{i}{n}{s}{t}{a}{l}{l}{.}{t}{x}{t}")
sleep(5000)
send("{ENTER}")
WinWait("PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)")
WinWaitActive("PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)","")
While WinExists('PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)')
WEnd
sleep(1000)
run("c:\windows\system32\cmd.exe")
sleep(1000)
send("{i}{f}{space}{e}{x}{i}{s}{t}{space}{w}{:}{space}{n}{e}{t}{space}{u}{s}{e}{space}{w}{:}{space}{/}{d}{e}{l}{e}{t}{e}")
sleep(1000)
send("{ENTER}")
habe es mal gändert
Spoiler anzeigen
#RequireAdmin
Shellexecute ("c:\windows\system32\cmd.exe")
WinWait("c:\windows\system32\cmd.exe")
send("{c}{d}{.}{.}")
send("{ENTER}")
send("{c}{d}{.}{.}")
send("{ENTER}")
send("{c}{d}{.}{.}")
send("{ENTER}")
send("{n}{e}{t}{space}{u}{s}{e}{space}{w}{:}{space}{\}{\}{m}{e}{c}{h}{0}{0}{i}{\}{P}{r}{o}{e}{c}{o}{n}{f}{i}{g}{\}{P}{r}{o}{E}{1}{3}{2}{x}{6}{4}{space}{/}{p}{e}{r}{s}{i}{s}{t}{e}{n}{t}{:}{n}{o}")
sleep(1000)
send("{ENTER}")
send("{w}{:}")
send("{ENTER}")
send("{c}{d}{1}{\}{s}{e}{t}{u}{p}{.}{e}{x}{e}{SPACE}{-}{u}{i}{t}{r}{a}{i}{l}{Space}{i}{n}{s}{t}{a}{l}{l}{.}{t}{x}{t}")
sleep(5000)
send("{ENTER}")
WinWait("PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)")
WinWaitActive("PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)","")
While WinExists("PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)")
WEnd
sleep(1000)
WinWait("c:\windows\system32\cmd.exe","")
If Not WinActive("PTC.Setup - Pro/ENGINEER Wildfire 4.0 (M132)","") Then WinActivate("c:\windows\system32\cmd.exe","")
sleep(1000)
send("{i}{f}{space}{e}{x}{i}{s}{t}{space}{w}{:}{space}{n}{e}{t}{space}{u}{s}{e}{space}{w}{:}{space}{/}{d}{e}{l}{e}{t}{e}")
sleep(1000)
send("{ENTER}")
MsgBox(0,"","PROE wurde erfolgreich Installiert nun werden die Umgebungen übertragen",2)
sleep(1000)
DirCopy ( "\\mech00i\Proeconfig\ProE132x64\sw\", "c:\sw\", 1)
sleep(1000)
DirCopy ( "\\mech00i\Proeconfig\ProE132x64\sm\","C:\ProgramData\Microsoft\Windows\Start Menu\",1)
sleep(1000)
MsgBox(0,"","möp",2)
mal sehen obs besser geht
ok bleibt an der selben stelle leider stehen verdammt grml