#include #include #include local $loadval_1=1.166 local $loadval_2=1.166 local $file_name="GMS Det Leg.txt" local $file_location="D:\autoitscripts-2\test-1" local $loadcase_1="P" ; local $loadcase_2="R" While $loadval_1 < 9.166 ; ;#cs run("notepad","",@SW_MAXIMIZE) winwaitactive("Untitled - Notepad") send("!F") send("o") winwaitactive("Open") send($file_location) Send("{ENTER}") Send($file_name) Send("{ENTER}") WinWaitActive("GMS Det Leg.txt - Notepad") send("!E") send("R") WinWaitActive("Replace") send("LOADCN " &$loadcase_1 &" "&$loadval_1) ;#ce $loadval_1=$loadval_1+1.0 ;#cs send("{TAB}") send("LOADCN " &$loadcase_1 &" "&$loadval_1) send("{tab}") send("{tab}") send("{tab}") send("{tab}") Send("{enter}") ; SECOND REPLACEMENT send("{tab}") send("{tab}") send("LOADCN " &$loadcase_2 &" "&$loadval_2) $loadval_2=$loadval_2+1.5 send("{TAB}") send("LOADCN " &$loadcase_2 &" "&$loadval_2) send("{tab}") send("{tab}") send("{tab}") send("{tab}") Send("{enter}") ; Send("{tab}") Send("{enter}") ;SAVING.. ;MsgBox(0,"results",$loadval_1&$loadval_2) send("!F") send("X") Send("{enter}") WinWaitActive("Notepad") Send("{enter}") ;#ce MsgBox(0,"results",$loadval_1) WEnd